🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #239

Re: help sought, possible asm/cpu/other problem???

#239
From: dhoke
Date: Thu, 17 Jul 2008 12:37
23 lines
2169 bytes
"Bob Gonder" <none@nowhere.invalid> wrote in message 
news:v25t74t1gkt8qe9nebrgp5l47prssdrlaq@4ax.com...
> Remy Lebeau (TeamB) wrote:
>
>>Why use assembly for that?  A simple loop would be easier to manage:
>
> It is part of a memory manager, he wants it small and fast.

Correct.  And the difference was significant, as I also have a version 
similar to what Remy posted.

>
> Your returns are backwards.
> sb 1 for fail, 0 for ok.
> if/else incorrect.

Nope, they're what I want.  Yes its "backwards" from C convention, but its 
terribly convenient to be able to return multiple (non-zero) failures from a 
routine, and have a clue as to what part of a routine failed.  In this 
particular routine, not significant, but its a convention I have in my code. 
Just think "shell" programming (not that I've done much of that), or I 
suppose even batch/command file is similar...
Technical Details
Message-ID: <487f3d47$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!198.186.194.249.MISMATCH!transit3.readnews.com!news-out.readnews.com!news-xxxfer.readnews.com!207.99.111.53.MISMATCH!newspeer1.nac.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <487e5d3c$1@newsgroups.borland.com> <487e6fe0$1@newsgroups.borland.com> <v25t74t1gkt8qe9nebrgp5l47prssdrlaq@4ax.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,ced19374283c232f
X-Google-Attributes: gid10cc67,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
Reply-To: "dhoke" <dhoke.nojunk@east-shore.com>
From: "dhoke" <dhoke.nojunk@east-shore.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <487e5d3c$1@newsgroups.borland.com> <487e6fe0$1@newsgroups.borland.com> <v25t74t1gkt8qe9nebrgp5l47prssdrlaq@4ax.com>
Subject: Re: help sought, possible asm/cpu/other problem???
Date: Thu, 17 Jul 2008 08:37:58 -0400
Lines: 26
Organization: East Shore Technologies, Inc.
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3138
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: 71.245.145.51
Message-ID: <487f3d47$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1216298311 71.245.145.51 (17 Jul 2008 05:38:31 -0700)
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!198.186.194.249.MISMATCH!transit3.readnews.com!news-out.readnews.com!news-xxxfer.readnews.com!207.99.111.53.MISMATCH!newspeer1.nac.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail