-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathnv_color_macs.asm
39 lines (33 loc) · 1.22 KB
/
nv_color_macs.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
//////////////////////////////////////////////////////////////////////////////
// nv_color_macs.asm
// Copyright(c) 2021 Neal Smith.
// License: MIT. See LICENSE file in root directory.
//////////////////////////////////////////////////////////////////////////////
// This assembler file defines colors for the C64. these constants are
// used throughout nv_c64_utils
#importonce
#if !NV_C64_UTIL_DATA
.error "Error - nv_color_macs.asm: NV_C64_UTIL_DATA not defined. Import nv_c64_util_data.asm"
#endif
// the #if above doesn't seem to always work so..
// if data hasn't been imported yet, import it into default location
#importif !NV_C64_UTIL_DATA "nv_c64_util_default_data.asm"
// c64 colors
.const NV_COLOR_BLACK = $00
.const NV_COLOR_WHITE = $01
.const NV_COLOR_RED = $02
.const NV_COLOR_CYAN = $03
.const NV_COLOR_PURPLE = $04
.const NV_COLOR_GREEN = $05
.const NV_COLOR_BLUE = $06
.const NV_COLOR_YELLOW = $07
.const NV_COLOR_ORANGE = $08
.const NV_COLOR_BROWN = $09
.const NV_COLOR_LITE_RED = $0a
.const NV_COLOR_DARK_GREY = $0b
.const NV_COLOR_GREY = $0c
.const NV_COLOR_LITE_GREEN = $0d
.const NV_COLOR_LITE_BLUE = $0e
.const NV_COLOR_LITE_GREY = $0f
.const NV_COLOR_FIRST = NV_COLOR_BLACK
.const NV_COLOR_LAST = NV_COLOR_LITE_GREY