Re: A86: Displaying a register in decimal (base 10) on the screen
[Prev][Next][Index][Thread]
Re: A86: Displaying a register in decimal (base 10) on the screen
On Mon, 1 Sep 1997 Steve86Asm@aol.com wrote:
> If I have a hex number (say $A5) in the A register, is there any simple way
> to display it in decimal (as opposed to hex) on the screen (as 165)? I
Set the cursor coordinates, put A into L, put 0 into H, and call $4A33.
It displays HL as a decimal number, right-justified in a field of width 5.
--------
Dan Eble (mailto:eble@cis.ohio-state.edu)
(http://www.cis.ohio-state.edu/~eble)
References: