[A83] Signed division by a power of two.


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

[A83] Signed division by a power of two.



When dividing a signed number by two, is there any better way than this?
 
bit 7,a
jp z,Positive
scf
rr a
jp EndPositive
Positive:
sra
EndPositive:
 
Or does that way even work?  I have been having a hard time catching onto this idea of signed numbers.
 
Thanks,
MWM

Follow-Ups: