Debian Codegraph @

contrib/toacme/src/mnemo.c

raw symbols SCIP
1 // ToACME - converts other source codes to ACME format.
2 // Copyright (C) 1999-2006 Marco Baye
3 // Have a look at "main.c" for further info
4 //
5 // assembler mnemonics
6
7 // mnemonics of legal 6502 instructions
8 const char MnemonicADC[] = "adc",
9 MnemonicAND[] = "and",
10 MnemonicASL[] = "asl",
11 MnemonicBCC[] = "bcc",
12 MnemonicBCS[] = "bcs",
13 MnemonicBEQ[] = "beq",
14 MnemonicBIT[] = "bit",
15 MnemonicBMI[] = "bmi",
16 MnemonicBNE[] = "bne",
17 MnemonicBPL[] = "bpl",
18 MnemonicBRK[] = "brk",
19 MnemonicBVC[] = "bvc",
20 MnemonicBVS[] = "bvs",
21 MnemonicCLC[] = "clc",
22 MnemonicCLD[] = "cld",
23 MnemonicCLI[] = "cli",
24 MnemonicCLV[] = "clv",
25 MnemonicCMP[] = "cmp",
26 MnemonicCPX[] = "cpx",
27 MnemonicCPY[] = "cpy",
28 MnemonicDEC[] = "dec",
29 MnemonicDEX[] = "dex",
30 MnemonicDEY[] = "dey",
31 MnemonicEOR[] = "eor",
32 MnemonicINC[] = "inc",
33 MnemonicINX[] = "inx",
34 MnemonicINY[] = "iny",
35 MnemonicJMP[] = "jmp",
36 MnemonicJSR[] = "jsr",
37 MnemonicLDA[] = "lda",
38 MnemonicLDX[] = "ldx",
39 MnemonicLDY[] = "ldy",
40 MnemonicLSR[] = "lsr",
41 MnemonicNOP[] = "nop",
42 MnemonicORA[] = "ora",
43 MnemonicPHA[] = "pha",
44 MnemonicPHP[] = "php",
45 MnemonicPLA[] = "pla",
46 MnemonicPLP[] = "plp",
47 MnemonicROL[] = "rol",
48 MnemonicROR[] = "ror",
49 MnemonicRTI[] = "rti",
50 MnemonicRTS[] = "rts",
51 MnemonicSBC[] = "sbc",
52 MnemonicSEC[] = "sec",
53 MnemonicSED[] = "sed",
54 MnemonicSEI[] = "sei",
55 MnemonicSTA[] = "sta",
56 MnemonicSTX[] = "stx",
57 MnemonicSTY[] = "sty",
58 MnemonicTAX[] = "tax",
59 MnemonicTAY[] = "tay",
60 MnemonicTSX[] = "tsx",
61 MnemonicTXA[] = "txa",
62 MnemonicTXS[] = "txs",
63 MnemonicTYA[] = "tya";
64
65
66 // mnemonics of undocumented ("illegal") 6502 instructions
67 const char MnemonicSLO[] = " SLO",
68 MnemonicRLA[] = " RLA",
69 MnemonicSRE[] = " SRE",
70 MnemonicRRA[] = " RRA",
71 MnemonicSAX[] = " SAX",
72 MnemonicLAX[] = " LAX",
73 MnemonicDCP[] = " DCP",
74 MnemonicISC[] = " ISC",
75 MnemonicANC[] = " ANC",
76 MnemonicARR[] = " ARR",
77 MnemonicASR[] = " ASR",
78 MnemonicSBX[] = " SBX",
79 MnemonicDOP[] = " DOP",
80 MnemonicTOP[] = " TOP",
81 MnemonicSHX[] = " SHX",
82 MnemonicJAM[] = " JAM";
83
84 // mnemonics of 65c02 instructions
85 const char MnemonicBRA[] = "bra",
86 MnemonicPHX[] = "phx",
87 MnemonicPHY[] = "phy",
88 MnemonicPLX[] = "plx",
89 MnemonicPLY[] = "ply",
90 MnemonicSTZ[] = "stz",
91 MnemonicTRB[] = "trb",
92 MnemonicTSB[] = "tsb";
93
94 // mnemonics of 65816 instructions
95 const char MnemonicJML[] = "jml",
96 MnemonicJSL[] = "jsl",
97 MnemonicMVN[] = "mvn",
98 MnemonicMVP[] = "mvp",
99 MnemonicPEI[] = "pei",
100 MnemonicBRL[] = "brl",
101 MnemonicPER[] = "per",
102 MnemonicCOP[] = "cop",
103 MnemonicPEA[] = "pea",
104 MnemonicREP[] = "rep",
105 MnemonicSEP[] = "sep",
106 MnemonicPHB[] = "phb",
107 MnemonicPHD[] = "phd",
108 MnemonicPHK[] = "phk",
109 MnemonicPLB[] = "plb",
110 MnemonicPLD[] = "pld",
111 MnemonicRTL[] = "rtl",
112 MnemonicSTP[] = "stp",
113 MnemonicTCD[] = "tcd",
114 MnemonicTCS[] = "tcs",
115 MnemonicTDC[] = "tdc",
116 MnemonicTSC[] = "tsc",
117 MnemonicTXY[] = "txy",
118 MnemonicTYX[] = "tyx",
119 MnemonicWAI[] = "wai",
120 MnemonicWDM[] = "wdm",
121 MnemonicXBA[] = "xba",
122 MnemonicXCE[] = "xce";