Skip to navigation


Keyboard: ZEKTRAN

[Apple II version]

Name: ZEKTRAN [Show more] Type: Subroutine Category: Keyboard Summary: Clear the key logger
Context: See this subroutine in context in the source code References: This subroutine is called as follows: * BR1 (Part 1 of 2) calls ZEKTRAN * RDKEY calls ZEKTRAN * TITLE calls ZEKTRAN
.ZEKTRAN LDA #0 ; We want to zero the key logger buffer, so set A % 0 LDX #16 ; We want to clear the 17 key logger locations from ; KEYLOOK to KEYLOOK+16, so set a counter in X .ZEKLOOP STA KEYLOOK,X ; Reset the X-th byte of the key logger buffer to 0 DEX ; Decrement the loop counter BPL ZEKLOOP ; Loop back until we have zeroed bytes #11 through #0 RTS ; Return from the subroutine RTS ; This instruction has no effect as we already returned ; from the subroutine