![]() |
Routines |
| Prev: BAE4 | Up: Map | Next: BB03 |
|
Used by the routine at score_borrow_lo.
|
||||
| score_borrow_mid | BAEF | LD HL,($C346) | Load digits 1–2 from var_score_digits12 into HL; A = L; DEC A | |
| BAF2 | LD A,L | |||
| BAF3 | DEC A | |||
| BAF4 | CP $2F | CP $2F | ||
| BAF6 | CALL Z,score_borrow_hi | If underflow, call score_borrow_hi (borrow from digit 2) | ||
| BAF9 | LD L,A | LD H,A | ||
| BAFA | LD ($C346),HL | Store HL to var_score_digits12 | ||
| BAFD | LD HL,($C348) | Reload var_score_digits34 into HL | ||
| BB00 | LD A,$39 | LD A,$39 ; Reset digit 4 to '9' | ||
| BB02 | RET | |||
| Prev: BAE4 | Up: Map | Next: BB03 |