Re: A86: how to print out intgers?


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

Re: A86: how to print out intgers?



In a message dated 97-10-23 17:25:15 EDT, you write:

> 
>  I tried this and it seems to work but I get a lot of extra values.  Like
>  if I do
>  ld hl, 3	;210300
>  call 4A33h	;CD334A
>  
>  it displays 65539.  Any ideas as to why?  And does 4A33 have a name?
>  Thanks
>  
>  On Thu, 23 Oct 1997, MrManson wrote:
>  
>  > Mark Baldi-Biek wrote:
>  > > 
>  > > How does one print out integers (now that I've figured out strings and
>  > > chars) either in hex or base 10?
>  > 
>  > in dec:
>  > 
>  > ld hl,number
>  > call $4a33
>  > 
>  
>  

$4A33 is fallaciously (sp?) called dispHL, but it really displays AHL, so if
you just want to display the contents of hl, you need to XOR A first.  You
probably had a 1 in a when you did that before.


Follow-Ups: