[A83] Re: DivHLbyA
[Prev][Next][Index][Thread]
[A83] Re: DivHLbyA
At 04:59 2002-01-10, you wrote:
>The only problem I would see is the backwards loading thingy. If you do
>ld hl,(Uservar)...hl=1025h, not 2510h (correct me if I'm wrong). I know
>that the length bytes of variables are stored least significant byte
>first as well...
A tip.
If you want to store words to use with for example hl,
and don't want to have to think about byte order,
use .dw instead of .db.
.dw defines a word instead of a byte, and automaticly takes care of byte order.
///Olle
Follow-Ups:
References: