![]() |
Routines |
| Prev: B737 | Up: Map | Next: B755 |
|
Used by the routine at money_borrow_hi.
|
||||
|
Writes $3030 ("00") to var_money_digits34 and var_money_digits12 (all four money digits → "0000"). Then pops 4 return addresses from the stack (unwinds the full borrow chain: money_borrow_hi → money_borrow_mid → money_borrow_lo → deduct_money) and returns to the original caller. Money is clamped at zero — it cannot go negative.
|
||||
| reset_money | B745 | LD HL,$3030 | ||
| B748 | LD ($C340),HL | |||
| B74B | LD ($C33E),HL | |||
| B74E | POP BC | |||
| B74F | POP BC | |||
| B750 | POP BC | |||
| B751 | POP BC | |||
| B752 | RET | |||
| Prev: B737 | Up: Map | Next: B755 |