![]()  | 
Routines | 
| Prev: AA6E | Up: Map | Next: AAA8 | 
| 
 | 
||||
| Handler_DropItem | AA8A | JP NZ,$A75D | Jump to A75D if ?? is not equal to 00. | |
| AA8D | LD A,(IX+$01) | A=*IX+01. | ||
| AA90 | CALL $A772 | Call A772. | ||
| 
 
The item is in the players inventory, so move its location to the current room.
 
 | 
||||
| AA93 | LD B,A | B=A. | ||
| AA94 | LD A,($A106) | C=*CurrentRoom. | ||
| AA97 | LD C,A | |||
| AA98 | CALL Handler_UpdateItemLocation | Call Handler_UpdateItemLocation. | ||
| 
 
Player has dropped an item so handle the inventory count.
 
 | 
||||
| AA9B | LD HL,$A0D2 | Decrease *Count_InventoryItems by one. | ||
| AA9E | DEC (HL) | |||
| 
 
Print "O.K.".
 
 | 
||||
| AA9F | LD HL,$001A | HL=Messaging_OK. | ||
| AAA2 | CALL PrintCompressedStringAndNewline | Call PrintCompressedStringAndNewline. | ||
| AAA5 | JP $A75D | Jump to A75D. | ||
| 
 
View the equivalent code in; 
 
 | 
||||
| Prev: AA6E | Up: Map | Next: AAA8 |