mirror of
https://github.com/irmen/prog8.git
synced 2025-01-10 20:30:23 +00:00
added txt.t256c() on the cx16 to turn 256 color tile mode on or off
This commit is contained in:
parent
5071da6784
commit
91cde072e0
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user