From: Jason Hood 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: NNTP-Posting-Host: roc-56k-064.tpgi.com.au (202.7.180.64) Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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.