mirror of
https://github.com/irmen/prog8.git
synced 2025-08-20 02:28:18 +00:00
added txt.t256c() on the cx16 to turn 256 color tile mode on or off
This commit is contained in:
@@ -588,6 +588,7 @@ gfx_hires {
|
|||||||
; Non-recursive scanline flood fill.
|
; Non-recursive scanline flood fill.
|
||||||
; based loosely on code found here https://www.codeproject.com/Articles/6017/QuickFill-An-efficient-flood-fill-algorithm
|
; 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.
|
; 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 xx = x as word
|
||||||
word @zp yy = y as word
|
word @zp yy = y as word
|
||||||
word x1
|
word x1
|
||||||
|
@@ -640,6 +640,7 @@ gfx_lores {
|
|||||||
; Non-recursive scanline flood fill.
|
; Non-recursive scanline flood fill.
|
||||||
; based loosely on code found here https://www.codeproject.com/Articles/6017/QuickFill-An-efficient-flood-fill-algorithm
|
; 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.
|
; 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 xx = x as word
|
||||||
word @zp yy = y as word
|
word @zp yy = y as word
|
||||||
word x1
|
word x1
|
||||||
|
@@ -739,6 +739,7 @@ invert:
|
|||||||
; Non-recursive scanline flood fill.
|
; Non-recursive scanline flood fill.
|
||||||
; based loosely on code found here https://www.codeproject.com/Articles/6017/QuickFill-An-efficient-flood-fill-algorithm
|
; 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.
|
; 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 xx = x as word
|
||||||
word @zp yy = y as word
|
word @zp yy = y as word
|
||||||
word x1
|
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.
|
; Non-recursive scanline flood fill.
|
||||||
; based loosely on code found here https://www.codeproject.com/Articles/6017/QuickFill-An-efficient-flood-fill-algorithm
|
; 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.
|
; 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 xx = x as word
|
||||||
word @zp yy = y as word
|
word @zp yy = y as word
|
||||||
word x1
|
word x1
|
||||||
|
Reference in New Issue
Block a user