Routines
| Prev: E5FD | Up: Map | Next: E654 |
E63E: Action record: is a fare owed? (RUN at $F2D8)
|
Addresses named in the title: F2D8.
The cabbie's script at F2B6 reads the balance of his purse (+9/+10 of the money he holds): negative while a fare is owed, positive when change is due, zero when settled.
|
||||||||
| E63E | DEFB $40,$00,$42,$E6 | Action record header: flags $40; bit 6: pre-check at E642; byte 1 $00 | ||||||
| E642 | LD A,($A036) | Read $A036 in "Game variables" into A - Is anything held by the actor (E619)? No: fail | ||||||
| E645 | CALL $E619 | Call E619 (inside "Action record: RUN at E08F; RUN at E46B;...") | ||||||
| E648 | JP Z,$DC15 | If the zero flag is set, go back to the routine "Fail: A = 0, HL = 0, Z set" (DC15) | ||||||
| E64B | CALL $E39C | Call the routine "HL = the money a thing holds (+9/+10)" (E39C) - Test the result (E39C): bit 7 of HL clear: fail | ||||||
| E64E | BIT 7,H | Test bit 7 of H | ||||||
| E650 | JP Z,$DC15 | If bit 7 of H is clear, go back to the routine "Fail: A = 0, HL = 0, Z set" (DC15) | ||||||
| E653 | RET | Return to the caller | ||||||
| Prev: E5FD | Up: Map | Next: E654 |