A86: Re: Number Printing


[Prev][Next][Index][Thread]

A86: Re: Number Printing




>Simple question, but:
>
>What's the best way to print a 16-bit number that's stored in a memory
>location to the screen?


Thus:

xor a ; Clear A
ld hl, MemoryLocation ; The 16-bit mem location goes here
call  _ldhlhl                    ; Now HL = 16-bit number
xor a                              ; Clear A register
call _dispAHL

-Matt

I did not test this but it should work.


Follow-Ups: