A85: Optimizing...
[Prev][Next][Index][Thread]
A85: Optimizing...
Can anyone tell me the best method (as in smallest # of bytes) to limit
a number?
(Like, if I have a number rangeing from 0 to FFh and I want it in the
range 0 to 39h)
Here is what I think it is, butI just want to make sure:
(A holds the value to be limited)
cp 39h
jr c, PastIt
ld A,39h
PastIt:
This is 6 bytes long however, and as I use it quite a bit in my program,
an optimization here would definately shorten up the program.
Thanks in advance
Jonathan Kaus
Follow-Ups: