]> github.com/historicalsource and other repositories - mspacman-7800.git/blob - MARIAOS.S
Initial import.
[mspacman-7800.git] / MARIAOS.S
1 \r
2 *  MARIAOS        MARIA DATA LOCATION DEFINITIONS\r
3 \r
4 *  NOTE THE FOLLOWING WIERD THINGS ABOUT THE RAM:\r
5 *           $00-$3F <=> $100-$13F\r
6 *           $80-$FF <=> $180-$1FF\r
7 *           $40-$FF <=> $2040-$20FF\r
8 *         $140-$1FF <=> $2140-$21FF\r
9 \r
10 *  TIA REGISTERS\r
11 INPTCTRL  EQU     $01                    ;INPUT CONTROL\r
12 INPT4     EQU     $0C                    ;BITS 7        PLAYER 0 BUTTON\r
13 INPT5     EQU     $0D                    ;BITS 7        PLAYER 1 BUTTON\r
14 AUDC0     EQU     $15                    ;BITS     3210 AUDIO CONTROL 0\r
15 AUDC1     EQU     $16                    ;BITS     3210 AUDIO CONTROL 1\r
16 AUDF0     EQU     $17                    ;BITS    43210 AUDIO FREQUENCY 0\r
17 AUDF1     EQU     $18                    ;BITS    43210 AUDIO FREQUENCY 1\r
18 AUDV0     EQU     $19                    ;BITS     3210 AUDIO VOLUME 0\r
19 AUDV1     EQU     $1A                    ;BITS     3210 AUDIO VOLUME 1\r
20 \r
21 *  MARIA REGISTERS\r
22 BACKGRND  EQU     $20                    ;BACKGROUND COLOR\r
23 Z0C1      EQU     $21                    ;PALETTE 0, COLOR 1\r
24 Z0C2      EQU     $22                    ;PALETTE 0, COLOR 2\r
25 Z0C3      EQU     $23                    ;PALETTE 0, COLOR 3\r
26 WSYNC     EQU     $24                    ;FAST MARIA WSYNC STROBE             WO\r
27 Z1C1      EQU     $25                    ;PALETTE 1, COLOR 1\r
28 Z1C2      EQU     $26                    ;PALETTE 1, COLOR 2\r
29 Z1C3      EQU     $27                    ;PALETTE 1, COLOR 3\r
30 MSTAT     EQU     $28                    ;BIT 6 IN VBLANK, BIT ? IN DISPLAY   RO\r
31 Z2C1      EQU     $29                    ;PALETTE 2, COLOR 1\r
32 Z2C2      EQU     $2A                    ;PALETTE 2, COLOR 2\r
33 Z2C3      EQU     $2B                    ;PALETTE 2, COLOR 3\r
34 DPPH      EQU     $2C                    ;DISPLAY LIST POINTER HIGH           WO\r
35 Z3C1      EQU     $2D                    ;PALETTE 3, COLOR 1\r
36 Z3C2      EQU     $2E                    ;PALETTE 3, COLOR 2\r
37 Z3C3      EQU     $2F                    ;PALETTE 3, COLOR 3\r
38 DPPL      EQU     $30                    ;DISPLAY LIST POINTER LOW            WO\r
39 Z4C1      EQU     $31                    ;PALETTE 4, COLOR 1\r
40 Z4C2      EQU     $32                    ;PALETTE 4, COLOR 2\r
41 Z4C3      EQU     $33                    ;PALETTE 4, COLOR 3\r
42 CHARBASE  EQU     $34                    ;CHARACTER MODE HIGH POINTER         WO\r
43 Z5C1      EQU     $35                    ;PALETTE 5, COLOR 1\r
44 Z5C2      EQU     $36                    ;PALETTE 5, COLOR 2\r
45 Z5C3      EQU     $37                    ;PALETTE 5, COLOR 3\r
46 OFFSET    EQU     $38                    ;NOT USED ******\r
47 Z6C1      EQU     $39                    ;PALETTE 6, COLOR 1\r
48 Z6C2      EQU     $3A                    ;PALETTE 6, COLOR 2\r
49 Z6C3      EQU     $3B                    ;PALETTE 6, COLOR 3\r
50 CTRL      EQU     $3C                    ;BIT 7 CHARACTER WIDTH, BIT 6 BCNT   WO\r
51 Z7C1      EQU     $3D                    ;PALETTE 7, COLOR 1\r
52 Z7C2      EQU     $3E                    ;PALETTE 7, COLOR 2\r
53 Z7C3      EQU     $3F                    ;PALETTE 7, COLOR 3\r
54 \r
55 *  FREE RAM - $40-$FF\r
56 \r
57 *  ALIASED RAM - $100-$13F\r
58 \r
59 *  STACK - $140-$1FF\r
60 \r
61 *  6532 TIMERS AND PORTS\r
62 \r
63 SWCHA     EQU     $280                   ;JOYSTICKS\r
64 *         BIT 7   PLAYER 0 EAST IF CLEAR\r
65 *         BIT 6            WEST\r
66 *         BIT 5            SOUTH\r
67 *         BIT 4            NORTH\r
68 *         BIT 3   PLAYER 1 EAST IF CLEAR\r
69 *         BIT 2            WEST\r
70 *         BIT 1            SOUTH\r
71 *         BIT 0            NORTH\r
72 \r
73 SWCHB     EQU     $282                   ;CONSOLE SWITCHES\r
74 *         BIT 7   PLAYER 1 DIFFICULTY A IF SET, B IF CLEAR\r
75 *         BIT 6   PLAYER 2 DIFFICULTY A IF SET, B IF CLEAR\r
76 *         BIT 3   BLACK AND WHITE VS COLOR - COLOR WHEN SET\r
77 *         BIT 1   GAME SELECT - CLEAR WHEN PRESSED\r
78 *         BIT 0   GAME RESET - CLEAR WHEN PRESSED\r
79 \r
80 CTLSWA    EQU     $281\r
81 CTLSWB    EQU     $283\r
82 INTIM     EQU     $284                   ;INTERVAL TIMER IN\r
83 TIM8T     EQU     $295                   ;TIMER 8T WRITE OUT\r
84 TIM64T    EQU     $296                   ;TIMER 64T WRITE OUT\r
85 TIM64TI   EQU     $29E                   ;INTERRUPT TIMER 64T\r
86 \r