Reading ps/2 keyboard, but somehow, keycodes are decremented by 1

This commit is contained in:
Daniele Verducci su MatissePenguin
2021-02-07 11:01:58 +01:00
parent 2366408679
commit a1a858a701
4 changed files with 156 additions and 145 deletions

View File

@ -116,9 +116,19 @@ Sysinit:
call Sys_Beep
; Run memory monitor
ei ; enable maskabpe interrupts
im 1 ; set interrupt mode 1 (on interrupt jumps to 0x38)
rst 0x38 ; throw fake interrupt: jump to interrupt routine to start monitor
; ei ; enable maskabpe interrupts
; im 1 ; set interrupt mode 1 (on interrupt jumps to 0x38)
; rst 0x38 ; throw fake interrupt: jump to interrupt routine to start monitor
; Keyboard test
ld a, 0x3E
call Sys_Printc
ktestloop:
call Sys_Readc
call Sys_Printc
ld a, 46
call Sys_Printc
jp ktestloop
; User exited from memory monitor without loading a program. Do nothing.
mloop: