Routines |
Prev: 61816 | Up: Map | Next: 61860 |
Used by the routine at 62178.
|
||||
61823 | PUSH IX | Store IX | ||
61825 | CALL 46784 | Draw axe(s) to screen if Magic Knight is in an axe room | ||
61828 | LD DE,24672 | Point DE at table of background bitmap data | ||
61831 | CALL 61777 | Restore background bitmap data (i.e. remove Magic Knight bitmap data from display) | ||
61834 | LD A,(23706) | If player-attribute-update flag is set... | ||
61837 | OR A | ... | ||
61838 | CALL NZ,62003 | ...then restore background attribute data at Magic Knight's current location | ||
61841 | POP IX | Restore IX | ||
61843 | LD HL,24840 | Point HL at Magic Knight's current x-coordinate | ||
61846 | LD A,(24844) | Load A with Magic Knight's current x-velocity... | ||
61849 | ADD A,(HL) | ...and add to this Magic Knight's current x-coordinate | ||
61850 | LD (HL),A | Set this as Magic Knight's new x-coordinate | ||
61851 | INC HL | Advance HL to Magic Knight's y-coordinate | ||
61852 | LD A,(24845) | Load A with Magic Knight's current y-velocity... | ||
61855 | ADD A,(HL) | ...and add to this Magic Knight's current y-coordinate | ||
61856 | LD (HL),A | Set this as Magic Knight's new y-coordinate | ||
61857 | XOR A | Load A with 0 (prepare to reset do-not-draw-axes flag) | ||
61858 | JR 61866 | Store background attributes if appropriate, then draw Magic Knight (and axes if appropriate) to display, then return |
Prev: 61816 | Up: Map | Next: 61860 |