Prev: 96FE Up: Map Next: 9712
9708: Add Money
Used by the routines at Handler_SubGame and 9634.
Input
B Number of digits
DE Pointer to players cash
HL Pointer to cost to add
AddMoney 9708 AND A Set flags.
AddMoney_Loop 9709 LD A,(DE) A=*DE.
970A ADC A,(HL) A+=*HL.
970B DAA Digital to analogue conversion.
970C LD (DE),A Write A to *DE.
970D INC HL Increment HL by one.
970E INC DE Increment DE by one.
970F DJNZ AddMoney_Loop Decrease number of digits counter by one and loop back to AddMoney_Loop until all digits have been processed.
9711 RET Return.
Prev: 96FE Up: Map Next: 9712