added txt.t256c() on the cx16 to turn 256 color tile mode on or off

This commit is contained in:
Irmen de Jong 2024-12-24 12:10:02 +01:00
parent 5071da6784
commit 91cde072e0
5 changed files with 12 additions and 0 deletions

View File

@ -588,6 +588,7 @@ gfx_hires {
; Non-recursive scanline flood fill.
; based loosely on code found here https://www.codeproject.com/Articles/6017/QuickFill-An-efficient-flood-fill-algorithm
; with the fixes applied to the seedfill_4 routine as mentioned in the comments.
; Also see https://lodev.org/cgtutor/floodfill.html
word @zp xx = x as word
word @zp yy = y as word
word x1

View File

@ -640,6 +640,7 @@ gfx_lores {
; Non-recursive scanline flood fill.
; based loosely on code found here https://www.codeproject.com/Articles/6017/QuickFill-An-efficient-flood-fill-algorithm
; with the fixes applied to the seedfill_4 routine as mentioned in the comments.
; Also see https://lodev.org/cgtutor/floodfill.html
word @zp xx = x as word
word @zp yy = y as word
word x1

View File

@ -739,6 +739,7 @@ invert:
; Non-recursive scanline flood fill.
; based loosely on code found here https://www.codeproject.com/Articles/6017/QuickFill-An-efficient-flood-fill-algorithm
; with the fixes applied to the seedfill_4 routine as mentioned in the comments.
; Also see https://lodev.org/cgtutor/floodfill.html
word @zp xx = x as word
word @zp yy = y as word
word x1

View File

@ -666,4 +666,12 @@ asmsub print_lit(str text @ AY) clobbers(A,Y) {
}}
}
sub t256c(bool enable) {
; set 256 color tile mode on or off
if enable
cx16.VERA_L1_CONFIG |= 8
else
cx16.VERA_L1_CONFIG &= ~8
}
}

View File

@ -409,6 +409,7 @@ monogfx {
; Non-recursive scanline flood fill.
; based loosely on code found here https://www.codeproject.com/Articles/6017/QuickFill-An-efficient-flood-fill-algorithm
; with the fixes applied to the seedfill_4 routine as mentioned in the comments.
; Also see https://lodev.org/cgtutor/floodfill.html
word @zp xx = x as word
word @zp yy = y as word
word x1