| jetpac | Routines | 
| Prev: 690e | Up: Map | Next: 6954 | 
| 
 
This also performs the self-modifying code update.
 
 | 
||||
| 692e | di | This routine only called if EI, so we must now disable | ||
| 692f | ld a,($5c78) | Update last_frame to current SYSVAR_FRAMES | ||
| 6932 | ld ($5dd4),a | |||
| 6935 | ld a,$01 | Frame has ticked over, set to true | ||
| 6937 | ld ($5dd5),a | |||
| 693a | push ix | Backup main jump table address | ||
| 
 
Do some the code modifying...
 
 | 
||||
| 693c | ld hl,$5d30 | HL=points to the rocket object | ||
| 693f | ld ($697e),hl | |||
| 6942 | ld a,$c3 | Value is a `JP` opcode | ||
| 6944 | ld ($699c),a | |||
| 6947 | ld hl,$6966 | HL=address to be modified | ||
| 694a | ld ($699d),hl | |||
| 
 
...code modifying complete.
 
 | 
||||
| 694d | ld ix,$5d00 | IX=Jetman object | ||
| 6951 | jp $631c | Execute main loop | ||
| Prev: 690e | Up: Map | Next: 6954 |