Routines
Prev:
48638
Up:
Map
Next:
48648
48643: Halve Number
Used by the routines at
ReverseAndHalveSpeed
,
CheckTerrainCollision
and
TakeThreeEighths
.
Divides a signed number by two.
Input
HL
Number
Output
HL
Number divided by two
HalveNumber
48643
SRA H
Shift
H
right keeping the sign.
48645
RR L
Rotate
L
right through the carry.
48647
RET
Return.
Prev:
48638
Up:
Map
Next:
48648