diff --git a/compiler/res/prog8lib/cx16/diskio.p8 b/compiler/res/prog8lib/cx16/diskio.p8 index 5b66d02af..c7a85a8be 100644 --- a/compiler/res/prog8lib/cx16/diskio.p8 +++ b/compiler/res/prog8lib/cx16/diskio.p8 @@ -414,7 +414,7 @@ byte_read_loop: ; fallback if MACPTR isn't supported on the device while num_bytes!=0 { %asm {{ jsr cbm.CHRIN -m_in_buffer sta $ffff +m_in_buffer sta $ffff ; modified inc m_in_buffer+1 bne + inc m_in_buffer+2 diff --git a/compiler/res/prog8lib/shared_cbm_diskio.p8 b/compiler/res/prog8lib/shared_cbm_diskio.p8 index 458dd5f9c..f97166381 100644 --- a/compiler/res/prog8lib/shared_cbm_diskio.p8 +++ b/compiler/res/prog8lib/shared_cbm_diskio.p8 @@ -366,7 +366,7 @@ close_end: while num_bytes!=0 { %asm {{ jsr cbm.CHRIN -m_in_buffer sta $ffff +m_in_buffer sta $ffff ; modified inc m_in_buffer+1 bne + inc m_in_buffer+2 diff --git a/docs/source/software.rst b/docs/source/software.rst index b7a548889..037878385 100644 --- a/docs/source/software.rst +++ b/docs/source/software.rst @@ -45,6 +45,12 @@ Various things: `Prog8 code for ZSMkit `_ ZSMkit is an advanced music and sound effects engine for the Commander X16. +`vtsbank: a library for affine transformation and rotation of sprites and tiles `_ + "VERA Tile Set and Sprite feature" is a module that provides all sorts + of routines to perform tile and sprite transformations and rotation, using + the VeraFX hardware feature. Includes examples. + + .. image:: _static/curious.png :align: center :alt: Curious diff --git a/examples/cx16/pcmaudio/stream-simple-aflow.p8 b/examples/cx16/pcmaudio/stream-simple-aflow.p8 index 214be3a25..c0dfec6e7 100644 --- a/examples/cx16/pcmaudio/stream-simple-aflow.p8 +++ b/examples/cx16/pcmaudio/stream-simple-aflow.p8 @@ -88,10 +88,10 @@ interrupts { sta _lp2+2 ldx #4 ldy #0 -_loop lda $ffff,y +_loop lda $ffff,y ; modified sta cx16.VERA_AUDIO_DATA iny -_lp2 lda $ffff,y +_lp2 lda $ffff,y ; modified sta cx16.VERA_AUDIO_DATA iny bne _loop diff --git a/examples/cx16/pcmaudio/stream-simple-poll.p8 b/examples/cx16/pcmaudio/stream-simple-poll.p8 index ee8cc84c6..b9ebe5fb8 100644 --- a/examples/cx16/pcmaudio/stream-simple-poll.p8 +++ b/examples/cx16/pcmaudio/stream-simple-poll.p8 @@ -89,10 +89,10 @@ music { sta _lp2+2 ldx #4 ldy #0 -_loop lda $ffff,y +_loop lda $ffff,y ; modified sta cx16.VERA_AUDIO_DATA iny -_lp2 lda $ffff,y +_lp2 lda $ffff,y ; modified sta cx16.VERA_AUDIO_DATA iny bne _loop diff --git a/examples/cx16/pcmaudio/stream-wav.p8 b/examples/cx16/pcmaudio/stream-wav.p8 index 5bea754d2..b4ce964e2 100644 --- a/examples/cx16/pcmaudio/stream-wav.p8 +++ b/examples/cx16/pcmaudio/stream-wav.p8 @@ -237,11 +237,11 @@ music { sta _lp2+2 ldx #4 ldy #0 -_loop lda $ffff,y +_loop lda $ffff,y ;modified eor #$80 ; convert to signed sta cx16.VERA_AUDIO_DATA iny -_lp2 lda $ffff,y +_lp2 lda $ffff,y ; modified eor #$80 ; convert to signed sta cx16.VERA_AUDIO_DATA iny @@ -274,10 +274,10 @@ _lp2 lda $ffff,y sta _lp2+2 ldx #4 ldy #0 -_loop lda $ffff,y +_loop lda $ffff,y ; modified sta cx16.VERA_AUDIO_DATA iny -_lp2 lda $ffff,y +_lp2 lda $ffff,y ; modified sta cx16.VERA_AUDIO_DATA iny bne _loop diff --git a/examples/test.p8 b/examples/test.p8 index b8d480bb6..57a113bb4 100644 --- a/examples/test.p8 +++ b/examples/test.p8 @@ -1,17 +1,16 @@ %import textio %zeropage basicsafe -%option no_sysinit +%option no_sysinit, romable main { sub start() { - cx16.r0L = 25 + uword @shared @nozp ptr - when cx16.r0L { - 0 -> txt.print("zero") - 1 -> txt.print("one") - 21 to 29 step 2 -> txt.print("between 20 and 30 and odd") - else -> txt.print("something else") - } + cx16.r0L = @(ptr) + + @(ptr)++ + + @(ptr)+=10 } }