Prev: 41301 Up: Map Next: 41325
41316: Divide Word By Four
Divides HL by four. Nothing in the game calls or jumps here and no table holds its address, so it looks like leftover code (compare CalculateBitAddress just above, which divides a bit index by eight).
Input
HL Word to divide
Output
HL The word divided by four
DivideWordByFour 41316 SRL H Divide HL by four, dropping the remainder.
41318 RR L
41320 SRL H
41322 RR L
41324 RET Return.
Prev: 41301 Up: Map Next: 41325