![]() |
Routines |
| Prev: C27A | Up: Map | Next: C2CE |
|
Used by the routine at cafe_encounter.
|
||||
| draw_expense | C2AA | LD DE,$3C00 | Set CHARS to $3C00 | |
| C2AD | CALL set_chars | |||
| C2B0 | LD HL,$C2CE | Draw frame_expense_label ("DESPESA:" label frame) | ||
| C2B3 | CALL draw_frame | |||
| C2B6 | LD A,($C339) | Print digit 1 of expense (var_cafe_tab + 1, high byte) | ||
| C2B9 | RST $10 | |||
| C2BA | LD A,($C338) | Print digit 2 of expense (var_cafe_tab, low byte) | ||
| C2BD | RST $10 | |||
| C2BE | LD A,$30 | Print two '0' characters (cents are always 00) | ||
| C2C0 | RST $10 | |||
| C2C1 | LD A,$30 | |||
| C2C3 | RST $10 | |||
| C2C4 | LD A,$24 | Print '$' (escudo sign) | ||
| C2C6 | RST $10 | |||
| C2C7 | LD A,$30 | Print two '0' characters (decimal zeros) | ||
| C2C9 | RST $10 | |||
| C2CA | LD A,$30 | |||
| C2CC | RST $10 | |||
| C2CD | RET | |||
| Prev: C27A | Up: Map | Next: C2CE |