Prev: 29441 Up: Map Next: 29468
29446: Set Magic Knight's action flags and prepare to execute room-specific routine for his current room
Used by the routine at 28092.
29446 LD A,(65529) Load double Magic Knight's current room index into BC...
29449 ADD A,A ...
29450 LD B,0 ...
29452 LD C,A ...
29453 LD HL,54753 Add as offset to address of start of table of room-specific routine addresses and load this result into HL...
29456 ADD HL,BC ...
29457 LD A,(HL) Load WORD value at this address into HL...
29458 INC HL ...
29459 LD H,(HL) ...
29460 LD L,A ...
29461 LD (29773),HL Update jump in routine at 29763 to execute room-specific routine
29464 CALL 35495 Set Magic Knight's available action flags
29467 RET Return
Prev: 29441 Up: Map Next: 29468