-
Notifications
You must be signed in to change notification settings - Fork 0
/
constants.inc
37 lines (28 loc) · 983 Bytes
/
constants.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
; constants for formatted debug
__DEBUG__ = 1 ; 0 - disable debug output / 1 - enable debug output
__DEBUG_LEVEL__ = DBG_ERR ; set the debug level
DBG_ALL = 0 ; all messages
DBG_INFO = 1 ; info and errors
DBG_ERR = 2 ; only errors
; emulator constants
MAX_GAME_SIZE = 0x1000 - 0x200
FONTSET_ADDRESS = 0x00
FONTSET_BYTES_PER_CHAR = 5
MEM_SIZE = 4096
STACK_SIZE = 16
KEY_SIZE = 16
GFX_ROWS = 32
GFX_COLS = 64
GFX_SIZE = GFX_ROWS * GFX_COLS
GFX_PIX_SIZE = 10 ; gfx cell size in pixels
COLOR_BACK = 0x000000
COLOR_CELL = 0xade8f4 ;0xFFFFFF
IMGBUF_WIDTH = GFX_COLS * GFX_PIX_SIZE ; width in pixels
IMGBUF_HEIGHT = GFX_ROWS * GFX_PIX_SIZE ; height in pixels
IMGBUF_SIZE = IMGBUF_WIDTH * IMGBUF_HEIGHT * 3 + 16 ; size in bytes for in-memory image buffer
CLOCK_RATE = 1 ; in 10^-2 seconds
include '../../macros.inc'
purge mov, add, sub
include '../../debug-fdo.inc'
include '../../proc32.inc'
;=========================================