1.5 KiB
-
Updated: 2020-03-23 20:21:18 -0700
$KBDRESET
( -- ) send reset command to PS/2 keyboard
DUMPEDID
( -- ) dump display EDID data, first 256 bytes.
GETRTC
( -- day hour minutes seconds ms us ) get RTC
I2C2!
( byte -- ) write byte to I2C2.
I2C2@
( -- byte ) receive byte from I2C2, do not send ack.
I2C2@+
( -- byte ) receive byte from I2C2, send ack.
I2C2START
( -- ) start I2C2 communication.
I2C2STOP
( -- ) stop I2C2 communication.
PS2K!
( byte -- ) write byte to PS/2 keyboard port.
PS2K?
( -- f ) f is true if data waiting at PS/2 keyboard port.
PS2K@
( -- byte ) read byte from PS/2 keyboard port.
PS2KEY
( -- c ) wait for keypress on PS/2 port, c is the character typed.
PS2M!
( byte -- ) write byte to PS/2 mouse port.
PS2M?
( -- f ) f is true if data waiting at PS/2 mouse port.
PS2M@
( -- byte ) read byte from PS/2 keyboard port.
PS2RAW
( -- code f ) read raw keycode from PS/2 port. code is keycode, either xx or E0xx, f is true if break.
SETRTC
( day hour minutes seconds ms us -- ) set RTC
SPI2!
( byte -- ) write byte to SPI2.
SPI2@
( -- byte ) fetch byte from SPI2.
SPI2INIT
( -- ) initialize SPI2.
SPI2START
( -- ) start SPI2 communication.
SPI2STOP
( -- ) stop SPI2 communication.
VDC!
( offset word -- ) write word to VDC at offset
VDCC!
( offset byte -- ) write byte to VDC at offset
VDCC@
( offset -- byte ) read byte from VDC at offset