Article View: borland.public.cppbuilder.nativeapi
Article #234Re: help sought, possible asm/cpu/other problem???
From: Dennis Cote
Date: Wed, 16 Jul 2008 23:19
Date: Wed, 16 Jul 2008 23:19
21 lines
1581 bytes
1581 bytes
dhoke wrote:
>
> 1)Please report if you spot an error in the BytesOK() routine.
> 5)The CPU disassembly pane does seem to correctly reflect the source written
> (if(_eax &0x4000) optimized to test ah, $40.)
>
> lahf
> //now, which bit is the zero/equal bit?
> } ;
> //if(_ECX)
> if(!(_EAX & 0x4000)) //0x40 set in AH
> {
I think you are using the wrong constant. LAHF loads the 16 bit flags
register into AH. The zero flag is bit 6 in this register. To compare
using EAX the extended 32 bit register you need to shift your mask,
0x0040 left by 16 bits to give 0x00400000.
HTH
Dennis Cote
Technical Details
Message-ID:
<487e81e2$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news.glorb.com!feeder.erje.net!newsfeed01.sul.t-online.de!t-online.de!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 Date: Wed, 16 Jul 2008 17:19:00 -0600 From: Dennis Cote <dennis.cote@gmail.com> User-Agent: Thunderbird 2.0.0.14 (Windows/20080421) MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: help sought, possible asm/cpu/other problem??? References: <487e5d3c$1@newsgroups.borland.com> In-Reply-To: <487e5d3c$1@newsgroups.borland.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 142.179.167.5 Message-ID: <487e81e2$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1216250338 142.179.167.5 (16 Jul 2008 16:18:58 -0700) Lines: 21 Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news.glorb.com!feeder.erje.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail