delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/12/01/21:15:02

From: Jason Hood <jadoxa AT yahoo DOT com DOT au>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: AT&T inline asm in DJGPP...
Date: Mon, 02 Dec 2002 12:13:52 +1000
Lines: 17
Message-ID: <3DEAC1E0.27F7E16C@yahoo.com.au>
References: <uuhr3lgi6qsc7f AT corp DOT supernews DOT com> <uuit0ko46e2k55 AT corp DOT supernews DOT com> <asd396$b6o$1 AT antares DOT lu DOT erisoft DOT se> <uukh53j0eco0f1 AT corp DOT supernews DOT com>
NNTP-Posting-Host: roc-56k-064.tpgi.com.au (202.7.180.64)
Mime-Version: 1.0
X-Trace: fu-berlin.de 1038795237 27615722 202.7.180.64 (16 [148584])
X-Mailer: Mozilla 4.8 [en] (Win98; U)
X-Accept-Language: en,pdf
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com


lewi9908 wrote:
> 
>  and byte [edx], 0x0                   ;Check for Null char
>  jz short PrintDone
>  mov byte al, [edx]

I think you want something like:

mov byte al, [edx]
test al,al
jz short PrintDone

here. "and byte [edx], 0x0" is always going to set [edx] to zero.

Jason.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019