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

From: "lewi9908" <lewi9908 AT ghc DOT ctc DOT edu>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: AT&T inline asm in DJGPP...
Date: Sun, 1 Dec 2002 20:10:14 -0800
Organization: Posted via Supernews, http://www.supernews.com
Message-ID: <uuln9q35prg3bd@corp.supernews.com>
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> <3DEAC1E0 DOT 27F7E16C AT yahoo DOT com DOT au>
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
X-Complaints-To: abuse AT supernews DOT com
Lines: 23
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Thank you...

"Jason Hood" <jadoxa AT yahoo DOT com DOT au> wrote in message
news:3DEAC1E0 DOT 27F7E16C AT yahoo DOT com DOT au...
>
>
> 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