| The Hobbit (v1.0) | Routines |
| Prev: 74B8 | Up: Map | Next: 7578 |
|
Returns with Z set if nothing should be printed at the moment: output happens only if both $B5EB (the command is really being carried out, not just tried) and $B5F3 (the event can be seen by the player) are non-zero. A is preserved.
|
||||||||
| 756B | PUSH HL | Save HL | ||||||
| 756C | LD L,A | Keep the caller's A safe in L for a moment | ||||||
| 756D | LD A,($B5EB) | Is this action really happening (not just being tried)? | ||||||
| 7570 | LD H,A | |||||||
| 7571 | LD A,($B5F3) | Can Bilbo actually see or hear it happen? | ||||||
| 7574 | AND H | Both must be true for anything to be printed | ||||||
| 7575 | LD A,L | Restore the caller's own A | ||||||
| 7576 | POP HL | Restore HL | ||||||
| 7577 | RET | Z set means printing is switched off | ||||||
| Prev: 74B8 | Up: Map | Next: 7578 |