From d1806bfdc3e8f6edd88e0bbb5cfec7c3e0007b38 Mon Sep 17 00:00:00 2001 From: Irmen de Jong Date: Sun, 3 Dec 2023 22:15:29 +0100 Subject: [PATCH] added remaining verafx registers --- compiler/res/prog8lib/cx16/syslib.p8 | 27 +++++++++++++++++++++------ 1 file changed, 21 insertions(+), 6 deletions(-) diff --git a/compiler/res/prog8lib/cx16/syslib.p8 b/compiler/res/prog8lib/cx16/syslib.p8 index 0e915a485..7ddf232a3 100644 --- a/compiler/res/prog8lib/cx16/syslib.p8 +++ b/compiler/res/prog8lib/cx16/syslib.p8 @@ -272,14 +272,29 @@ cx16 { &ubyte VERA_SPI_DATA = VERA_BASE + $001E &ubyte VERA_SPI_CTRL = VERA_BASE + $001F - ; experimental Vera FX registers: (depends on particular value set in VERA_CTRL!!!) + ; Vera FX registers: (accessing depends on particular DCSEL value set in VERA_CTRL!) &ubyte VERA_FX_CTRL = VERA_BASE + $0009 - &ubyte VERA_FX_MULT = VERA_BASE + $000C + &ubyte VERA_FX_TILEBASE = VERA_BASE + $000a + &ubyte VERA_FX_MAPBASE = VERA_BASE + $000b + &ubyte VERA_FX_MULT = VERA_BASE + $000c + &ubyte VERA_FX_X_INCR_L = VERA_BASE + $0009 + &ubyte VERA_FX_X_INCR_H = VERA_BASE + $000a + &ubyte VERA_FX_Y_INCR_L = VERA_BASE + $000b + &ubyte VERA_FX_Y_INCR_H = VERA_BASE + $000c + &ubyte VERA_FX_X_POS_L = VERA_BASE + $0009 + &ubyte VERA_FX_X_POS_H = VERA_BASE + $000a + &ubyte VERA_FX_Y_POS_L = VERA_BASE + $000b + &ubyte VERA_FX_Y_POS_H = VERA_BASE + $000c + &ubyte VERA_FX_X_POS_S = VERA_BASE + $0009 + &ubyte VERA_FX_Y_POS_S = VERA_BASE + $000a + &ubyte VERA_FX_POLY_FILL_L = VERA_BASE + $000b + &ubyte VERA_FX_POLY_FILL_H = VERA_BASE + $000c &ubyte VERA_FX_CACHE_L = VERA_BASE + $0009 - &ubyte VERA_FX_CACHE_M = VERA_BASE + $000A - &ubyte VERA_FX_CACHE_H = VERA_BASE + $000B - &ubyte VERA_FX_CACHE_U = VERA_BASE + $000C - &ubyte VERA_FX_ACCUM_RESET = VERA_BASE + $0009 ; (DCSEL=6) + &ubyte VERA_FX_CACHE_M = VERA_BASE + $000a + &ubyte VERA_FX_CACHE_H = VERA_BASE + $000b + &ubyte VERA_FX_CACHE_U = VERA_BASE + $000c + &ubyte VERA_FX_ACCUM = VERA_BASE + $000a + &ubyte VERA_FX_ACCUM_RESET = VERA_BASE + $0009 ; VERA_PSG_BASE = $1F9C0