Re: newb TASM user needs help
From: R.Wieser (rwieser-killthis-_at_xs4all.nl)
Date: 12/06/03
- Next message: Bx. C: "Re: newb TASM user needs help"
- Previous message: Jim: "What's the error?"
- In reply to: xteven: "Re: newb TASM user needs help"
- Next in thread: Bx. C: "Re: newb TASM user needs help"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sat, 6 Dec 2003 13:06:25 +0100
xteven <stevedool@yahoo.com> schreef in berichtnieuws
Xns9449D079162EnewbTASMuserneedshel@207.69.154.205...
Hello xteven,
[Snip]
> I understand exactly what you are saying... But since I
> am kinda new I still dont know a few things. I give a
> binary value to variable. How do I convert and print
> out the decimal of it? Lets say I give a variable the
> binary value of 15 which is 00001111, it prints out
> the ASCII char of 15. What I am asking is, how
> do I print out the decimal value of a binary rather
> than the ASCII char of the binary.
Well, that's quite simple actually, especially when dealing with such a
small number (one byte, three decimal digits).
What do you think of dividing the number by 100, converting the result (0
thru 2) to ASCII (add the value of the character "0" to it), and send the
resulting character ("0" thru "2")to the screen. After you've done that,
you can divide the rest by 10, and display both that result, and the rest of
that division ...
Regards,
Rudy Wieser
- Next message: Bx. C: "Re: newb TASM user needs help"
- Previous message: Jim: "What's the error?"
- In reply to: xteven: "Re: newb TASM user needs help"
- Next in thread: Bx. C: "Re: newb TASM user needs help"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|