[A83] Re: DivHLbyA


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

[A83] Re: DivHLbyA




> The Romcall DivHLbyA divides hl by a, and stores the 
result in HL. This works 
> for me when loading numbers directly into HL and A, but 
not with user 
> variables. How can I get DivHLbyA to work with user-made 
variables?

I don't understand this... If you load the values into HL 
and A, it gives you a result. What do you want with 
variables? You just load their values into these two 
registers, and then use HL wherever you need it.

(Note that A values greater than 127 can lead to erroneous 
results.)

PG





References: