Routines |
Prev: 44933 | Up: Map | Next: 45094 |
Used by the routine at 64623.
|
||||
44990 | LD B,9 | Print or update command summary window at top of screen... | ||
44992 | CALL 45206 | ...with "PULL LEVER" text | ||
44995 | CALL 64207 | Display execute / reject command window and return here if execute chosen, else exit to main game loop | ||
44998 | LD A,(23702) | Load A with Magic Knight's current room | ||
45001 | CP 20 | If current room is 20 (Castle Ground Floor, 3)... | ||
45003 | JP Z,45073 | ...then skip ahead to 45073 | ||
45006 | CP 38 | If current room is 38 (Castle Third Floor, 0, Big White Statue)... | ||
45008 | JP Z,45080 | ...then skip ahead to 45080 | ||
45011 | CP 34 | If current room is 34 (Castle Second Floor, 3, One Way Corridor, 1)... | ||
45013 | JP Z,45087 | ...then skip ahead to 45087 | ||
45016 | LD B,64 | Prepare to set main lever 7 flag | ||
45018 | CP 24 | If current room is 24 (Castle First Floor, 0, Main Lever 7)... | ||
45020 | JR Z,45064 | ...then skip ahead to 45064 (set prepared main lever flag) | ||
45022 | LD B,32 | Prepare to set main lever 6 flag | ||
45024 | CP 25 | If current room is 25 (Castle First Floor, 1, Main Lever 6)... | ||
45026 | JR Z,45064 | ...then skip ahead to 45064 (set prepared main lever flag) | ||
45028 | LD B,16 | Prepare to set main lever 5 flag | ||
45030 | CP 26 | If current room is 26 (Castle First Floor, 2, Security Door & Main Lever 5)... | ||
45032 | JR Z,45064 | ...then skip ahead to 45064 (set prepared main lever flag) | ||
45034 | LD B,8 | Prepare to set main lever 4 flag | ||
45036 | CP 27 | If current room is 27 (Castle First Floor, 3, Main Lever 4)... | ||
45038 | JR Z,45064 | ...then skip ahead to 45064 (set prepared main lever flag) | ||
45040 | LD B,4 | Prepare to set main lever 3 flag | ||
45042 | CP 28 | If current room is 28 (Castle First Floor, 4, Main Lever 3)... | ||
45044 | JR Z,45064 | ...then skip ahead to 45064 (set prepared main lever flag) | ||
45046 | LD B,2 | Prepare to set main lever 2 flag | ||
45048 | CP 29 | If current room is 29 (Castle First Floor, 5, Main Lever 2)... | ||
45050 | JR Z,45064 | ...then skip ahead to 45064 (set prepared main lever flag) | ||
45052 | LD B,1 | Prepare to set main lever 1 flag | ||
45054 | CP 30 | If current room is 30 (Castle First Floor, 6, Main Lever 1)... | ||
45056 | JR Z,45064 | ...then skip ahead to 45064 (set prepared main lever flag) | ||
45058 | LD HL,57552 | Point HL at "THE LEVER SPRUNG BACK INTO POSITION..." text | ||
45061 | JP 64297 | Display "THE LEVER SPRUNG BACK INTO POSITION..." window (12) and return to game | ||
Set prepared main lever flag
|
||||
45064 | LD A,(23402) | Load current main lever flags... | ||
45067 | XOR B | ...merge in set flag prepared in B... | ||
45068 | LD (23402),A | ...and store back at 23402 | ||
45071 | JR 45058 | Jump back to 45058 (show "THE LEVER SPRUNG BACK..." message and return to main game loop | ||
Room 20 (Castle Ground Floor, 3)
|
||||
45073 | LD A,138 | Load A with 138 (instruction to draw layout data fragment 10, i.e. blank)... | ||
45075 | LD (59866),A | ...and replace security door (1/3) instruction at 59866 | ||
45078 | JR 45058 | Jump back to 45058 (show "THE LEVER SPRUNG BACK..." message and return to main game loop | ||
Room 38 (Castle Third Floor, 0, Big White Statue)
|
||||
45080 | LD A,138 | Load A with 138 (instruction to draw layout data fragment 10, i.e. blank)... | ||
45082 | LD (59867),A | ...and replace security door (2/3) instruction at 59867 | ||
45085 | JR 45058 | Jump back to 45058 (show "THE LEVER SPRUNG BACK..." message and return to main game loop | ||
Room 34 (Castle Second Floor, 3, One Way Corridor, 1)
|
||||
45087 | LD A,138 | Load A with 138 (instruction to draw layout data fragment 10, i.e. blank)... | ||
45089 | LD (59868),A | ...and replace security door (3/3) instruction at 59868 | ||
45092 | JR 45058 | Jump back to 45058 (show "THE LEVER SPRUNG BACK..." message and return to main game loop |
Prev: 44933 | Up: Map | Next: 45094 |