Prev: FE1F Up: Map Next: FE43
FE31: Build up a hash value from game memory
Used by the routine at FF70.
Input
A On exit, holds the computed hash value
FE31 XOR A Initialise A to 0
FE32 LD HL,$5DC0 Start of block
FE35 LD BC,$7530 Length
FE38 XOR (HL) Flip bits against the current byte
FE39 LD E,A Remember new value
FE3A INC HL Point to next byte
FE3B DEC BC Decrease length
FE3C LD A,B Is length 0?
FE3D OR C
FE3E LD A,E Restore A
FE3F JP NZ,$FE38 Loop back if more to do
FE42 RET All done
Prev: FE1F Up: Map Next: FE43