jetpac | Routines |
Prev: 60b7 | Up: Map | Next: 6161 |
6144 | ld hl,$5df0 | Current player level/lives | ||
6147 | ld de,$5df8 | Inactive player level/lives | ||
614a | ld b,$02 | |||
614c | call $6157 | Swap 2 bytes | ||
Now swap the current/inactive rocket states.
|
||||
614f | ld hl,$5d30 | Current player rocker state | ||
6152 | ld de,$5d98 | Inactive player rocker state | ||
6155 | ld b,$18 | We will be swapping 24 bytes | ||
Sub-routine for swapping HL/DE bytes.
|
||||
6157 | ld a,(de) | |||
6158 | ld c,(hl) | |||
6159 | ld (hl),a | |||
615a | ld a,c | |||
615b | ld (de),a | |||
615c | inc hl | |||
615d | inc de | |||
615e | djnz $6157 | |||
6160 | ret |
Prev: 60b7 | Up: Map | Next: 6161 |