Prev: 46968 Up: Map Next: 47060
47043: Set carry flag if Kempston interface not present, or Kempston joystick moved / fire pressed
Used by the routine at 46830.
Output
F Carry flag set if Kempston interface not present, Kempston joystick moved or fire pressed, reset otherwise
47043 LD B,0 Set B to zero (to repeat check loop 256 times)
47045 IN A,(31) Read value from Port 31 into A (Kempston interface)
47047 OR A If retrieved value is not zero (i.e. Kempston interface not present, or Kempston joystick not centred / fire button pressed)...
47048 JR NZ,47053 ...then skip ahead to 47053
47050 DJNZ 47045 Decrease B (loop counter) and loop back to 47045 to check Kempston status again if counter not zero
47052 RET Return
47053 LD A,6 Set sound 6 as pending if appropriate, then play and clear pending sound...
47055 CALL 59722 ...
47058 SCF Set carry flag
47059 RET Return
Prev: 46968 Up: Map Next: 47060