Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions src/arch/zx48k/library/input.bas
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,29 @@ FUNCTION input(MaxLen AS UINTEGER) AS STRING
REM Wait for a Key Press
LastK = 0
DO LOOP UNTIL LastK <> 0
ASM
PROC
LOCAL PIP
LOCAL NO_CLICK
LOCAL BEEPER

PIP EQU 23609
BEEPER EQU 0x3B5

ld a, (PIP)
or a
jr z, NO_CLICK
push ix
ld e, a
ld d, 0
ld hl, 0x00C8
CALL BEEPER
pop ix

NO_CLICK:
ENDP

END ASM

PRIVATEInputHideCursor()

Expand Down
23 changes: 23 additions & 0 deletions src/arch/zxnext/library/input.bas
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,29 @@ FUNCTION input(MaxLen AS UINTEGER) AS STRING
REM Wait for a Key Press
LastK = 0
DO LOOP UNTIL LastK <> 0
ASM
PROC
LOCAL PIP
LOCAL NO_CLICK
LOCAL BEEPER

PIP EQU 23609
BEEPER EQU 0x3B5

ld a, (PIP)
or a
jr z, NO_CLICK
push ix
ld e, a
ld d, 0
ld hl, 0x00C8
CALL BEEPER
pop ix

NO_CLICK:
ENDP

END ASM

PRIVATEInputHideCursor()

Expand Down