Cleaned up Font

Startet working on Keyboard Routines
This commit is contained in:
0xMAC8205 2024-02-18 22:54:51 +01:00
parent fdacbb1deb
commit f4fdca7fee
7 changed files with 9 additions and 51 deletions

Binary file not shown.

Binary file not shown.

BIN
assets/font.bin Executable file

Binary file not shown.

BIN
assets/thin.bmf Executable file

Binary file not shown.

View File

@ -28,49 +28,6 @@ keyboard_scan:
sta soft_system_register
sta system_register
ldy #$00 ; Result Index
ldx #$00 ; Row Counter
keyboard_scan_load:
lda #$fe ; Bit shifter
keyboard_scan_loop:
cmp keyboard_port
beq keyboard_scan_return
iny
rol
cmp #$fe
bne keyboard_scan_loop
inx
cpx #$08 ; Checking if Counted to 7
beq keyboard_scan_return
inc soft_system_register
lda soft_system_register
sta system_register
jmp keyboard_scan_load
keyboard_scan_return:
sty k0
lda soft_system_register
ora #$05
sta system_register
lda keyboard_port
tax
and #$0f
tay ; => Arrow Keys
txa
rol
rol
rol
rol
and #$07
tax ; => Modifier Keys
lda k0 ; => Scancode
rts
keyboard_translate:
; Keyboard Translate

View File

@ -1,5 +1,5 @@
; Important To-Do!
;
;
; Get launch & tasks json working
; fix Keyboard scanning
; work on KernelRoutinesList.txt
@ -8,15 +8,15 @@
; Does not support the Graphics module !
.include "src/variables.s"
.include "src/variables.s"
.org $c000 ; $c000 for 16k ROM
.include "src/kernel.s"
.org $f700
charset: .incbin "assets/UTF-8.bin"
charset: .incbin "assets/font.bin"
.org $ff00
reset: sei
@ -29,7 +29,7 @@ reset: sei
lda #$E0
sta vidm
lda #$60
sta cursor_delay
lda #$06
@ -86,7 +86,8 @@ lp:
cpy #$10
bne lp
loop:
loop:
jmp loop
irq_jump: jmp (irq_vector)
@ -97,4 +98,4 @@ irq_jump: jmp (irq_vector)
.addr reset
.addr irq_jump
.end
.end