[A83] Re: help for a routine
[Prev][Next][Index][Thread]
[A83] Re: help for a routine
Ronald Teune writes:
> How would you do h*256? It's much more than 255 so I guess 0 comes
> out of it (??), unless you'd use a two byte register.
Not exactly. You would perform the operation on a 16 bit register. The
simplest way, as my example showed, is to use HL and simply set L to 0. If
E is less than H then the result of the division will not fit into A.
--
David Phillips <david@acz.org>
http://david.acz.org/
References: