Article View: borland.public.cppbuilder.nativeapi
Article #233Re: help sought, possible asm/cpu/other problem???
From: Remy Lebeau (TeamB)
Date: Wed, 16 Jul 2008 22:00
Date: Wed, 16 Jul 2008 22:00
35 lines
2039 bytes
2039 bytes
"dhoke" <dhoke.nojunk@east-shore.com> wrote in message
news:487e5d3c$1@newsgroups.borland.com...
> (Thanks in advance... Sorry if this seems off-topic to some, but it
> really didn't seem non-technical in nature.)
This is not a Win32 API issue. This question would have been better
directed to the .language newsgroups instead.
> Please report if you spot an error in the BytesOK() routine.
Why use assembly for that? A simple loop would be easier to manage:
int BytesOK(unsigned char *pAddr, unsigned char bval, unsigned nbytes)
{
for(unsigned ui = 0; i < nbytes; ++i)
{
if( pAddr[ui] != bval )
{
if( !MM3AdminData.survivalmode )
{
if( MM3AdminData.callint3onerror )
__asm int 3 ;
else
return 0;
}
break;
}
}
return 1;
}
Gambit
Technical Details
Message-ID:
<487e6fe0$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nac.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<487e5d3c$1@newsgroups.borland.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 From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <487e5d3c$1@newsgroups.borland.com> Subject: Re: help sought, possible asm/cpu/other problem??? Date: Wed, 16 Jul 2008 15:00:41 -0700 Lines: 37 Organization: Lebeau Software 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; Response NNTP-Posting-Host: 207.178.157.90 Message-ID: <487e6fe0$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1216245728 207.178.157.90 (16 Jul 2008 15:02:08 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nac.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail X-Original-Bytes: 1883