;.DKJ1 ; These instructions are commented out in the original ;LDA auto ; source (they are from the BBC Micro version) ;BNE auton ;LDA KTRAN+1 ;STA KL+1 ;LDA KTRAN+2 ;STA KL+2 ;.BS1 ;LDA KTRAN+12 ;TAX ;AND #16 ;EOR #16 ;STA KL+7 ;LDX #1 ;JSR DKS2 ;ORA #1 ;STA JSTX ;LDX #2 ;JSR DKS2 ;EOR JSTGY ;STA JSTY ;JMP DK4Name: DKJ1 [Show more] Type: Subroutine Category: Keyboard Summary: Read joystick and flight controlsContext: See this subroutine in context in the source code References: No direct references to this subroutine in this source file
Specifically, scan the keyboard for the speed up and slow down keys, and read the joystick's fire button and X and Y axes, storing the results in the key logger and the joystick position variables. This routine is only called if joysticks are enabled (JSTK = non-zero).