fcdev-cc65 0.0.0-stage → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +17 -0
- package/asminc/_file.inc +27 -0
- package/asminc/_heap.inc +35 -0
- package/asminc/accelerator.inc +80 -0
- package/asminc/agat.inc +39 -0
- package/asminc/apple2.inc +95 -0
- package/asminc/apple2.mac +54 -0
- package/asminc/ascii_charmap.inc +287 -0
- package/asminc/atari.inc +1169 -0
- package/asminc/atari.mac +65 -0
- package/asminc/atari2600.inc +7 -0
- package/asminc/atari2600_riot.inc +20 -0
- package/asminc/atari2600_tia.inc +69 -0
- package/asminc/atari5200.inc +133 -0
- package/asminc/atari7800.inc +14 -0
- package/asminc/atari7800_maria.inc +39 -0
- package/asminc/atari7800_riot.inc +20 -0
- package/asminc/atari7800_tia.inc +69 -0
- package/asminc/atari_antic.inc +95 -0
- package/asminc/atari_atascii_charmap.inc +301 -0
- package/asminc/atari_gtia.inc +119 -0
- package/asminc/atari_pokey.inc +43 -0
- package/asminc/atari_screen_charmap.inc +303 -0
- package/asminc/atmos.inc +117 -0
- package/asminc/c128.inc +224 -0
- package/asminc/c16.inc +9 -0
- package/asminc/c64.inc +219 -0
- package/asminc/c65.inc +239 -0
- package/asminc/cbm.mac +56 -0
- package/asminc/cbm510.inc +200 -0
- package/asminc/cbm610.inc +121 -0
- package/asminc/cbm_filetype.inc +34 -0
- package/asminc/cbm_kernal.inc +248 -0
- package/asminc/cbm_petscii_charmap.inc +291 -0
- package/asminc/cbm_screen_charmap.inc +305 -0
- package/asminc/cpu.mac +4 -0
- package/asminc/creativision.inc +66 -0
- package/asminc/ctype.inc +31 -0
- package/asminc/ctype_common.inc +91 -0
- package/asminc/ctypetable.inc +48 -0
- package/asminc/cx16.inc +574 -0
- package/asminc/em-error.inc +49 -0
- package/asminc/em-kernel.inc +106 -0
- package/asminc/errno.inc +37 -0
- package/asminc/fcntl.inc +21 -0
- package/asminc/gamate.inc +64 -0
- package/asminc/generic.mac +53 -0
- package/asminc/get_tv.inc +22 -0
- package/asminc/joy-error.inc +44 -0
- package/asminc/joy-kernel.inc +83 -0
- package/asminc/kim1.inc +31 -0
- package/asminc/longbranch.mac +88 -0
- package/asminc/lynx.inc +460 -0
- package/asminc/mega65.inc +239 -0
- package/asminc/modload.inc +78 -0
- package/asminc/module.mac +13 -0
- package/asminc/mouse-kernel.inc +184 -0
- package/asminc/nes.inc +93 -0
- package/asminc/o65.inc +150 -0
- package/asminc/opcodes.inc +514 -0
- package/asminc/pce.inc +93 -0
- package/asminc/pet.inc +100 -0
- package/asminc/plus4.inc +86 -0
- package/asminc/rp6502.inc +98 -0
- package/asminc/ser-error.inc +55 -0
- package/asminc/ser-kernel.inc +162 -0
- package/asminc/signal.inc +57 -0
- package/asminc/sim65.inc +75 -0
- package/asminc/smc.inc +267 -0
- package/asminc/stat.inc +64 -0
- package/asminc/statvfs.inc +46 -0
- package/asminc/stdio.inc +74 -0
- package/asminc/supervision.inc +75 -0
- package/asminc/sym1.inc +186 -0
- package/asminc/telestrat.inc +546 -0
- package/asminc/tgi-error.inc +52 -0
- package/asminc/tgi-kernel.inc +233 -0
- package/asminc/tgi-vectorfont.inc +70 -0
- package/asminc/time.inc +74 -0
- package/asminc/utsname.inc +46 -0
- package/asminc/vic20.inc +119 -0
- package/asminc/zeropage.inc +40 -0
- package/bin/ar65.exe +0 -0
- package/bin/ca65.exe +0 -0
- package/bin/cc65.exe +0 -0
- package/bin/da65.exe +0 -0
- package/bin/ld65.exe +0 -0
- package/cfg/module.cfg +21 -0
- package/cfg/nes.cfg +62 -0
- package/cfg/none.cfg +37 -0
- package/include/6502.h +140 -0
- package/include/_6522.h +68 -0
- package/include/_6525.h +62 -0
- package/include/_6526.h +71 -0
- package/include/_6545.h +53 -0
- package/include/_6551.h +55 -0
- package/include/_antic.h +254 -0
- package/include/_atari5200os.h +94 -0
- package/include/_atarios.h +661 -0
- package/include/_gtia.h +281 -0
- package/include/_heap.h +60 -0
- package/include/_maria.h +63 -0
- package/include/_mikey.h +264 -0
- package/include/_pbi.h +63 -0
- package/include/_pia.h +52 -0
- package/include/_pokey.h +220 -0
- package/include/_riot.h +26 -0
- package/include/_sid.h +68 -0
- package/include/_suzy.h +336 -0
- package/include/_ted.h +86 -0
- package/include/_tia.h +100 -0
- package/include/_vdc.h +53 -0
- package/include/_vic.h +67 -0
- package/include/_vic2.h +192 -0
- package/include/_vic3.h +188 -0
- package/include/accelerator.h +339 -0
- package/include/agat.h +76 -0
- package/include/apple2.h +358 -0
- package/include/apple2_filetype.h +324 -0
- package/include/apple2enh.h +67 -0
- package/include/arpa/inet.h +81 -0
- package/include/ascii_charmap.h +295 -0
- package/include/assert.h +59 -0
- package/include/atari.h +554 -0
- package/include/atari2600.h +32 -0
- package/include/atari5200.h +100 -0
- package/include/atari7800.h +67 -0
- package/include/atari_atascii_charmap.h +304 -0
- package/include/atari_screen_charmap.h +310 -0
- package/include/atmos.h +189 -0
- package/include/c128.h +175 -0
- package/include/c16.h +60 -0
- package/include/c64.h +175 -0
- package/include/c65.h +120 -0
- package/include/cbm.h +321 -0
- package/include/cbm264.h +165 -0
- package/include/cbm510.h +168 -0
- package/include/cbm610.h +153 -0
- package/include/cbm_filetype.h +108 -0
- package/include/cbm_petscii_charmap.h +297 -0
- package/include/cbm_screen_charmap.h +311 -0
- package/include/cc65.h +109 -0
- package/include/conio.h +248 -0
- package/include/creativision.h +78 -0
- package/include/ctype.h +88 -0
- package/include/cx16.h +420 -0
- package/include/dbg.h +124 -0
- package/include/device.h +72 -0
- package/include/dio.h +113 -0
- package/include/dirent.h +151 -0
- package/include/em/em-kernel.h +77 -0
- package/include/em.h +135 -0
- package/include/errno.h +135 -0
- package/include/fcntl.h +75 -0
- package/include/gamate.h +209 -0
- package/include/geos/gconst.h +69 -0
- package/include/geos/gdisk.h +79 -0
- package/include/geos/gdlgbox.h +110 -0
- package/include/geos/gfile.h +72 -0
- package/include/geos/ggraph.h +180 -0
- package/include/geos/gmemory.h +30 -0
- package/include/geos/gmenu.h +53 -0
- package/include/geos/gprocess.h +22 -0
- package/include/geos/gsprite.h +96 -0
- package/include/geos/gstruct.h +174 -0
- package/include/geos/gsym.h +340 -0
- package/include/geos/gsys.h +54 -0
- package/include/geos.h +109 -0
- package/include/inttypes.h +237 -0
- package/include/iso646.h +60 -0
- package/include/joystick/joy-kernel.h +84 -0
- package/include/joystick.h +109 -0
- package/include/kim1.h +73 -0
- package/include/limits.h +87 -0
- package/include/locale.h +83 -0
- package/include/lynx.h +144 -0
- package/include/lz4.h +43 -0
- package/include/lzsa.h +56 -0
- package/include/mega65.h +120 -0
- package/include/modload.h +103 -0
- package/include/mouse/mouse-kernel.h +67 -0
- package/include/mouse.h +220 -0
- package/include/nes.h +203 -0
- package/include/o65.h +178 -0
- package/include/osic1p.h +66 -0
- package/include/pce.h +110 -0
- package/include/peekpoke.h +58 -0
- package/include/pen.h +78 -0
- package/include/pet.h +113 -0
- package/include/plus4.h +63 -0
- package/include/rp6502.h +266 -0
- package/include/serial.h +180 -0
- package/include/setjmp.h +55 -0
- package/include/signal.h +74 -0
- package/include/sim65.h +136 -0
- package/include/stdarg.h +57 -0
- package/include/stdbool.h +53 -0
- package/include/stddef.h +66 -0
- package/include/stdint.h +144 -0
- package/include/stdio.h +166 -0
- package/include/stdlib.h +174 -0
- package/include/string.h +106 -0
- package/include/supervision.h +137 -0
- package/include/sym1.h +165 -0
- package/include/sys/stat.h +94 -0
- package/include/sys/statvfs.h +74 -0
- package/include/sys/types.h +102 -0
- package/include/sys/utsname.h +97 -0
- package/include/target.h +77 -0
- package/include/telestrat.h +129 -0
- package/include/tgi/tgi-error.h +64 -0
- package/include/tgi/tgi-kernel.h +75 -0
- package/include/tgi/tgi-vectorfont.h +90 -0
- package/include/tgi.h +286 -0
- package/include/time.h +143 -0
- package/include/unistd.h +103 -0
- package/include/vic20.h +141 -0
- package/include/zlib.h +175 -0
- package/include/zx02.h +44 -0
- package/lib/nes.lib +0 -0
- package/lib/none.lib +0 -0
- package/manifest.json +227 -0
- package/package.json +19 -4
- package/README.md +0 -3
|
@@ -0,0 +1,514 @@
|
|
|
1
|
+
; opcodes.inc
|
|
2
|
+
; ca65 6502 - opcode definitions, mainly for self modifying code
|
|
3
|
+
;
|
|
4
|
+
; Christian Kr�ger, latest change: 18-Sep-2010
|
|
5
|
+
;
|
|
6
|
+
; This software is provided 'as-is', without any expressed or implied
|
|
7
|
+
; warranty. In no event will the authors be held liable for any damages
|
|
8
|
+
; arising from the use of this software.
|
|
9
|
+
;
|
|
10
|
+
; Permission is granted to anyone to use this software for any purpose,
|
|
11
|
+
; including commercial applications, and to alter it and redistribute it
|
|
12
|
+
; freely, subject to the following restrictions:
|
|
13
|
+
;
|
|
14
|
+
; 1. The origin of this software must not be misrepresented; you must not
|
|
15
|
+
; claim that you wrote the original software. If you use this software
|
|
16
|
+
; in a product, an acknowledgment in the product documentation would be
|
|
17
|
+
; appreciated but is not required.
|
|
18
|
+
; 2. Altered source versions must be plainly marked as such, and must not
|
|
19
|
+
; be misrepresented as being the original software.
|
|
20
|
+
; 3. This notice may not be removed or altered from any source
|
|
21
|
+
; distribution.
|
|
22
|
+
;
|
|
23
|
+
|
|
24
|
+
; Opcode-Table
|
|
25
|
+
; ------------
|
|
26
|
+
; Post fix explanation:
|
|
27
|
+
; imm = #$00
|
|
28
|
+
; zp = $00
|
|
29
|
+
; zpx = $00,X
|
|
30
|
+
; zpy = $00,Y
|
|
31
|
+
; izp = ($00)
|
|
32
|
+
; izx = ($00,X)
|
|
33
|
+
; izy = ($00),Y
|
|
34
|
+
; abs = $0000
|
|
35
|
+
; abx = $0000,X
|
|
36
|
+
; aby = $0000,Y
|
|
37
|
+
; ind = ($0000)
|
|
38
|
+
; iax = ($0000,X)
|
|
39
|
+
; rel = $0000 (PC-relative) (supressed here)
|
|
40
|
+
|
|
41
|
+
OPC_BRK = $00
|
|
42
|
+
OPC_ORA_izx = $01
|
|
43
|
+
OPC_ORA_zp = $05
|
|
44
|
+
OPC_ASL_zp = $06
|
|
45
|
+
OPC_PHP = $08
|
|
46
|
+
OPC_ORA_imm = $09
|
|
47
|
+
OPC_ASL = $0A
|
|
48
|
+
OPC_ORA_abs = $0D
|
|
49
|
+
OPC_ASL_abs = $0E
|
|
50
|
+
|
|
51
|
+
OPC_BPL = $10
|
|
52
|
+
OPC_ORA_izy = $11
|
|
53
|
+
OPC_ORA_zpx = $15
|
|
54
|
+
OPC_ASL_zpx = $16
|
|
55
|
+
OPC_CLC = $18
|
|
56
|
+
OPC_ORA_aby = $19
|
|
57
|
+
OPC_ORA_abx = $1D
|
|
58
|
+
OPC_ASL_abx = $1E
|
|
59
|
+
|
|
60
|
+
OPC_JSR_abs = $20
|
|
61
|
+
OPC_AND_izx = $21
|
|
62
|
+
OPC_BIT_zp = $24
|
|
63
|
+
OPC_AND_zp = $25
|
|
64
|
+
OPC_ROL_zp = $26
|
|
65
|
+
OPC_PLP = $28
|
|
66
|
+
OPC_AND_imm = $29
|
|
67
|
+
OPC_ROL = $2A
|
|
68
|
+
OPC_BIT_abs = $2C
|
|
69
|
+
OPC_AND_abs = $2D
|
|
70
|
+
OPC_ROL_abs = $2E
|
|
71
|
+
|
|
72
|
+
OPC_BMI = $30
|
|
73
|
+
OPC_AND_izy = $31
|
|
74
|
+
OPC_AND_zpx = $35
|
|
75
|
+
OPC_ROL_zpx = $36
|
|
76
|
+
OPC_SEC = $38
|
|
77
|
+
OPC_AND_aby = $39
|
|
78
|
+
OPC_AND_abx = $3D
|
|
79
|
+
OPC_ROL_abx = $3E
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
OPC_RTI = $40
|
|
83
|
+
OPC_EOR_izx = $41
|
|
84
|
+
OPC_EOR_zp = $45
|
|
85
|
+
OPC_LSR_zp = $46
|
|
86
|
+
OPC_PHA = $48
|
|
87
|
+
OPC_EOR_imm = $49
|
|
88
|
+
OPC_LSR = $4A
|
|
89
|
+
OPC_JMP_abs = $4C
|
|
90
|
+
OPC_EOR_abs = $4D
|
|
91
|
+
OPC_LSR_abs = $4E
|
|
92
|
+
|
|
93
|
+
OPC_BVC = $50
|
|
94
|
+
OPC_EOR_izy = $51
|
|
95
|
+
OPC_EOR_zpx = $55
|
|
96
|
+
OPC_LSR_zpx = $56
|
|
97
|
+
OPC_CLI = $58
|
|
98
|
+
OPC_EOR_aby = $59
|
|
99
|
+
OPC_EOR_abx = $5D
|
|
100
|
+
OPC_LSR_abx = $5E
|
|
101
|
+
|
|
102
|
+
OPC_RTS = $60
|
|
103
|
+
OPC_ADC_izx = $61
|
|
104
|
+
OPC_ADC_zp = $65
|
|
105
|
+
OPC_ROR_zp = $66
|
|
106
|
+
OPC_PLA = $68
|
|
107
|
+
OPC_ADC_imm = $69
|
|
108
|
+
OPC_ROR = $6A
|
|
109
|
+
OPC_JMP_ind = $6C
|
|
110
|
+
OPC_ADC_abs = $6D
|
|
111
|
+
OPC_ROR_abs = $6E
|
|
112
|
+
|
|
113
|
+
OPC_BVS = $70
|
|
114
|
+
OPC_ADC_izy = $71
|
|
115
|
+
OPC_ADC_zpx = $75
|
|
116
|
+
OPC_ROR_zpx = $76
|
|
117
|
+
OPC_SEI = $78
|
|
118
|
+
OPC_ADC_aby = $79
|
|
119
|
+
OPC_ADC_abx = $7D
|
|
120
|
+
OPC_ROR_abx = $7E
|
|
121
|
+
|
|
122
|
+
OPC_STA_izx = $81
|
|
123
|
+
OPC_STY_zp = $84
|
|
124
|
+
OPC_STA_zp = $85
|
|
125
|
+
OPC_STX_zp = $86
|
|
126
|
+
OPC_DEY = $88
|
|
127
|
+
OPC_TXA = $8A
|
|
128
|
+
OPC_STY_abs = $8C
|
|
129
|
+
OPC_STA_abs = $8D
|
|
130
|
+
OPC_STX_abs = $8E
|
|
131
|
+
|
|
132
|
+
OPC_BCC = $90
|
|
133
|
+
OPC_STA_izy = $91
|
|
134
|
+
OPC_STY_zpx = $94
|
|
135
|
+
OPC_STA_zpx = $95
|
|
136
|
+
OPC_STX_zpy = $96
|
|
137
|
+
OPC_TYA = $98
|
|
138
|
+
OPC_STA_aby = $99
|
|
139
|
+
OPC_TXS = $9A
|
|
140
|
+
OPC_STA_abx = $9D
|
|
141
|
+
|
|
142
|
+
OPC_LDY_imm = $A0
|
|
143
|
+
OPC_LDA_izx = $A1
|
|
144
|
+
OPC_LDX_imm = $A2
|
|
145
|
+
OPC_LDY_zp = $A4
|
|
146
|
+
OPC_LDA_zp = $A5
|
|
147
|
+
OPC_LDX_zp = $A6
|
|
148
|
+
OPC_TAY = $A8
|
|
149
|
+
OPC_LDA_imm = $A9
|
|
150
|
+
OPC_TAX = $AA
|
|
151
|
+
OPC_LDY_abs = $AC
|
|
152
|
+
OPC_LDA_abs = $AD
|
|
153
|
+
OPC_LDX_abs = $AE
|
|
154
|
+
|
|
155
|
+
OPC_BCS = $B0
|
|
156
|
+
OPC_LDA_izy = $B1
|
|
157
|
+
OPC_LDY_zpx = $B4
|
|
158
|
+
OPC_LDA_zpx = $B5
|
|
159
|
+
OPC_LDX_zpy = $B6
|
|
160
|
+
OPC_CLV = $B8
|
|
161
|
+
OPC_LDA_aby = $B9
|
|
162
|
+
OPC_TSX = $BA
|
|
163
|
+
OPC_LDY_abx = $BC
|
|
164
|
+
OPC_LDA_abx = $BD
|
|
165
|
+
OPC_LDX_aby = $BE
|
|
166
|
+
|
|
167
|
+
OPC_CPY_imm = $C0
|
|
168
|
+
OPC_CMP_izx = $C1
|
|
169
|
+
OPC_CPY_zp = $C4
|
|
170
|
+
OPC_CMP_zp = $C5
|
|
171
|
+
OPC_DEC_zp = $C6
|
|
172
|
+
OPC_INY = $C8
|
|
173
|
+
OPC_CMP_imm = $C9
|
|
174
|
+
OPC_DEX = $CA
|
|
175
|
+
OPC_CPY_abs = $CC
|
|
176
|
+
OPC_CMP_abs = $CD
|
|
177
|
+
OPC_DEC_abs = $CE
|
|
178
|
+
|
|
179
|
+
OPC_BNE = $D0
|
|
180
|
+
OPC_CMP_izy = $D1
|
|
181
|
+
OPC_CMP_zpx = $D5
|
|
182
|
+
OPC_DEC_zpx = $D6
|
|
183
|
+
OPC_CLD = $D8
|
|
184
|
+
OPC_CMP_aby = $D9
|
|
185
|
+
OPC_CMP_abx = $DD
|
|
186
|
+
OPC_DEC_abx = $DE
|
|
187
|
+
|
|
188
|
+
OPC_CPX_imm = $E0
|
|
189
|
+
OPC_SBC_izx = $E1
|
|
190
|
+
OPC_CPX_zp = $E4
|
|
191
|
+
OPC_SBC_zp = $E5
|
|
192
|
+
OPC_INC_zp = $E6
|
|
193
|
+
OPC_INX = $E8
|
|
194
|
+
OPC_SBC_imm = $E9
|
|
195
|
+
OPC_NOP = $EA
|
|
196
|
+
OPC_CPX_abs = $EC
|
|
197
|
+
OPC_SBC_abs = $ED
|
|
198
|
+
OPC_INC_abs = $EE
|
|
199
|
+
|
|
200
|
+
|
|
201
|
+
OPC_BEQ = $F0
|
|
202
|
+
OPC_SBC_izy = $F1
|
|
203
|
+
OPC_SBC_zpx = $F5
|
|
204
|
+
OPC_INC_zpx = $F6
|
|
205
|
+
OPC_SED = $F8
|
|
206
|
+
OPC_SBC_aby = $F9
|
|
207
|
+
OPC_SBC_abx = $FD
|
|
208
|
+
OPC_INC_abx = $FE
|
|
209
|
+
|
|
210
|
+
|
|
211
|
+
.if (.cpu .bitand ::CPU_ISET_65SC02)
|
|
212
|
+
|
|
213
|
+
; OPC_NOP = $02 ; doublet
|
|
214
|
+
; OPC_NOP = $03 ; doublet
|
|
215
|
+
OPC_TSB_zp = $04
|
|
216
|
+
; OPC_NOP = $0B ; doublet
|
|
217
|
+
OPC_TSB_abs = $0C
|
|
218
|
+
|
|
219
|
+
OPC_ORA_izp = $12
|
|
220
|
+
; OPC_NOP = $13 ; doublet
|
|
221
|
+
OPC_TRB_zp = $14
|
|
222
|
+
OPC_INC = $1A
|
|
223
|
+
; OPC_NOP = $1B ; doublet
|
|
224
|
+
OPC_TRB_abs = $1C
|
|
225
|
+
|
|
226
|
+
; OPC_NOP = $22 ; doublet
|
|
227
|
+
; OPC_NOP = $23 ; doublet
|
|
228
|
+
; OPC_NOP = $2B ; doublet
|
|
229
|
+
|
|
230
|
+
OPC_AND_izp = $32
|
|
231
|
+
; OPC_NOP = $33 ; doublet
|
|
232
|
+
OPC_BIT_zpx = $34
|
|
233
|
+
OPC_DEC = $3A
|
|
234
|
+
; OPC_NOP = $3B ; doublet
|
|
235
|
+
OPC_BIT_abx = $3C
|
|
236
|
+
|
|
237
|
+
; OPC_NOP = $42 ; doublet
|
|
238
|
+
; OPC_NOP = $43 ; doublet
|
|
239
|
+
; OPC_NOP = $44 ; doublet
|
|
240
|
+
; OPC_NOP = $4B ; doublet
|
|
241
|
+
|
|
242
|
+
OPC_EOR_izp = $52
|
|
243
|
+
; OPC_NOP = $53 ; doublet
|
|
244
|
+
; OPC_NOP = $54 ; doublet
|
|
245
|
+
; OPC_NOP = $5A ; doublet
|
|
246
|
+
; OPC_NOP = $5B ; doublet
|
|
247
|
+
|
|
248
|
+
; OPC_NOP = $62 ; doublet
|
|
249
|
+
; OPC_NOP = $63 ; doublet
|
|
250
|
+
OPC_STZ_zp = $64
|
|
251
|
+
; OPC_NOP = $6B ; doublet
|
|
252
|
+
|
|
253
|
+
OPC_ADC_izp = $72
|
|
254
|
+
; OPC_NOP = $73 ; doublet
|
|
255
|
+
OPC_STZ_zpx = $74
|
|
256
|
+
OPC_PLY = $7A
|
|
257
|
+
; OPC_NOP = $7B ; doublet
|
|
258
|
+
OPC_JMP_iax = $7C
|
|
259
|
+
|
|
260
|
+
OPC_BRA = $80
|
|
261
|
+
; OPC_NOP = $82 ; doublet
|
|
262
|
+
; OPC_NOP = $83 ; doublet
|
|
263
|
+
OPC_BIT_imm = $89
|
|
264
|
+
; OPC_NOP = $8B ; doublet
|
|
265
|
+
|
|
266
|
+
OPC_STA_izp = $92
|
|
267
|
+
; OPC_NOP = $93 ; doublet
|
|
268
|
+
; OPC_NOP = $9B ; doublet
|
|
269
|
+
OPC_STZ_abs = $9C
|
|
270
|
+
OPC_STZ_abx = $9E
|
|
271
|
+
|
|
272
|
+
; OPC_NOP = $A3 ; doublet
|
|
273
|
+
; OPC_NOP = $AB ; doublet
|
|
274
|
+
|
|
275
|
+
OPC_LDA_izp = $B2
|
|
276
|
+
; OPC_NOP = $B3 ; doublet
|
|
277
|
+
; OPC_NOP = $BB ; doublet
|
|
278
|
+
|
|
279
|
+
; OPC_NOP = $C2 ; doublet
|
|
280
|
+
; OPC_NOP = $C3 ; doublet
|
|
281
|
+
; OPC_NOP = $CB ; doublet
|
|
282
|
+
|
|
283
|
+
OPC_CMP_izp = $D2
|
|
284
|
+
; OPC_NOP = $D3 ; doublet
|
|
285
|
+
; OPC_NOP = $D4 ; doublet
|
|
286
|
+
OPC_PHX = $DA
|
|
287
|
+
; OPC_NOP = $DB ; doublet
|
|
288
|
+
; OPC_NOP = $DC ; doublet
|
|
289
|
+
|
|
290
|
+
; OPC_NOP = $E2 ; doublet
|
|
291
|
+
; OPC_NOP = $E3 ; doublet
|
|
292
|
+
; OPC_NOP = $EB ; doublet
|
|
293
|
+
|
|
294
|
+
OPC_SBC_izp = $F2
|
|
295
|
+
; OPC_NOP = $F3 ; doublet
|
|
296
|
+
; OPC_NOP = $F4 ; doublet
|
|
297
|
+
OPC_PLX = $FA
|
|
298
|
+
; OPC_NOP = $FB ; doublet
|
|
299
|
+
; OPC_NOP = $FC ; doublet
|
|
300
|
+
|
|
301
|
+
|
|
302
|
+
.if (.cpu .bitand ::CPU_ISET_65C02)
|
|
303
|
+
|
|
304
|
+
; bit instructions for 65C02
|
|
305
|
+
|
|
306
|
+
OPC_RMB0 = $07
|
|
307
|
+
OPC_RMB1 = $17
|
|
308
|
+
OPC_RMB2 = $27
|
|
309
|
+
OPC_RMB3 = $37
|
|
310
|
+
OPC_RMB4 = $47
|
|
311
|
+
OPC_RMB5 = $57
|
|
312
|
+
OPC_RMB6 = $67
|
|
313
|
+
OPC_RMB7 = $77
|
|
314
|
+
|
|
315
|
+
OPC_SMB0 = $87
|
|
316
|
+
OPC_SMB1 = $97
|
|
317
|
+
OPC_SMB2 = $A7
|
|
318
|
+
OPC_SMB3 = $B7
|
|
319
|
+
OPC_SMB4 = $C7
|
|
320
|
+
OPC_SMB5 = $D7
|
|
321
|
+
OPC_SMB6 = $E7
|
|
322
|
+
OPC_SMB7 = $F7
|
|
323
|
+
|
|
324
|
+
OPC_BBR0 = $0F
|
|
325
|
+
OPC_BBR1 = $1F
|
|
326
|
+
OPC_BBR2 = $2F
|
|
327
|
+
OPC_BBR3 = $3F
|
|
328
|
+
OPC_BBR4 = $4F
|
|
329
|
+
OPC_BBR5 = $5F
|
|
330
|
+
OPC_BBR6 = $6F
|
|
331
|
+
OPC_BBR7 = $7F
|
|
332
|
+
|
|
333
|
+
OPC_BBS0 = $8F
|
|
334
|
+
OPC_BBS1 = $9F
|
|
335
|
+
OPC_BBS2 = $AF
|
|
336
|
+
OPC_BBS3 = $BF
|
|
337
|
+
OPC_BBS4 = $CF
|
|
338
|
+
OPC_BBS5 = $DF
|
|
339
|
+
OPC_BBS6 = $EF
|
|
340
|
+
OPC_BBS7 = $FF
|
|
341
|
+
|
|
342
|
+
.else
|
|
343
|
+
|
|
344
|
+
; no bit instructions for 65SC02
|
|
345
|
+
|
|
346
|
+
; OPC_NOP = $07 ; doublet
|
|
347
|
+
; OPC_NOP = $17 ; doublet
|
|
348
|
+
; OPC_NOP = $27 ; doublet
|
|
349
|
+
; OPC_NOP = $37 ; doublet
|
|
350
|
+
; OPC_NOP = $47 ; doublet
|
|
351
|
+
; OPC_NOP = $57 ; doublet
|
|
352
|
+
; OPC_NOP = $67 ; doublet
|
|
353
|
+
; OPC_NOP = $77 ; doublet
|
|
354
|
+
; OPC_NOP = $87 ; doublet
|
|
355
|
+
; OPC_NOP = $97 ; doublet
|
|
356
|
+
; OPC_NOP = $A7 ; doublet
|
|
357
|
+
; OPC_NOP = $B7 ; doublet
|
|
358
|
+
; OPC_NOP = $C7 ; doublet
|
|
359
|
+
; OPC_NOP = $D7 ; doublet
|
|
360
|
+
; OPC_NOP = $E7 ; doublet
|
|
361
|
+
; OPC_NOP = $F7 ; doublet
|
|
362
|
+
; OPC_NOP = $0F ; doublet
|
|
363
|
+
; OPC_NOP = $1F ; doublet
|
|
364
|
+
; OPC_NOP = $2F ; doublet
|
|
365
|
+
; OPC_NOP = $3F ; doublet
|
|
366
|
+
; OPC_NOP = $4F ; doublet
|
|
367
|
+
; OPC_NOP = $5F ; doublet
|
|
368
|
+
; OPC_NOP = $6F ; doublet
|
|
369
|
+
; OPC_NOP = $7F ; doublet
|
|
370
|
+
; OPC_NOP = $8F ; doublet
|
|
371
|
+
; OPC_NOP = $9F ; doublet
|
|
372
|
+
; OPC_NOP = $AF ; doublet
|
|
373
|
+
; OPC_NOP = $BF ; doublet
|
|
374
|
+
; OPC_NOP = $CF ; doublet
|
|
375
|
+
; OPC_NOP = $DF ; doublet
|
|
376
|
+
; OPC_NOP = $EF ; doublet
|
|
377
|
+
; OPC_NOP = $FF ; doublet
|
|
378
|
+
|
|
379
|
+
.endif
|
|
380
|
+
|
|
381
|
+
.elseif (.cpu .bitand ::CPU_ISET_6502X)
|
|
382
|
+
|
|
383
|
+
; stable, undocumented opcodes
|
|
384
|
+
|
|
385
|
+
; OPC_KIL = $02 ; unstable
|
|
386
|
+
OPC_SLO_izx = $03
|
|
387
|
+
OPC_NOP_zp = $04
|
|
388
|
+
OPC_SLO_zp = $07
|
|
389
|
+
OPC_ANC_imm = $0B
|
|
390
|
+
OPC_NOP_abs = $0C
|
|
391
|
+
OPC_SLO_abs = $0F
|
|
392
|
+
|
|
393
|
+
; OPC_KIL = $12 ; unstable
|
|
394
|
+
OPC_SLO_izy = $13
|
|
395
|
+
OPC_NOP_zpx = $14
|
|
396
|
+
OPC_SLO_zpx = $17
|
|
397
|
+
;OPC_NOP = $1A
|
|
398
|
+
OPC_SLO_aby = $1B
|
|
399
|
+
OPC_NOP_abx = $1C
|
|
400
|
+
OPC_SLO_abx = $1F
|
|
401
|
+
|
|
402
|
+
; OPC_KIL = $22 ; unstable
|
|
403
|
+
OPC_RLA_izx = $23
|
|
404
|
+
OPC_RLA_zp = $27
|
|
405
|
+
OPC_ANC_imm = $2B
|
|
406
|
+
OPC_RLA_abs = $2F
|
|
407
|
+
|
|
408
|
+
; OPC_KIL = $32 ; unstable
|
|
409
|
+
OPC_RLA_izy = $33
|
|
410
|
+
OPC_NOP_zpx = $34
|
|
411
|
+
OPC_RLA_zpx = $37
|
|
412
|
+
; OPC_NOP = $3A ; doublet
|
|
413
|
+
OPC_RLA_aby = $3B
|
|
414
|
+
OPC_NOP_abx = $3C
|
|
415
|
+
OPC_RLA_abx = $3F
|
|
416
|
+
|
|
417
|
+
; OPC_KIL = $42 ; unstable
|
|
418
|
+
OPC_SRE_izx = $43
|
|
419
|
+
OPC_NOP_zp = $44
|
|
420
|
+
OPC_SRE_zp = $47
|
|
421
|
+
OPC_ALR_imm = $4B
|
|
422
|
+
OPC_SRE_abs = $4F
|
|
423
|
+
|
|
424
|
+
; OPC_KIL = $52 ; unstable
|
|
425
|
+
OPC_SRE_izy = $53
|
|
426
|
+
OPC_NOP_zpx = $54
|
|
427
|
+
OPC_SRE_zpx = $57
|
|
428
|
+
; OPC_NOP = $5A ; doublet
|
|
429
|
+
OPC_SRE_aby = $5B
|
|
430
|
+
OPC_NOP_abx = $5C
|
|
431
|
+
OPC_SRE_abx = $5F
|
|
432
|
+
|
|
433
|
+
; OPC_KIL = $62
|
|
434
|
+
OPC_RRA_izx = $63
|
|
435
|
+
OPC_NOP_zp = $64
|
|
436
|
+
OPC_RRA_zp = $67
|
|
437
|
+
OPC_ARR_imm = $6B
|
|
438
|
+
OPC_RRA_abs = $6F
|
|
439
|
+
|
|
440
|
+
; OPC_KIL = $72
|
|
441
|
+
OPC_RRA_izy = $73
|
|
442
|
+
OPC_NOP_zpx = $74
|
|
443
|
+
OPC_RRA_zpx = $77
|
|
444
|
+
; OPC_NOP = $7A ; doublet
|
|
445
|
+
OPC_RRA_aby = $7B
|
|
446
|
+
OPC_NOP_abx = $7C
|
|
447
|
+
OPC_RRA_abx = $7F
|
|
448
|
+
|
|
449
|
+
OPC_NOP_imm = $80
|
|
450
|
+
; OPC_NOP_imm = $82 ; doublet
|
|
451
|
+
OPC_SAX_izx = $83
|
|
452
|
+
OPC_SAX_zp = $87
|
|
453
|
+
; OPC_NOP_imm = $89 ; doublet
|
|
454
|
+
; OPC_XAA = $8B ; unstable
|
|
455
|
+
OPC_SAX_abs = $8F
|
|
456
|
+
|
|
457
|
+
; OPC_KIL = $92 ; unstable
|
|
458
|
+
; OPC_AHX_izy = $93 ; unstable
|
|
459
|
+
OPC_SAX_zpy = $97
|
|
460
|
+
; OPC_TAS_aby = $9B ; unstable
|
|
461
|
+
; OPC_SHY_abx = $9C ; unstable
|
|
462
|
+
; OPC_SHX_aby = $9E ; unstable
|
|
463
|
+
; OPC_AHX_aby = $9F ; unstable
|
|
464
|
+
|
|
465
|
+
OPC_LAX_izx = $A3
|
|
466
|
+
OPC_LAX_zp = $A7
|
|
467
|
+
; OPC_LAX_imm = $AB ; unstable
|
|
468
|
+
OPC_LAX_abs = $AF
|
|
469
|
+
|
|
470
|
+
; OPC_KIL = $B2 ; unstable
|
|
471
|
+
OPC_LAX_izy = $B3
|
|
472
|
+
OPC_LAX_zpy = $B7
|
|
473
|
+
OPC_LAS_aby = $BB
|
|
474
|
+
OPC_LAX_aby = $BF
|
|
475
|
+
|
|
476
|
+
; OPC_NOP_imm = $C2 ; doublet
|
|
477
|
+
OPC_DCP_izx = $C3
|
|
478
|
+
OPC_DCP_zp = $C7
|
|
479
|
+
OPC_AXS_imm = $CB
|
|
480
|
+
OPC_DCP_abs = $CF
|
|
481
|
+
|
|
482
|
+
; OPC_KIL = $D2 ; unstable
|
|
483
|
+
OPC_DCP_izy = $D3
|
|
484
|
+
OPC_NOP_zpx = $D4
|
|
485
|
+
OPC_DCP_zpx = $D7
|
|
486
|
+
OPC_NOP_DA = $DA
|
|
487
|
+
OPC_DCP_aby = $DB
|
|
488
|
+
OPC_NOP_abx = $DC
|
|
489
|
+
OPC_DCP_abx = $DF
|
|
490
|
+
|
|
491
|
+
; OPC_NOP_imm = $E2 ; doublet
|
|
492
|
+
OPC_ISC_izx = $E3
|
|
493
|
+
OPC_ISC_zp = $E7
|
|
494
|
+
; OPC_SBC_imm = $EB ; doublet
|
|
495
|
+
OPC_ISC_abs = $EF
|
|
496
|
+
|
|
497
|
+
; OPC_KIL = $F2 ; unstable
|
|
498
|
+
OPC_ISC_izy = $F3
|
|
499
|
+
OPC_NOP_zpx = $F4
|
|
500
|
+
OPC_ISC_zpx = $F7
|
|
501
|
+
OPC_NOP_FA = $FA
|
|
502
|
+
OPC_ISC_aby = $FB
|
|
503
|
+
OPC_NOP_abx = $FC
|
|
504
|
+
OPC_ISC_abx = $FF
|
|
505
|
+
|
|
506
|
+
.if (.cpu .bitand ::CPU_ISET_6502DTV)
|
|
507
|
+
|
|
508
|
+
OPC_BRA = $12
|
|
509
|
+
OPC_SAC_imm = $32
|
|
510
|
+
OPC_SIR_imm = $42
|
|
511
|
+
|
|
512
|
+
.endif
|
|
513
|
+
|
|
514
|
+
.endif
|
package/asminc/pce.inc
ADDED
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
;
|
|
2
|
+
; PCE definitions. By Groepaz/Hitmen.
|
|
3
|
+
;
|
|
4
|
+
|
|
5
|
+
; FIXME: Screen dimensions can change according to the selected video mode.
|
|
6
|
+
screenrows = (224/8)
|
|
7
|
+
charsperline = 61
|
|
8
|
+
|
|
9
|
+
CH_HLINE = 1
|
|
10
|
+
CH_VLINE = 2
|
|
11
|
+
|
|
12
|
+
; HuC6270 -- Video Display Controller (VDC)
|
|
13
|
+
|
|
14
|
+
VDC_MAWR = 0 ; Memory Address Write Register
|
|
15
|
+
VDC_MARR = 1 ; Memory Address Read Register
|
|
16
|
+
VDC_VWR = 2 ; VRAM Write Register
|
|
17
|
+
VDC_VRR = 2 ; VRAM Read Register
|
|
18
|
+
VDC_UNK03 = 3 ; (unknown)
|
|
19
|
+
VDC_UNK04 = 4 ; (unknown)
|
|
20
|
+
VDC_CR = 5 ; Control Register
|
|
21
|
+
VDC_RCR = 6 ; Raster Counter Register
|
|
22
|
+
VDC_BXR = 7 ; Background X-Scroll Register
|
|
23
|
+
VDC_BYR = 8 ; Background Y-Scroll Register
|
|
24
|
+
VDC_MWR = 9 ; Memory-access Width Register
|
|
25
|
+
VDC_HSR = 10 ; Horizontal Sync Register
|
|
26
|
+
VDC_HDR = 11 ; Horizontal Display Register
|
|
27
|
+
VDC_VSR = 12 ; Vertical sync Register
|
|
28
|
+
VDC_VDR = 13 ; Vertical Display register
|
|
29
|
+
VDC_VCR = 14 ; Vertical display END position register
|
|
30
|
+
VDC_DCR = 15 ; (DMA) Control Register
|
|
31
|
+
VDC_SOUR = 16 ; (DMA) Source Register
|
|
32
|
+
VDC_DESR = 17 ; (DMA) Destination Register
|
|
33
|
+
VDC_LENR = 18 ; (DMA) Length Register
|
|
34
|
+
VDC_SATB = 19 ; Sprite Attribute Table
|
|
35
|
+
|
|
36
|
+
; VDC port
|
|
37
|
+
; Note: The zero-page addressing mode is redirected to page $20.
|
|
38
|
+
; We avoid it by using mirror locations that are outside of the zero page.
|
|
39
|
+
|
|
40
|
+
VDC_CTRL := $0200
|
|
41
|
+
VDC_DATA_LO := $0202
|
|
42
|
+
VDC_DATA_HI := $0203
|
|
43
|
+
|
|
44
|
+
; HuC6260 -- Video Color Encoder (VCE)
|
|
45
|
+
|
|
46
|
+
; The DAC has a palette of 512 colours.
|
|
47
|
+
; The bitmap of that data is 0000000gggrrrbbb (Green, Red, Blue).
|
|
48
|
+
; You can read and write the DAC registers.
|
|
49
|
+
|
|
50
|
+
VCE := $0400 ; base
|
|
51
|
+
|
|
52
|
+
VCE_CTRL := $0400 ; write $00 to reset
|
|
53
|
+
VCE_ADDR_LO := $0402 ; LSB of byte offset into palette
|
|
54
|
+
VCE_ADDR_HI := $0403 ; MSB of byte offset into palette
|
|
55
|
+
VCE_DATA_LO := $0404 ; LSB of 16-bit palette data
|
|
56
|
+
VCE_DATA_HI := $0405 ; MSB of 16-bit palette data
|
|
57
|
+
|
|
58
|
+
; Programmable Sound Generator (PSG)
|
|
59
|
+
|
|
60
|
+
PSG := $0800 ; base
|
|
61
|
+
|
|
62
|
+
PSG_CHAN_SELECT := $0800
|
|
63
|
+
PSG_GLOBAL_PAN := $0801
|
|
64
|
+
PSG_FREQ_LO := $0802
|
|
65
|
+
PSG_FREQ_HI := $0803
|
|
66
|
+
PSG_CHAN_CTRL := $0804
|
|
67
|
+
PSG_CHAN_PAN := $0805
|
|
68
|
+
PSG_CHAN_DATA := $0806
|
|
69
|
+
PSG_NOISE := $0807
|
|
70
|
+
PSG_LFO_FREQ := $0808
|
|
71
|
+
PSG_LFO_CTRL := $0809
|
|
72
|
+
|
|
73
|
+
; Timer
|
|
74
|
+
|
|
75
|
+
TIMER := $0C00 ; base
|
|
76
|
+
|
|
77
|
+
TIMER_COUNT := $0C00
|
|
78
|
+
TIMER_CTRL := $0C01
|
|
79
|
+
|
|
80
|
+
JOY_CTRL := $1000
|
|
81
|
+
|
|
82
|
+
IRQ_MASK := $1402
|
|
83
|
+
IRQ_STATUS := $1403
|
|
84
|
+
|
|
85
|
+
CDR_MEM_DISABLE := $1803
|
|
86
|
+
CDR_MEM_ENABLE := $1807
|
|
87
|
+
|
|
88
|
+
; Write to a VDC register.
|
|
89
|
+
.macro VREG arg1, arg2
|
|
90
|
+
st0 #arg1
|
|
91
|
+
st1 #<(arg2)
|
|
92
|
+
st2 #>(arg2)
|
|
93
|
+
.endmacro
|
package/asminc/pet.inc
ADDED
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
;
|
|
2
|
+
; PET generic definitions.
|
|
3
|
+
;
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
; ---------------------------------------------------------------------------
|
|
7
|
+
; Zero page, Commodore stuff
|
|
8
|
+
|
|
9
|
+
VARTAB := $2A ; Pointer to start of BASIC variables
|
|
10
|
+
MEMSIZE := $34 ; Size of memory installed
|
|
11
|
+
TXTPTR := $77 ; Pointer into BASIC source code
|
|
12
|
+
TIME := $8D ; 60HZ clock
|
|
13
|
+
STATUS := $96 ; IEC status byte
|
|
14
|
+
KEY_COUNT := $9E ; Number of keys in input buffer
|
|
15
|
+
RVS := $9F ; Reverse flag
|
|
16
|
+
CURS_FLAG := $A7 ; 1 = cursor off
|
|
17
|
+
CURS_BLINK := $A8 ; Blink counter
|
|
18
|
+
CURS_CHAR := $A9 ; Character under the cursor
|
|
19
|
+
CURS_STATE := $AA ; Cursor blink state
|
|
20
|
+
SCREEN_PTR := $C4 ; Pointer to current char in text screen
|
|
21
|
+
CURS_X := $C6 ; Cursor column
|
|
22
|
+
FNLEN := $D1 ; Length of filename
|
|
23
|
+
LFN := $D2 ; Current Logical File Number
|
|
24
|
+
SECADR := $D3 ; Secondary address
|
|
25
|
+
DEVNUM := $D4 ; Device number
|
|
26
|
+
SCR_LINELEN := $D5 ; Screen line length
|
|
27
|
+
CURS_Y := $D8 ; Cursor row
|
|
28
|
+
FNADR := $DA ; Pointer to file name
|
|
29
|
+
|
|
30
|
+
; 80-Column CBMs
|
|
31
|
+
KBDREPEAT80 := $E4
|
|
32
|
+
KBDRPTRATE80 := $E5
|
|
33
|
+
KBDRPTDELAY80 := $E6
|
|
34
|
+
|
|
35
|
+
BASIC_BUF := $200 ; Location of command-line
|
|
36
|
+
BASIC_BUF_LEN = 81 ; Maximum length of command-line
|
|
37
|
+
|
|
38
|
+
KEY_BUF := $26F ; Keyboard buffer
|
|
39
|
+
|
|
40
|
+
; 40-Column PETs/CBMs
|
|
41
|
+
KBDRPTDELAY40 := $3E9
|
|
42
|
+
KBDRPTRATE40 := $3EA
|
|
43
|
+
KBDREPEAT40 := $3EE
|
|
44
|
+
KBDREPEAT40B := $3F8
|
|
45
|
+
|
|
46
|
+
;----------------------------------------------------------------------------
|
|
47
|
+
; PET ROM type detection
|
|
48
|
+
|
|
49
|
+
PET_DETECT := $FFFB
|
|
50
|
+
PET_2000 = $CA
|
|
51
|
+
PET_3000 = $FC
|
|
52
|
+
PET_4000 = $FD
|
|
53
|
+
|
|
54
|
+
;----------------------------------------------------------------------------
|
|
55
|
+
; Vector and other locations
|
|
56
|
+
|
|
57
|
+
IRQVec := $0090
|
|
58
|
+
BRKVec := $0092
|
|
59
|
+
NMIVec := $0094
|
|
60
|
+
|
|
61
|
+
; ---------------------------------------------------------------------------
|
|
62
|
+
; I/O: 6520 PIA1
|
|
63
|
+
|
|
64
|
+
PIA1 := $E810 ; PIA1 base address
|
|
65
|
+
PIA1_PORTA := PIA1+$0 ; Port A (PA) and data direction register A (DDRA)
|
|
66
|
+
PIA1_PACTL := PIA1+$1 ; Port A control register (CRA)
|
|
67
|
+
PIA1_PORTB := PIA1+$2 ; Port B (PB) and data direction register B (DDRB)
|
|
68
|
+
PIA1_PBCTL := PIA1+$3 ; Port B control register (CRB)
|
|
69
|
+
|
|
70
|
+
; ---------------------------------------------------------------------------
|
|
71
|
+
; I/O: 6520 PIA2
|
|
72
|
+
|
|
73
|
+
PIA2 := $E820 ; PIA2 base address
|
|
74
|
+
PIA2_PORTA := PIA2+$0 ; Port A (PA) and data direction register A (DDRA)
|
|
75
|
+
PIA2_PACTL := PIA2+$1 ; Port A control register (CRA)
|
|
76
|
+
PIA2_PORTB := PIA2+$2 ; Port B (PB) and data direction register B (DDRB)
|
|
77
|
+
PIA2_PBCTL := PIA2+$3 ; Port B control register (CRB)
|
|
78
|
+
|
|
79
|
+
; ---------------------------------------------------------------------------
|
|
80
|
+
; I/O: 6522 VIA
|
|
81
|
+
|
|
82
|
+
VIA := $E840 ; VIA base address
|
|
83
|
+
VIA_PB := VIA+$0 ; Port register B
|
|
84
|
+
VIA_PA1 := VIA+$1 ; Port register A
|
|
85
|
+
VIA_PRB := VIA+$0 ; *** Deprecated ***
|
|
86
|
+
VIA_PRA := VIA+$1 ; *** Deprecated ***
|
|
87
|
+
VIA_DDRB := VIA+$2 ; Data direction register B
|
|
88
|
+
VIA_DDRA := VIA+$3 ; Data direction register A
|
|
89
|
+
VIA_T1CL := VIA+$4 ; Timer 1, low byte
|
|
90
|
+
VIA_T1CH := VIA+$5 ; Timer 1, high byte
|
|
91
|
+
VIA_T1LL := VIA+$6 ; Timer 1 latch, low byte
|
|
92
|
+
VIA_T1LH := VIA+$7 ; Timer 1 latch, high byte
|
|
93
|
+
VIA_T2CL := VIA+$8 ; Timer 2, low byte
|
|
94
|
+
VIA_T2CH := VIA+$9 ; Timer 2, high byte
|
|
95
|
+
VIA_SR := VIA+$A ; Shift register
|
|
96
|
+
VIA_CR := VIA+$B ; Auxiliary control register
|
|
97
|
+
VIA_PCR := VIA+$C ; Peripheral control register
|
|
98
|
+
VIA_IFR := VIA+$D ; Interrupt flag register
|
|
99
|
+
VIA_IER := VIA+$E ; Interrupt enable register
|
|
100
|
+
VIA_PA2 := VIA+$F ; Port register A w/o handshake
|