![]() |
Routines |
| Prev: 50917 | Up: Map | Next: 50974 |
|
This routine flashes the last life image eight times, and returns with lives being one less and the carry flag being set.
|
||||
| Flash_Life_Image | 50928 | LD HL,(23430) | Decrease Lives by one. | |
| 50931 | DEC (HL) | |||
| 50932 | LD B,8 | Sets B (the counter) to loop $08 times. | ||
| Flash_Life_Image_Loop | 50934 | PUSH BC | ||
| 50935 | PUSH HL | |||
| 50936 | INC (HL) | Increase Lives by one and call Draw_Lives_Images_Alias. | ||
| 50937 | CALL Draw_Lives_Images_Alias | |||
| 50940 | LD B,16 | Interrupt driven halt loop. | ||
| Flash_Life_Image_Halt_Loop_01 | 50942 | HALT | ||
| 50943 | DJNZ Flash_Life_Image_Halt_Loop_01 | |||
| 50945 | POP HL | |||
| 50946 | PUSH HL | |||
| 50947 | DEC (HL) | Decrease Lives by one and call Draw_Lives_Images_Alias. | ||
| 50948 | CALL Draw_Lives_Images_Alias | |||
| 50951 | POP HL | |||
| 50952 | LD B,16 | Interrupt driven halt loop. | ||
| Flash_Life_Image_Halt_Loop_02 | 50954 | HALT | ||
| 50955 | DJNZ Flash_Life_Image_Halt_Loop_02 | |||
| 50957 | POP BC | Retrieves B (the counter) from the stack and loop back until finished. | ||
| 50958 | DJNZ Flash_Life_Image_Loop | |||
| 50960 | SCF | Set the carry flag and return. | ||
| 50961 | RET | |||
| Prev: 50917 | Up: Map | Next: 50974 |