diff --git a/compiler/res/prog8lib/c128/syslib.p8 b/compiler/res/prog8lib/c128/syslib.p8 index 65375d33b..51f9b8b57 100644 --- a/compiler/res/prog8lib/c128/syslib.p8 +++ b/compiler/res/prog8lib/c128/syslib.p8 @@ -8,10 +8,9 @@ c64 { &ubyte TIME_LO = $a2 ; .. lo byte. Updated by IRQ every 1/60 sec &ubyte STATUS = $90 ; kernal status variable for I/O &ubyte STKEY = $91 ; various keyboard statuses (updated by IRQ) - ;;&ubyte SFDX = $cb ; current key pressed (matrix value) (updated by IRQ) // TODO c128 ?? - - &ubyte COLOR = $00f1 ; cursor color - ;;&ubyte HIBASE = $0288 ; screen base address / 256 (hi-byte of screen memory address) // TODO c128 ?? + &ubyte SHFLAG = $d3 ; various modifier key status (updated by IRQ) + &ubyte SFDX = $d4 ; current key pressed (matrix value) (updated by IRQ) + &ubyte COLOR = $f1 ; cursor color &uword IERROR = $0300 &uword IMAIN = $0302 diff --git a/compiler/res/prog8lib/c64/syslib.p8 b/compiler/res/prog8lib/c64/syslib.p8 index be926fb7f..d33634e18 100644 --- a/compiler/res/prog8lib/c64/syslib.p8 +++ b/compiler/res/prog8lib/c64/syslib.p8 @@ -8,6 +8,7 @@ c64 { &ubyte STATUS = $90 ; kernal status variable for I/O &ubyte STKEY = $91 ; various keyboard statuses (updated by IRQ) &ubyte SFDX = $cb ; current key pressed (matrix value) (updated by IRQ) + &ubyte SHFLAG = $028d ; various modifier key status (updated by IRQ) &ubyte COLOR = $0286 ; cursor color &ubyte HIBASE = $0288 ; screen base address / 256 (hi-byte of screen memory address) diff --git a/docs/source/todo.rst b/docs/source/todo.rst index 047b1b89d..4e7109227 100644 --- a/docs/source/todo.rst +++ b/docs/source/todo.rst @@ -72,6 +72,7 @@ Compiler: Libraries: - fix the problems in atari target, and flesh out its libraries. +- c128 target: make syslib more complete (missing kernal routines)? - c64: make the graphics.BITMAP_ADDRESS configurable (VIC banking) - optimize several inner loops in gfx2 even further? - add modes 3 and perhaps even 2 to gfx2 (lores 16 color and 4 color)?