Routines
| Prev: E488 | Up: Map | Next: E4C9 |
E497: Verb 128 (scripts only): put a thing in a room
|
Takes the direct object out of whatever holds it and puts it in the room given as the indirect object (DD0E); room 0 is off stage.
Used by: internal verb 128 (PUT: move the direct object into room (indirect object); room 0 is off stage).
|
||||||||||||||
| E497 | DEFB $47,$24,$B0,$E4 | Action record header: flags $47; bit 6: pre-check at E4B0; byte 1 $24 | ||||||||||||
| E49B | LD A,($A035) | Read $A035 in "Game variables" into A - The room | ||||||||||||
| E49E | LD B,A | Copy A into B | ||||||||||||
| E49F | LD A,($A034) | The thing | ||||||||||||
| E4A2 | LD IX,($A013) | Read $A013 in "Game variables" into IX | ||||||||||||
| E4A6 | LD (IX+$01),$FF | Out of any container | ||||||||||||
| E4AA | CALL $DD0E | Into the room | ||||||||||||
| E4AD | OR $01 | Make A non-zero, which clears the zero flag, and hand that back to the caller - Done | ||||||||||||
| E4AF | RET | Return to the caller | ||||||||||||
| E4B0 | LD IX,($A013) | Read $A013 in "Game variables" into IX | ||||||||||||
| E4B4 | BIT 6,(IX+$05) | Test bit 6 of byte +5 of the record at IX | ||||||||||||
| E4B8 | JR Z,$E4C6 | If bit 6 of byte +5 of the record at IX is clear, skip ahead to E4C6 | ||||||||||||
| E4BA | LD A,(IX+$0F) | Read byte +15 of the record at IX into A | ||||||||||||
| E4BD | CALL $D224 | Call the routine "Find a room record" (D224) | ||||||||||||
| E4C0 | LD A,(IX+$09) | Read byte +9 of the record at IX into A | ||||||||||||
| E4C3 | LD ($A033),A | Store A in $A033 in "Game variables" | ||||||||||||
| E4C6 | OR $01 | Make A non-zero, which clears the zero flag, and hand that back to the caller | ||||||||||||
| E4C8 | RET | Return to the caller | ||||||||||||
| Prev: E488 | Up: Map | Next: E4C9 |