]> git.sur5r.net Git - cc65/blob - asminc/creativision.inc
un-remove TABs in doc/using-make.sgml
[cc65] / asminc / creativision.inc
1 ;*
2 ;** VTech Creativision Definitions
3 ;*
4
5 ;** Screen
6 SCREEN_ROWS             = 24
7 SCREEN_COLS             = 32
8 SCREEN_PTR              = $3A
9 CURSOR_X                = $3C
10 CURSOR_Y                = $3D
11
12 ;** VDP
13 VDP_DATA_R              = $2000
14 VDP_STATUS_R            = $2001
15 VDP_DATA_W              = $3000
16 VDP_CONTROL_W           = $3001
17
18 ;** PIA
19 PIA0_DATA               = $1000
20 PIA0_STATUS             = $1001
21 PIA1_DATA               = $1002
22 PIA1_STATUS             = $1003
23
24 ;** General
25 CH_VLINE                = 33
26 CH_HLINE                = 34
27 CH_ULCORNER             = 35
28 CH_URCORNER             = 36
29 CH_LLCORNER             = 37
30 CH_LRCORNER             = 38
31
32 ;** I/O (Zero-page variables)
33 ZP_KEYBOARD             = $10
34 ZP_JOY0_DIR             = $11
35 ZP_JOY1_DIR             = $13
36 ZP_JOY0_BUTTONS         = $16
37 ZP_JOY1_BUTTONS         = $17
38
39 ;** Joystick direction values (ZP_JOY0_DIR/ZP_JOY1_DIR)
40 JOY_N                   = $49
41 JOY_NNE                 = $48
42 JOY_NE                  = $47
43 JOY_ENE                 = $46
44 JOY_E                   = $45
45 JOY_ESE                 = $44
46 JOY_SE                  = $43
47 JOY_SSE                 = $42
48 JOY_S                   = $41
49 JOY_SSW                 = $40
50 JOY_SW                  = $4F
51 JOY_WSW                 = $4E
52 JOY_W                   = $4D
53 JOY_WNW                 = $4C
54 JOY_NW                  = $4B
55 JOY_NNW                 = $4A
56
57 ;** BIOS
58 BIOS_IRQ1_ADDR          = $FF3F
59 BIOS_IRQ2_ADDR          = $FF52
60 BIOS_NMI_RESET_ADDR     = $F808
61 BIOS_WRITE_VDP_REG      = $FE1F