Routines |
Prev: AE47 | Up: Map | Next: AE7A |
Used by the routine at PlayerMovement.
|
||||
AE4B | LD A,(IX+$06) | A=IX+06. | ||
AE4E | AND A | |||
AE4F | JR Z,$AE5C | |||
AE51 | JP M,$AE73 | |||
AE54 | LD A,(IX+$00) | A=IX+00 (sprite reference). | ||
AE57 | OR %00001000 | Set bit 3. | ||
AE59 | LD (IX+$00),A | Write the result back to IX+00 (sprite reference). | ||
AE5C | LD A,($5C78) | A=FRAMES. | ||
AE5F | AND %00000011 | Keep only bits 0-1. | ||
AE61 | RET NZ | |||
AE62 | LD C,(IX+$00) | C=IX+00 (sprite reference). | ||
AE65 | LD A,($9695) | A=9695. | ||
AE68 | AND %00000111 | Keep only bits 0-2. | ||
AE6A | LD B,A | |||
AE6B | LD A,C | |||
AE6C | AND %11111000 | Keep only bits 3-7. | ||
AE6E | OR B | |||
AE6F | LD (IX+$00),A | |||
AE72 | RET | Return. | ||
AE73 | LD A,(IX+$00) | |||
AE76 | AND %11110111 | Keep only bits 0-2, 4-7. | ||
AE78 | JR $AE59 | Jump to AE59. |
Prev: AE47 | Up: Map | Next: AE7A |