Skip to navigation

Revs on the BBC Micro

Extra tracks: HookJoystick (Part 2 of 3)

Name: HookJoystick (Part 2 of 3) [Show more] Type: Subroutine Category: Extra tracks Summary: Apply enhanced joystick steering to specific track sections Deep dive: Secrets of the extra tracks Code hooks in the extra tracks
Context: See this subroutine in context in the source code References: No direct references to this subroutine in this source file
.joys3 LDY #181 \ Set Y = 181 so by default we scale the steering by \ 1.00 CMP #160 \ If the track section = 160 (i.e. section 20), jump to BEQ joys4 \ joys4 to scale the steering by 1.16 CMP #168 \ If the track section <> 168 (i.e. section 21), jump to BNE joys5 \ joys5 to keep checking LSR playerDrift \ Clear bit 7 of playerDrift to denote that the player \ is not drifting sideways (i.e. cancel any drift) .joys4 LDY #195 \ Set Y = 195 so we scale the steering by 1.16 .joys5 JMP joys6 \ Jump to part 3 to scale the steering