Prev: 44615 Up: Map Next: 44666
44619: Routine at AE4B
Used by the routine at PlayerMovement.
44619 LD A,(IX+6) A=IX+6.
44622 AND A
44623 JR Z,44636
44625 JP M,44659
44628 LD A,(IX+0) A=IX+0 (sprite reference).
44631 OR %00001000 Set bit 3.
44633 LD (IX+0),A Write the result back to IX+0 (sprite reference).
44636 LD A,(23672) A=FRAMES.
44639 AND %00000011 Keep only bits 0-1.
44641 RET NZ
44642 LD C,(IX+0) C=IX+0 (sprite reference).
44645 LD A,(38549) A=38549.
44648 AND %00000111 Keep only bits 0-2.
44650 LD B,A
44651 LD A,C
44652 AND %11111000 Keep only bits 3-7.
44654 OR B
44655 LD (IX+0),A
44658 RET Return.
44659 LD A,(IX+0)
44662 AND %11110111 Keep only bits 0-2, 4-7.
44664 JR 44633 Jump to 44633.
Prev: 44615 Up: Map Next: 44666