mirror of
https://github.com/hsoft/collapseos.git
synced 2024-11-24 06:18:06 +11:00
recipes/rc2014/ps2: works rather well now!
This commit is contained in:
parent
b7cda6ed14
commit
e3eea8839b
@ -39,12 +39,7 @@ address selection + `IORQ` + `RO`
|
|||||||
After having built and flashed the `glue.asm` supplied with this recipe, you end
|
After having built and flashed the `glue.asm` supplied with this recipe, you end
|
||||||
up with a shell driven by the PS/2 keyboard (but it still outputs to ACIA).
|
up with a shell driven by the PS/2 keyboard (but it still outputs to ACIA).
|
||||||
|
|
||||||
You will see, by typing on the keyboard, that it kinda works, but in a very
|
There are still a few glitches, especially at initialization or at connect and
|
||||||
basic and glitchy way. You will get double letters sometimes, and at some point,
|
disconnect, but it otherwise works rather well!
|
||||||
communications are likely to become "corrupted" (you reliably get the wrong
|
|
||||||
letters). That's because parity checks, timeouts and reset procedures aren't
|
|
||||||
implemented yet.
|
|
||||||
|
|
||||||
But still, it kinda works!
|
|
||||||
|
|
||||||
[avra]: https://github.com/hsoft/avra
|
[avra]: https://github.com/hsoft/avra
|
||||||
|
@ -6,10 +6,6 @@
|
|||||||
|
|
||||||
jp init
|
jp init
|
||||||
|
|
||||||
; interrupt hook
|
|
||||||
.fill 0x38-$
|
|
||||||
jp aciaInt
|
|
||||||
|
|
||||||
#include "err.h"
|
#include "err.h"
|
||||||
#include "core.asm"
|
#include "core.asm"
|
||||||
#include "parse.asm"
|
#include "parse.asm"
|
||||||
@ -31,12 +27,11 @@ init:
|
|||||||
; setup stack
|
; setup stack
|
||||||
ld hl, RAMEND
|
ld hl, RAMEND
|
||||||
ld sp, hl
|
ld sp, hl
|
||||||
im 1
|
|
||||||
|
|
||||||
call aciaInit
|
call aciaInit
|
||||||
|
call kbdInit
|
||||||
ld hl, kbdGetC
|
ld hl, kbdGetC
|
||||||
ld de, aciaPutC
|
ld de, aciaPutC
|
||||||
call stdioInit
|
call stdioInit
|
||||||
call shellInit
|
call shellInit
|
||||||
ei
|
|
||||||
jp shellLoop
|
jp shellLoop
|
||||||
|
Loading…
Reference in New Issue
Block a user