Prev: 28514 Up: Map Next: 28568
28541: Handler: Hit Hump
Handler_HitHump 28541 LD A,(30772) A=*Wheelie.
Direction Wheelie Range Byte Bits
Left Normal (no wheelie) 72 01001000
Mid-Low 73 01001001
Mid-High 74 01001010
Max (full wheelie) 75 01001011
Right Normal (no wheelie) 8 00001000
Mid-Low 9 00001001
Mid-High 10 00001010
Max (full wheelie) 11 00001011
28544 AND %00000111 Keep only bits 0-2.
28546 RET NZ Return if the result is not zero.
28547 LD A,5 Write 5 to *Action.
28549 LD (30762),A
28552 LD A,(30772) A=*Wheelie.
28555 AND %01000000 Keep only the direction bit (bit 6).
28557 LD HL,48398 HL=48398.
28560 JR Z,HitHumpMovingRight Jump to HitHumpMovingRight if the player is moving right.
28562 LD L,33 L=33.
HitHumpMovingRight 28564 LD (30778),HL Write HL to *30778.
28567 RET Return.
Prev: 28514 Up: Map Next: 28568