[A83] Re: Converting a 4-byte number to a string


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

[A83] Re: Converting a 4-byte number to a string




In accordance with the prophecy, D Weiss uttered:

> 
> How do you convert an unsigned 4 byte number (score) to a string to display?
> 
> Score: .db 0,0,0,0
> 
> String: .db 0,0,0,0,0,0,0,0,0,0,0,0,0

One way, though not necessarily the best one, would be to put the most
significant word in hl, convert it to a floating point number, multiply that
with 65536, then add what you get when you convert the least significant word to
floating point. Then use _formDisp et al.

Linus
--------------------------------------------- http://www.df.lth.se/~lft ---
All wiyht. Rho sritched mg kegtops awound?





References: