![]() |
Routines |
Prev: 25029 | Up: Map |
Used by the routine at 25539. Adds $1, $5, $10 or $20 to Sam's cash supply, and prints the new total.
|
||||||||
25039 | CALL 61823 | Get a random number in A | ||||||
25042 | LD E,1 | Sam will get $1 if A<=127 | ||||||
25044 | CP 128 | |||||||
25046 | JR C,25062 | |||||||
25048 | LD E,5 | Sam will get $5 if 128<=A<=209 | ||||||
25050 | CP 210 | |||||||
25052 | JR C,25062 | |||||||
25054 | CP 248 | Sam will get $10 if 210<=A<=247 | ||||||
25056 | LD E,10 | |||||||
25058 | JR C,25062 | |||||||
25060 | LD E,20 | Sam will get $20 if A>=248 | ||||||
25062 | LD A,E | A=1, 5, 10 or 20 | ||||||
25063 | JP 28306 | Add this number of bucks to Sam's total and print the new total |
Prev: 25029 | Up: Map |