-
Notifications
You must be signed in to change notification settings - Fork 4
/
constants.asm
51 lines (43 loc) · 1.35 KB
/
constants.asm
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
39
40
41
42
43
44
45
46
47
48
49
50
51
#importonce
//
// All of the constants referenced in the rest of the library
//
// Enable/Disable flags
.label ENABLE = $80
.label DISABLE = $00
.label TRUE = ENABLE
.label FALSE = DISABLE
// Timer constants
.label TIMER_SINGLE = $00
.label TIMER_CONTINUOUS = $01
.label TIMER_HALF_SECOND = $1e
.label TIMER_ONE_SECOND = $3c
.label TIMER_TWO_SECONDS = $78
.label TIMER_THREE_SECONDS = $b4
.label TIMER_FOUR_SECONDS = $f0
.label TIMER_STRUCT_BYTES = $40
// The bank the VIC-II chip will be in
.label BANK = $00
// The start of physical RAM the VIC-II will see
.label VIC_START = (BANK * $4000)
// Offsets for start of VIC memory for each sprite attribute
.label SPR_VISIBLE = vic.SPENA - vic.SP0X
.label SPR_X_EXPAND = vic.XXPAND - vic.SP0X
.label SPR_Y_EXPAND = vic.YXPAND - vic.SP0X
.label SPR_HMC = vic.SPMC - vic.SP0X
.label SPR_PRIORITY = vic.SPBGPR - vic.SP0X
// Flags for various sprite settings
.label SPR_HIDE = DISABLE
.label SPR_SHOW = ENABLE
.label SPR_NORMAL = DISABLE
.label SPR_EXPAND = ENABLE
.label SPR_FG = DISABLE
.label SPR_BG = ENABLE
.label SPR_HIRES = DISABLE
.label SPR_MULTICOLOR = ENABLE
// Joystick constants
.label JOY_BUTTON = %00010000
.label JOY_UP = %00000001
.label JOY_DOWN = %00000010
.label JOY_LEFT = %00000100
.label JOY_RIGHT = %00001000