![]() |
Routines |
| Prev: F5E6 | Up: Map | Next: F690 |
|
Read the wand.
|
||||
| Read_Wand | F611 | LD A,$24 | Call IsPlayerCarryingItem with item 24: "A wand.". | |
| F613 | CALL IsPlayerCarryingItem | |||
| F616 | LD HL,$AE78 | Jump to Read_Wand_0 if bit 1 of *Flag_TurnScratch is set. | ||
| F619 | BIT 1,(HL) | |||
| F61B | JR NZ,Read_Wand_0 | |||
|
Print "A strange force stops you.".
|
||||
| F61D | LD HL,$D28C | HL=Messaging_AStrangeForceStopsYou. | ||
| F620 | JP PrintResponse | Jump to PrintResponse. | ||
| Read_Wand_0 | F623 | LD A,($AECD) | A=*CurrentRoom. | |
| F626 | CP $16 | Jump to Read_Wand_1 if A is not 16. | ||
| F628 | JR NZ,Read_Wand_1 | |||
| F62A | LD A,$29 | Call ValidateItemPresent with item 29: "A spirit.". | ||
| F62C | CALL ValidateItemPresent | |||
| F62F | JP NZ,Response_NothingHappens | Jump to Response_NothingHappens if the Z flag is not set. | ||
| F632 | LD A,$29 | Call HandlerDestroyItemEvent with item 29: "A spirit.". | ||
| F634 | CALL HandlerDestroyItemEvent | |||
| F637 | LD A,$15 | Write 15 to open westbound access to The King's Anteroom from The Hall of Wisdom. | ||
| F639 | LD ($E86D),A | |||
| F63C | LD A,$03 | Call AddToScore with 03. | ||
| F63E | CALL AddToScore | |||
|
Print "The wand emits a shaft of
shimmering blue light.The beam
strikes the spirit and with a
wail,it dissipates.".
|
||||
| F641 | LD HL,$E004 | HL=Messaging_TheWandEmitsAShaftOfShimmeringBlueLight. | ||
| F644 | JP PrintResponse | Jump to PrintResponse. | ||
| Read_Wand_1 | F647 | CP $19 | Jump to Read_Wand_3 if A is not 19. | |
| F649 | JR NZ,Read_Wand_3 | |||
| F64B | LD A,$2D | Call ValidateItemPresent with item 2D: "A crystal bridge over the chasm.". | ||
| F64D | CALL ValidateItemPresent | |||
| F650 | JP Z,Response_NothingHappens | Jump to Response_NothingHappens if the Z flag is set. | ||
| Read_Wand_2 | F653 | LD BC,$2D19 | Call SetItemRoom with item 2D in room 19. | |
| F656 | CALL SetItemRoom | |||
| F659 | LD BC,$2E21 | Call SetItemRoom with item 2E in room 21. | ||
| F65C | CALL SetItemRoom | |||
| F65F | LD A,$21 | Write 21 to open southbound access to The Stair Room from The Vast Hall. | ||
| F661 | LD ($E87D),A | |||
| F664 | LD A,$19 | Write 19 to open northbound access to The Vast Hall from The Stair Room. | ||
| F666 | LD ($E8AC),A | |||
|
Print "In a dazzle of glory,a crystal
bridge appears across the
chasm.".
|
||||
| F669 | LD HL,$E06F | HL=Messaging_InADazzleOfGloryACrystalBridgeAppears. | ||
| F66C | CALL PrintStringAndNewline | Call PrintStringAndNewline. | ||
| F66F | LD HL,$AE77 | Return if bit 2 of *Flag_BeachDug is set. | ||
| F672 | BIT 2,(HL) | |||
| F674 | RET NZ | |||
| F675 | LD A,$2C | Call HandlerUpdateItemEventForTheCurrentRoom with item 2C: "A balrog.". | ||
| F677 | CALL HandlerUpdateItemEventForTheCurrentRoom | |||
| F67A | XOR A | Write 00 to close the southbound exit from The Vast Hall. | ||
| F67B | LD ($E87D),A | |||
| F67E | LD A,$02 | Call AddToScore with 02. | ||
| F680 | CALL AddToScore | |||
|
Print "There is a balrog on the bridge,
preventing your passage.".
|
||||
| F683 | LD HL,$E0B0 | HL=Messaging_ThereIsABalrogOnTheBridgePreventing. | ||
| F686 | JP PrintResponse | Jump to PrintResponse. | ||
| Read_Wand_3 | F689 | CP $21 | Jump to Read_Wand_2 if A is 21. | |
| F68B | JR Z,Read_Wand_2 | |||
| F68D | JP Response_DontBeRidiculous | Jump to Response_DontBeRidiculous. | ||
| Prev: F5E6 | Up: Map | Next: F690 |