![]() |
Routines |
| Prev: 49347 | Up: Map | Next: 49401 |
|
Used by the routines at Handler_DisplayRoom and Action_Inventory.
Print every object in the given place.
|
||||
| PrintObjects | 49362 | LD HL,47560 | Look up the object locations. | |
| 49365 | LD BC,(47864) | |||
| PrintObjects_Loop | 49369 | CPIR | Return if the search did not find a match. | |
| 49371 | RET NZ | |||
| 49372 | PUSH AF | Keep the search and turn the match into an object index. | ||
| 49373 | PUSH HL | |||
| 49374 | PUSH BC | |||
| 49375 | LD A,(47864) | |||
| 49378 | SUB C | |||
| 49379 | DEC A | |||
| 49380 | LD E,A | |||
| 49381 | LD IX,(47842) | Call GetTableEntry to fetch this object's description. | ||
| 49385 | CALL GetTableEntry | |||
| 49388 | CALL PrintStringAndANewline | Call PrintStringAndANewline to print the description and start a new line. | ||
| 49391 | POP BC | Restore the search from the stack. | ||
| 49392 | POP HL | |||
| 49393 | POP AF | |||
| 49394 | LD E,A | Look for another object here. | ||
| 49395 | LD A,B | |||
| 49396 | OR C | |||
| 49397 | LD A,E | |||
| 49398 | JR NZ,PrintObjects_Loop | |||
| 49400 | RET | Return. | ||
|
View the equivalent code in;
|
||||
| Prev: 49347 | Up: Map | Next: 49401 |