This code appears in the following versions (click to see it in the source code):
Code variations between these versions are shown below.
Name: ZEKTRAN Type: Subroutine Category: Keyboard
Returns: X X is set to 0
.ZEKTRAN
LDX #11 \ We use the first 12 bytes of the key logger buffer at \ KTRAN, so set a loop counter accordingly
LDA #0 \ We want to zero the key logger buffer, so set A % 0
LDX #17 \ We want to clear the 17 key logger locations from \ KL to KY20, so set a counter in X
.ZEKLOOP
RTS \ Return from the subroutine
RTS \ This instruction has no effect as we already returned \ from the subroutine