]> git.sur5r.net Git - cc65/blob - asminc/gamate.inc
fixup conio.c some more. also includes merge of upstream/master because git is retarded.
[cc65] / asminc / gamate.inc
1 ;-------------------------------------------------------------------------------
2 ;                                gamate.inc
3 ;
4 ;                   Gamate system specific definitions
5 ;
6 ; (w) 2015 Groepaz/Hitmen (groepaz@gmx.net)
7 ;     based on technical reference by PeT (mess@utanet.at)
8 ;-------------------------------------------------------------------------------
9
10 ; look at gamate.h for comments, they are not duplicated here
11
12 AUDIO_BASE      = $4000
13
14 JOY_DATA        = $4400
15
16 JOY_DATA_UP     = $01
17 JOY_DATA_DOWN   = $02
18 JOY_DATA_LEFT   = $04
19 JOY_DATA_RIGHT  = $08
20 JOY_DATA_FIRE_A = $10
21 JOY_DATA_FIRE_B = $20
22 JOY_DATA_START  = $40
23 JOY_DATA_SELECT = $80
24
25 LCD_WIDTH       = 160
26 LCD_HEIGHT      = 152
27
28 LCD_BASE        = $5000
29 LCD_MODE        = $5001
30 LCD_XPOS        = $5002
31 LCD_YPOS        = $5003
32 LCD_X           = $5004
33 LCD_Y           = $5005
34 LCD_READ        = $5006
35 LCD_DATA        = $5007
36
37 LCD_MODE_INC_X  = $00
38 LCD_MODE_INC_Y  = $40
39 LCD_XPOS_PLANE1 = $00
40 LCD_XPOS_PLANE2 = $80
41
42 ; constants for the conio implementation
43 charsperline    = (LCD_WIDTH / 8)
44 screenrows      = (LCD_HEIGHT / 8)
45
46 CH_HLINE        = 1
47 CH_VLINE        = 2
48
49 COLOR_WHITE     = 0
50 COLOR_GREY2     = 1
51 COLOR_GREY1     = 2
52 COLOR_BLACK     = 3
53
54 ; bios zp usage:
55 ZP_NMI_4800     = $0a
56 ZP_IRQ_COUNT    = $0b
57 ZP_IRQ_CTRL     = $0c
58
59 ZP_IRQ_CNT1     = $0e
60 ZP_IRQ_CNT2     = $0f
61 ZP_IRQ_CNT3     = $10
62 ZP_IRQ_CNT4     = $11
63
64 ZP_NMI_FLAG     = $e8