linux-assembly.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: michael young <mhyoung@valdosta.edu>
Cc: linux-assembly@vger.kernel.org
Subject: Re: DOS assembly questions?
Date: Thu, 23 Oct 2003 13:00:32 -0400	[thread overview]
Message-ID: <3F980930.6080207@valdosta.edu> (raw)
In-Reply-To: <3F961EB4.BE9DB472@yahoo.co.uk>


Hi willy,
thank you for your response.
a question below.


willy meier wrote:

>michael young wrote:
>
>apparently, a common 'problem':
>if ah:=9 and int 21 is supposed to send text, 
>the binary counter data can't appear visibly.
>  
>
>	[...]
>  
>
>>START:
>>    
>>
>   mov cx, 10	=>	mov cx,"9"
>  
>
>>  call myloop
>>
>>myloop:
>>  mov dx, cx
>>  mov ah, 9
>>  int 21H
>>  dec cx
>>    
>>
>			cmp cx,"0"
>   jnz myloop	=>	jc myloop
>
Here, wouldn't the 'dec' instruction set the 'ZF' if cx hit 0?
where am I going wrong on this?

>  
>
>>  mov dx, donemsg
>>    
>>
>	[...]
>
>best,
>	hp
>  
>
michael



  reply	other threads:[~2003-10-23 17:00 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-10-20 23:46 DOS assembly questions? michael young
2003-10-21  6:05 ` Fekete Gabor
2003-10-21 18:05 ` michael young
2003-10-22  6:07   ` willy meier
2003-10-23 17:00     ` michael young [this message]
2003-10-24 17:12       ` willy meier
2003-10-28 22:19         ` michael young
2003-10-24  5:22   ` FernanBolando
2003-10-28 22:11     ` michael young

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3F980930.6080207@valdosta.edu \
    --to=mhyoung@valdosta.edu \
    --cc=linux-assembly@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).