-
Notifications
You must be signed in to change notification settings - Fork 0
/
graphics.inc
38 lines (34 loc) · 930 Bytes
/
graphics.inc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
.ifndef GRAPHICS_INC
GRAPHICS_INC=1
;=================================================
; GRAPHICS_FADE_OUT
; Fade out graphics to black
;-------------------------------------------------
; INPUTS: (none)
;
;-------------------------------------------------
; MODIFIES: A, X, Y, $FB-$FF
;
.macro GRAPHICS_FADE_OUT
jsr graphics_fade_out
.endmacro
;=================================================
; GRAPHICS_FADE_IN
; Fade in graphics to a set of palette colors
;-------------------------------------------------
; INPUTS: .palette_data Final desired color data
; .num_colors Number of colors in the above
;
;-------------------------------------------------
; MODIFIES: A, X, Y, $FB-$FF
;
.macro GRAPHICS_FADE_IN palette_data, num_colors
lda #<palette_data
sta $FB
lda #>palette_data
sta $FC
lda #num_colors
sta $FD
jsr graphics_fade_in
.endmacro
.endif ; GRAPHICS_INC