[A86] Re: Faster way to do this?


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

[A86] Re: Faster way to do this?




Absolutely...  What you are doing is essentially multiplying by 256. This 
will cause the byte in h to be what the byte in l used to be. The byte that 
was in h would have carried completely out.  The result would be the same as 
loading L directly into H.

ld h,l
ld l,0
^ that is the faster way to do it.