Fixed PS/2 keyboard on F256jr and jr2

This commit is contained in:
Peter Weingartner 2024-12-12 14:15:28 -05:00
parent bced1b694c
commit d738cb5645
45 changed files with 969 additions and 3078 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

File diff suppressed because one or more lines are too long

View file

@ -1,7 +1,7 @@
; 64tass Turbo Assembler Macro V1.58.2974 listing file
; 64tass -b --list sample_boot.lst -o sample_boot.bin sample_boot.s
; Sat Aug 24 16:48:34 2024
; Thu Dec 12 13:20:15 2024
;Offset ;PC ;Hex ;Monitor ;Source

39
samples/pgx/sample.lst Normal file
View file

@ -0,0 +1,39 @@
; 64tass Turbo Assembler Macro V1.58.2974 listing file
; 64tass -b --list sample.lst -o sample.pgx sample_pgx.s
; Thu Dec 12 13:21:11 2024
;Offset ;Hex ;Monitor ;Source
;****** Processing input file: sample_pgx.s
=$f04000 vky_text = $f04000
=$f01000 vky_mst_ctrl_0 = $f01000
>2000 50 47 58 header: .text "PGX"
>2003 01 .byte $01 ; Version 0, CPU 65816
>2004 00 .byte 0
>2005 00 .byte `start
>2006 20 .byte >start
>2007 08 .byte <start
.2008 e2 20 sep #$20 start: sep #$20
.200a c2 10 rep #$10 rep #$10
.200c a9 01 lda #$01 lda #$01
.200e 8f 00 10 f0 sta $f01000 sta vky_mst_ctrl_0
.2012 a9 20 lda #$20 lda #' '
.2014 a2 00 00 ldx #$0000 ldx #0
.2017 9f 00 40 f0 sta $f04000,x clrloop1: sta @l vky_text,x
.201b e8 inx inx
.201c e0 00 20 cpx #$2000 cpx #$2000
.201f d0 f6 bne $2017 bne clrloop1
.2021 a2 00 00 ldx #$0000 ldx #0
.2024 bf 34 20 00 lda $002034,x putloop: lda @l message,x
.2028 f0 07 beq $2031 beq done
.202a 9f 00 40 f0 sta $f04000,x sta @l vky_text,x
.202e e8 inx inx
.202f 80 f3 bra $2024 bra putloop
.2031 ea nop done: nop
.2032 80 fd bra $2031 bra done
>2034 48 65 6c 6c 6f 2c 20 77 message: .null 'Hello, world!'
>203c 6f 72 6c 64 21 00
;****** End of listing

BIN
samples/pgx/sample.pgx Normal file

Binary file not shown.

View file

@ -455,8 +455,8 @@ short kbd_sc_init() {
break_pressed = false;
// Register and enable the PS/2 interrupt handler
// int_register(INT_KBD_PS2, kbd_handle_irq);
// int_enable(INT_KBD_PS2);
int_register(INT_KBD_PS2, (p_int_handler)kbd_handle_irq);
int_enable(INT_KBD_PS2);
return 0;
}

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

File diff suppressed because one or more lines are too long

View file

@ -210,7 +210,7 @@ void initialize() {
}
#endif
// // At this point, we should be able to call into to console to print to the screens
// At this point, we should be able to call into to console to print to the screens
// if ((res = ps2_init())) {
// ERROR1("FAILED: PS/2 keyboard initialization", res);
@ -218,6 +218,10 @@ void initialize() {
// log(LOG_INFO, "PS/2 keyboard initialized.");
// }
// Initialize the keyboard
kbd_init();
INFO("Keyboard initialized");
#if MODEL == MODEL_FOENIX_A2560K
if ((res = kbdmo_init())) {
log_num(LOG_ERROR, "FAILED: A2560K built-in keyboard initialization", res);
@ -262,8 +266,6 @@ int main(int argc, char * argv[]) {
initialize();
kbd_init();
boot_screen();
#ifdef _CALYPSI_MCP_DEBUGGER

View file

@ -7,6 +7,6 @@
#define VER_MAJOR 1
#define VER_MINOR 1
#define VER_BUILD 3
#define VER_BUILD 4
#endif