| Pyjamarama | Routines |
| Prev: 84F4 | Up: Map |
|
Used by the routine at Game_Start.
|
|||||||
|
Updates the percentage score by setting current room to 'visited' and marking the objects being carried.
|
|||||||
| Game_PercentUpdate | 850E | LD A,(Wally_RoomNo) | Set current room to visited. | ||||
| 8511 | LD E,A | ||||||
| 8512 | LD D,$00 | ||||||
| 8514 | LD HL,Room_VisitedTable | ||||||
| 8517 | ADD HL,DE | ||||||
| 8518 | LD (HL),$01 | ||||||
| 851A | LD A,(Pocket1) | Make the first object being carried for percentage score. | |||||
| 851D | LD HL,Object_FoundTable | ||||||
| 8520 | ADD A,A | ||||||
| 8521 | LD E,A | ||||||
| 8522 | LD D,$00 | ||||||
| 8524 | ADD HL,DE | ||||||
| 8525 | LD (HL),$01 | ||||||
| 8527 | LD A,(Pocket2) | Make the first object being carried for percentage score. | |||||
| 852A | LD HL,Object_FoundTable | ||||||
| 852D | ADD A,A | ||||||
| 852E | LD E,A | ||||||
| 852F | LD D,$00 | ||||||
| 8531 | ADD HL,DE | ||||||
| 8532 | LD (HL),$01 | ||||||
| 8534 | RET | ||||||
| Prev: 84F4 | Up: Map |