mirror of
https://github.com/blondie7575/GSCats.git
synced 2024-06-08 12:29:35 +00:00
Added support for fill mode
This commit is contained in:
parent
2319adb9f5
commit
6832c9adea
34
graphics.s
34
graphics.s
|
@ -80,6 +80,40 @@ initSCBsLoop:
|
||||||
rts
|
rts
|
||||||
|
|
||||||
|
|
||||||
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
|
; enableFillMode
|
||||||
|
; Enables fill mode for a given scanline
|
||||||
|
;
|
||||||
|
; X = Scan line
|
||||||
|
;
|
||||||
|
; Trashes A
|
||||||
|
|
||||||
|
enableFillMode:
|
||||||
|
BITS8
|
||||||
|
lda $e19d00,x
|
||||||
|
ora #%00100000
|
||||||
|
sta $e19d00,x
|
||||||
|
BITS16
|
||||||
|
rts
|
||||||
|
|
||||||
|
|
||||||
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
|
; disableFillMode
|
||||||
|
; Disables fill mode for a given scanline
|
||||||
|
;
|
||||||
|
; X = Scan line
|
||||||
|
;
|
||||||
|
; Trashes A
|
||||||
|
|
||||||
|
disableFillMode:
|
||||||
|
BITS8
|
||||||
|
lda $e19d00,x
|
||||||
|
and #%11011111
|
||||||
|
sta $e19d00,x
|
||||||
|
BITS16
|
||||||
|
rts
|
||||||
|
|
||||||
|
|
||||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
; setPaletteColor
|
; setPaletteColor
|
||||||
; Set a single color in a palette
|
; Set a single color in a palette
|
||||||
|
|
Loading…
Reference in New Issue
Block a user