-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathasm_instruction_set.xml
executable file
·294 lines (272 loc) · 18 KB
/
asm_instruction_set.xml
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
<?xml version="1.0" encoding="iso-8859-1"?>
<!--
Kick Assembler plugin - An Eclipse plugin for convenient Kick Assembling
Copyright (c) 2012 - P-a Backstrom <pa.backstrom@gmail.com>
Based on ASMPlugin - http://sourceforge.net/projects/asmplugin/
Copyright (c) 2006 - Andy Reek, D. Mitte
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-->
<sets>
<!-- standard 6502 op codes -->
<instruction command="adc" description="ADC (ADd with Carry) - Affects Flags: S V Z C" />
<instruction command="adc.z" description="ADC (ADd with Carry) - Affects Flags: S V Z C" />
<instruction command="adc.zp" description="ADC (ADd with Carry) - Affects Flags: S V Z C" />
<instruction command="and" description="AND (bitwise AND with accumulator) - Affects Flags: S Z" />
<instruction command="and.z" description="AND (bitwise AND with accumulator) - Affects Flags: S Z" />
<instruction command="and.zp" description="AND (bitwise AND with accumulator) - Affects Flags: S Z" />
<instruction command="asl" description="ASL (Arithmetic Shift Left) - Affects Flags: S Z C" />
<instruction command="asl.z" description="ASL (Arithmetic Shift Left) - Affects Flags: S Z C" />
<instruction command="asl.zp" description="ASL (Arithmetic Shift Left) - Affects Flags: S Z C" />
<instruction command="bcc" description="BCC (Branch on Carry Clear) - Affect Flags: none" />
<instruction command="bcs" description="BCS (Branch on Carry Set) - Affect Flags: none" />
<instruction command="beq" description="BEQ (Branch on EQual) - Affect Flags: none" />
<instruction command="bit" description="BIT (test BITs) - Affects Flags: N V Z " />
<instruction command="bit.z" description="BIT (test BITs) - Affects Flags: N V Z " />
<instruction command="bit.zp" description="BIT (test BITs) - Affects Flags: N V Z " />
<instruction command="bmi" description="BMI (Branch on MInus) - Affect Flags: none" />
<instruction command="bne" description="BNE (Branch on Not Equal) - Affect Flags: none" />
<instruction command="bpl" description="BPL (Branch on PLus) - Affect Flags: none" />
<instruction command="brk" description="BRK (BReaK) - Affects Flags: B" />
<instruction command="bvc" description="BVC (Branch on oVerflow Clear) - Affect Flags: none" />
<instruction command="bvs" description="BVS (Branch on oVerflow Set) - Affect Flags: none" />
<instruction command="clc" description="CLC (CLear Carry)" />
<instruction command="cld" description="CLD (CLear Decimal)" />
<instruction command="cli" description="CLI (CLear Interrupt)" />
<instruction command="clv" description="CLV (CLear oVerflow)" />
<instruction command="cmp" description="CMP (CoMPare accumulator) - Affects Flags: S Z C" />
<instruction command="cmp.z" description="CMP (CoMPare accumulator) - Affects Flags: S Z C" />
<instruction command="cmp.zp" description="CMP (CoMPare accumulator) - Affects Flags: S Z C" />
<instruction command="cpx" description="CPX (ComPare X register) - Affects Flags: S Z C" />
<instruction command="cpx.z" description="CPX (ComPare X register) - Affects Flags: S Z C" />
<instruction command="cpx.zp" description="CPX (ComPare X register) - Affects Flags: S Z C" />
<instruction command="cpy" description="CPY (ComPare Y register) - Affects Flags: S Z C" />
<instruction command="cpy.z" description="CPY (ComPare Y register) - Affects Flags: S Z C" />
<instruction command="cpy.zp" description="CPY (ComPare Y register) - Affects Flags: S Z C" />
<instruction command="dec" description="DEC (DECrement memory) - Affects Flags: S Z" />
<instruction command="dec.z" description="DEC (DECrement memory) - Affects Flags: S Z" />
<instruction command="dec.zp" description="DEC (DECrement memory) - Affects Flags: S Z" />
<instruction command="dex" description="DEX (DEcrement X) - Affect Flags: S Z" />
<instruction command="dey" description="DEY (DEcrement Y) - Affect Flags: S Z" />
<instruction command="eor" description="EOR (bitwise Exclusive OR) - Affects Flags: S Z" />
<instruction command="eor.z" description="EOR (bitwise Exclusive OR) - Affects Flags: S Z" />
<instruction command="eor.zp" description="EOR (bitwise Exclusive OR) - Affects Flags: S Z" />
<instruction command="inc" description="INC (INCrement memory) - Affects Flags: S Z" />
<instruction command="inc.z" description="INC (INCrement memory) - Affects Flags: S Z" />
<instruction command="inc.zp" description="INC (INCrement memory) - Affects Flags: S Z" />
<instruction command="inx" description="INX (INcrement X) - Affect Flags: S Z" />
<instruction command="iny" description="INY (INcrement Y) - Affect Flags: S Z" />
<instruction command="jmp" description="JMP (JuMP) - Affects Flags: none" />
<instruction command="jsr" description="JSR (Jump to SubRoutine) - Affects Flags: none" />
<instruction command="lda" description="LDA (LoaD Accumulator) - Affects Flags: S Z" />
<instruction command="lda.z" description="LDA (LoaD Accumulator) - Affects Flags: S Z" />
<instruction command="lda.zp" description="LDA (LoaD Accumulator) - Affects Flags: S Z" />
<instruction command="ldx" description="LDX (LoaD X register) - Affects Flags: S Z" />
<instruction command="ldx.z" description="LDX (LoaD X register) - Affects Flags: S Z" />
<instruction command="ldx.zp" description="LDX (LoaD X register) - Affects Flags: S Z" />
<instruction command="ldy" description="LDY (LoaD Y register) - Affects Flags: S Z" />
<instruction command="ldy.z" description="LDY (LoaD Y register) - Affects Flags: S Z" />
<instruction command="ldy.zp" description="LDY (LoaD Y register) - Affects Flags: S Z" />
<instruction command="lsr" description="LSR (Logical Shift Right) - Affects Flags: S Z C" />
<instruction command="lsr.z" description="LSR (Logical Shift Right) - Affects Flags: S Z C" />
<instruction command="lsr.zp" description="LSR (Logical Shift Right) - Affects Flags: S Z C" />
<instruction command="nop" description="NOP (No OPeration) - Affects Flags: none" />
<instruction command="ora" description="ORA (bitwise OR with Accumulator) - Affects Flags: S Z" />
<instruction command="ora.z" description="ORA (bitwise OR with Accumulator) - Affects Flags: S Z" />
<instruction command="ora.zp" description="ORA (bitwise OR with Accumulator) - Affects Flags: S Z" />
<instruction command="pha" description="PHA (PusH Accumulator)" />
<instruction command="php" description="PHP (PusH Processor status)" />
<instruction command="pla" description="PLA (PuLl Accumulator)" />
<instruction command="plp" description="PLP (PuLl Processor status)" />
<instruction command="rol" description="ROL (ROtate Left) - Affects Flags: S Z C" />
<instruction command="rol.z" description="ROL (ROtate Left) - Affects Flags: S Z C" />
<instruction command="rol.zp" description="ROL (ROtate Left) - Affects Flags: S Z C" />
<instruction command="ror" description="ROR (ROtate Right) - Affects Flags: S Z C" />
<instruction command="ror.z" description="ROR (ROtate Right) - Affects Flags: S Z C" />
<instruction command="ror.zp" description="ROR (ROtate Right) - Affects Flags: S Z C" />
<instruction command="rti" description="RTI (ReTurn from Interrupt) - Affects Flags: all" />
<instruction command="rts" description="RTS (ReTurn from Subroutine) - Affects Flags: none" />
<instruction command="sbc" description="SBC (SuBtract with Carry) - Affects Flags: S V Z C" />
<instruction command="sbc.z" description="SBC (SuBtract with Carry) - Affects Flags: S V Z C" />
<instruction command="sbc.zp" description="SBC (SuBtract with Carry) - Affects Flags: S V Z C" />
<instruction command="sec" description="SEC (SEt Carry)" />
<instruction command="sed" description="SED (SEt Decimal)" />
<instruction command="sei" description="SEI (SEt Interrupt)" />
<instruction command="sta" description="STA (STore Accumulator) - Affects Flags: none" />
<instruction command="sta.z" description="STA (STore Accumulator) - Affects Flags: none" />
<instruction command="sta.zp" description="STA (STore Accumulator) - Affects Flags: none" />
<instruction command="stx" description="STX (STore X register) - Affects Flags: none" />
<instruction command="stx.z" description="STX (STore X register) - Affects Flags: none" />
<instruction command="stx.zp" description="STX (STore X register) - Affects Flags: none" />
<instruction command="sty" description="STY (STore Y register) - Affects Flags: none" />
<instruction command="sty.z" description="STY (STore Y register) - Affects Flags: none" />
<instruction command="sty.zp" description="STY (STore Y register) - Affects Flags: none" />
<instruction command="tax" description="TAX (Transfer A to X)" />
<instruction command="tay" description="TAY (Transfer A to Y)" />
<instruction command="tsx" description="TSX (Transfer Stack ptr to X)" />
<instruction command="txa" description="TXA (Transfer X to A)" />
<instruction command="txs" description="TXS (Transfer X to Stack ptr)" />
<instruction command="tya" description="TYA (Transfer Y to A)" />
<instruction command="ahx" description="Illegal opcode" />
<instruction command="alr" description="Illegal opcode" />
<instruction command="anc" description="Illegal opcode" />
<instruction command="anc2" description="Illegal opcode" />
<instruction command="arr" description="Illegal opcode" />
<instruction command="axs" description="Illegal opcode" />
<instruction command="dcp" description="Illegal opcode" />
<instruction command="isc" description="Illegal opcode" />
<instruction command="las" description="Illegal opcode" />
<instruction command="lax" description="Illegal opcode" />
<instruction command="rra" description="Illegal opcode" />
<instruction command="sax" description="Illegal opcode" />
<instruction command="shx" description="Illegal opcode" />
<instruction command="shy" description="Illegal opcode" />
<instruction command="slo" description="Illegal opcode" />
<instruction command="sre" description="Illegal opcode" />
<instruction command="tas" description="Illegal opcode" />
<instruction command="xaa" description="Illegal opcode" />
<instruction command="bra" description="DTV opcode" />
<instruction command="sac" description="DTV opcode" />
<instruction command="sir" description="DTV opcode" />
<!-- kick assembler instructions -->
<segment field=".import" description="assembler directive imports and external file" />
<segment field=".importonce" description="assembler directive imports and external file" />
<segment field=".return" description="assembler directive " />
<segment field=".eval" description="assembler directive " />
<segment field=".byte" description="assembler directive that defines bytes" />
<segment field=".word" description="" />
<segment field=".dword" description="" />
<segment field=".text" description="" />
<segment field=".plugin" description="" />
<segment field=".modify" description="" />
<segment field=".filemodify" description="" />
<segment field=".struct" description="assembler directive that defines the program instructions." />
<segment field=".function" description="assembler directive that defines the memory model to use in the program." />
<segment field=".macro" description="assembler directive that defines the memory model to use in the program." />
<segment field=".pseudocommand" description="macro definition" />
<segment field=".asserterror" description="" />
<segment field=".assert" description="" />
<segment field=".error" description="" />
<segment field=".define" description="" />
<segment field=".pc" description="" />
<segment field=".align" description="" />
<segment field=".pseudopc" description="" />
<segment field=".filenamespace" description="" />
<segment field=".namespace" description="" />
<segment field="#if" description="" />
<segment field="#else" description="" />
<segment field="#endif" description="" />
<segment field="#define" description="" />
<segment field="#undef" description="" />
<segment field="#import" description="" />
<segment field="#importif" description="" />
<segment field="#importonce" description="" />
<segment field=".const" description="" />
<segment field=".label" description="" />
<segment field=".enum" description="" />
<segment field=".var" description="assembler directive " />
<class field="List" description="" />
<class field="Hashtable" description="" />
<class field="Matrix" description="" />
<class field="RotationMatrix" description="" />
<class field="ScaleMatrix" description="" />
<class field="MoveMatrix" description="" />
<class field="PerspectiveMatrix" description="" />
<function field="toIntString" description="" />
<function field="toBinaryString" description="" />
<function field="toOctalString" description="" />
<function field="toHexString" description="" />
<function field="LoadBinary" description="" />
<function field="LoadPicture" description="" />
<function field="LoadSid" description="" />
<function field="createFile" description="" />
<function field=".fill" description="assembler directive that defines bytes" />
<function field=".for" description="assembler directive that defines the memory model to use in the program." />
<function field=".print" description="assembler directive that defines the memory model to use in the program." />
<function field=".printnow" description="assembler directive that defines the memory model to use in the program." />
<function field=".if" description="" />
<function field="else" description="" />
<method field=".size" description="" />
<method field=".remove" description="" />
<method field=".shuffle" description="" />
<method field=".charAt" description="" />
<method field=".substring" description="" />
<method field=".asNumber" description="" />
<method field=".asBoolean" description="" />
<method field=".getPixel" description="" />
<method field=".getSinglecolorByte" description="" />
<method field=".getMulticolorByte" description="" />
<method field=".writeln" description="" />
<method field=".width" description="" />
<method field=".height" description="" />
<constant field="BF_C64FILE" description="" />
<constant field="BF_BITMAP_SINGLECOLOR" description="" />
<constant field="BF_KOALA" description="" />
<constant field="BF_FLI" description="" />
<constant field="PI" description="" />
<constant field="E" description="" />
<constant field="BLACK" description="" />
<constant field="WHITE" description="" />
<constant field="RED" description="" />
<constant field="CYAN" description="" />
<constant field="PURPLE" description="" />
<constant field="GREEN" description="" />
<constant field="BLUE" description="" />
<constant field="YELLOW" description="" />
<constant field="ORANGE" description="" />
<constant field="BROWN" description="" />
<constant field="LIGHT_RED" description="" />
<constant field="DARK_GRAY" description="" />
<constant field="DARK_GREY" description="" />
<constant field="GRAY" description="" />
<constant field="GREY" description="" />
<constant field="LIGHT_GREEN" description="" />
<constant field="LIGHT_BLUE" description="" />
<constant field="LIGHT_GRAY" description="" />
<constant field="LIGHT_GREY" description="" />
<!-- kick assembler math library instructions -->
<function field="abs" description="returns the absolute (positive) value of x" />
<function field="acos" description="returns the arc cosine of x" />
<function field="asin" description="returns the arc sine of x" />
<function field="atan" description="returns the arc tangent x" />
<function field="atan2"
description="Returns the angle of the coordinate (x,y) relative to the positive x-axis." />
<function field="cbrt" description="returns the cube root of x" />
<function field="ceil" description="rounds up to the nearest integer." />
<function field="cos" description="returns the cosine of r" />
<function field="cosh" description="returns the hyperbolic cosine of r" />
<function field="exp" description="returns ex" />
<function field="expm1" description="returns ex-1" />
<function field="floor" description="rounds down to the nearest integer" />
<function field="hypot" description="returns sqrt(x2+y2)" />
<function field="IEEEremainder"
description="Returns the remainder of the two numbers as described in the IEEE 754 standard." />
<function field="log" description="returns the natural logarithm of x" />
<function field="log10" description="returns the base 10 logarithm of x" />
<function field="log1p" description="returns log(x+1)" />
<function field="max" description="returns the highest number of x and y" />
<function field="min" description="returns the smallest number of x and y" />
<function field="pow" description="returns xy" />
<function field="mod"
description="Converts a and b to integers and returns the remainder of a/b" />
<function field="random" description="returns a random number x where 0 ? x < 1" />
<function field="round" description="rounds x to the nearest integer" />
<function field="signum"
description="Returns 1 if x>0, -1 if x<0 and 0 if x=0" />
<function field="sin" description="returns the sine of r" />
<function field="sinh" description="returns the hyperbolic sine of x" />
<function field="sqrt" description="returns the square root of x" />
<function field="tan" description="returns the tangent of r" />
<function field="tanh" description="returns the hyperbolic tangent of x" />
<function field="toDegrees" description="converts a radian angle to degrees" />
<function field="toRadians" description="converts a degree" />
</sets>