Files
open-roms/c64/kernal/keyboard/keyboard_disconnect.s
T

26 lines
381 B
ArmAsm

// #LAYOUT# STD * #TAKE
// #LAYOUT# * KERNAL_0 #TAKE
// #LAYOUT# * * #IGNORE
//
// Helper routine - disconnects the keyboard from CIA1_PRB,
// leaves $FF in .X (behavior needed in some places)
//
#if !CONFIG_LEGACY_SCNKEY
keyboard_disconnect:
ldx #$FF
stx CIA1_PRA // disconnect all the rows
#if CONFIG_KEYBOARD_C128
stx VIC_XSCAN
#endif
rts
#endif