![]() |
Routines |
| Prev: 68B0 | Up: Map | Next: 6902 |
|
Puts a carried or worn object down in the current room. Message 17 says you don't have it.
|
||||
| DropObject | 68E4 | LD A,($5D8A) | An object that is worn is put down without changing the carried count. | |
| 68E7 | CP C | |||
| 68E8 | JR Z,DropObject_Put | |||
| 68EA | LD A,($5D89) | An object that is carried is counted down. | ||
| 68ED | CP C | |||
| 68EE | JR Z,DropObject_Count | |||
| 68F0 | LD A,$17 | Message 17: you don't have it. | ||
| 68F2 | JR GetObject_Refuse | |||
| DropObject_Count | 68F4 | LD HL,$5D8C | One fewer object is carried. | |
| 68F7 | DEC (HL) | |||
| DropObject_Put | 68F8 | CALL ObjectAddress | Write the current room into the object's location. | |
| 68FB | LD A,($5D87) | |||
| 68FE | LD (HL),A | |||
| 68FF | JP RoomHasChanged | Jump to RoomHasChanged so the room is described again. | ||
| Prev: 68B0 | Up: Map | Next: 6902 |