.LL164 LDA #56 \ Call the NOISE routine with A = 56 to make the sound JSR NOISE \ of the hyperspace drive being engaged LDA #1 \ Set HFX to 1, which switches the screen mode to a full STA HFX \ mode 5 screen, therefore making the hyperspace rings \ multi-coloured and all zig-zaggy (see the IRQ1 routine \ for details) JSR update_pod \ Update the dashboard colours to reflect whether we \ have an escape pod, as the hyperspace process resets \ this aspect of the palette LDA #4 \ Set the step size for the hyperspace rings to 4, so \ there are more sections in the rings and they are \ quite round (compared to the step size of 8 used in \ the much more polygonal launch rings) JSR HFS2 \ Call HFS2 to draw the hyperspace tunnel rings DEC HFX \ Set HFX back to 0, so we switch back to the normal \ split-screen mode JMP update_pod \ Update the dashboard colours to reflect whether we \ have an escape pod, as the hyperspace process resets \ this aspect of the paletteName: LL164 [Show more] Type: Subroutine Category: Drawing circles Summary: Make the hyperspace sound and draw the hyperspace tunnelContext: See this subroutine in context in the source code References: This subroutine is called as follows: * MJP calls LL164 * TT18 calls LL164
See the IRQ1 routine for details on the multi-coloured effect that's used.
[X]
Subroutine HFS2 (category: Drawing circles)
Clear the screen and draw the launch or hyperspace tunnel
[X]
Subroutine NOISE (category: Sound)
Make the sound whose number is in A
[X]
Subroutine update_pod (category: Dashboard)
Ensure the correct palette is shown for the dashboard/hyperspace tunnel, by sending a write_pod command to the I/O processor