-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtypes_mos65xx_unix.go
187 lines (172 loc) · 8.57 KB
/
types_mos65xx_unix.go
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
// Code generated by github.com/go-darwin/tools/cmd/mkgodef; DO NOT EDIT.
// Input to cgo -godefs.
//go:build ignore
// +build ignore
package capstone
/*
#include <capstone/mos65xx.h>
*/
import "C"
type Mos65XxAddressMode C.enum_mos65xx_address_mode
const (
MOS65XX_AM_NONE Mos65XxAddressMode = C.MOS65XX_AM_NONE
MOS65XX_AM_IMP Mos65XxAddressMode = C.MOS65XX_AM_IMP
MOS65XX_AM_ACC Mos65XxAddressMode = C.MOS65XX_AM_ACC
MOS65XX_AM_IMM Mos65XxAddressMode = C.MOS65XX_AM_IMM
MOS65XX_AM_REL Mos65XxAddressMode = C.MOS65XX_AM_REL
MOS65XX_AM_INT Mos65XxAddressMode = C.MOS65XX_AM_INT
MOS65XX_AM_BLOCK Mos65XxAddressMode = C.MOS65XX_AM_BLOCK
MOS65XX_AM_ZP Mos65XxAddressMode = C.MOS65XX_AM_ZP
MOS65XX_AM_ZP_X Mos65XxAddressMode = C.MOS65XX_AM_ZP_X
MOS65XX_AM_ZP_Y Mos65XxAddressMode = C.MOS65XX_AM_ZP_Y
MOS65XX_AM_ZP_REL Mos65XxAddressMode = C.MOS65XX_AM_ZP_REL
MOS65XX_AM_ZP_IND Mos65XxAddressMode = C.MOS65XX_AM_ZP_IND
MOS65XX_AM_ZP_X_IND Mos65XxAddressMode = C.MOS65XX_AM_ZP_X_IND
MOS65XX_AM_ZP_IND_Y Mos65XxAddressMode = C.MOS65XX_AM_ZP_IND_Y
MOS65XX_AM_ZP_IND_LONG Mos65XxAddressMode = C.MOS65XX_AM_ZP_IND_LONG
MOS65XX_AM_ZP_IND_LONG_Y Mos65XxAddressMode = C.MOS65XX_AM_ZP_IND_LONG_Y
MOS65XX_AM_ABS Mos65XxAddressMode = C.MOS65XX_AM_ABS
MOS65XX_AM_ABS_X Mos65XxAddressMode = C.MOS65XX_AM_ABS_X
MOS65XX_AM_ABS_Y Mos65XxAddressMode = C.MOS65XX_AM_ABS_Y
MOS65XX_AM_ABS_IND Mos65XxAddressMode = C.MOS65XX_AM_ABS_IND
MOS65XX_AM_ABS_X_IND Mos65XxAddressMode = C.MOS65XX_AM_ABS_X_IND
MOS65XX_AM_ABS_IND_LONG Mos65XxAddressMode = C.MOS65XX_AM_ABS_IND_LONG
MOS65XX_AM_ABS_LONG Mos65XxAddressMode = C.MOS65XX_AM_ABS_LONG
MOS65XX_AM_ABS_LONG_X Mos65XxAddressMode = C.MOS65XX_AM_ABS_LONG_X
MOS65XX_AM_SR Mos65XxAddressMode = C.MOS65XX_AM_SR
MOS65XX_AM_SR_IND_Y Mos65XxAddressMode = C.MOS65XX_AM_SR_IND_Y
)
type Mos65XxGroupType C.enum_mos65xx_group_type
const (
MOS65XX_GRP_INVALID Mos65XxGroupType = C.MOS65XX_GRP_INVALID
MOS65XX_GRP_JUMP Mos65XxGroupType = C.MOS65XX_GRP_JUMP
MOS65XX_GRP_CALL Mos65XxGroupType = C.MOS65XX_GRP_CALL
MOS65XX_GRP_RET Mos65XxGroupType = C.MOS65XX_GRP_RET
MOS65XX_GRP_INT Mos65XxGroupType = C.MOS65XX_GRP_INT
MOS65XX_GRP_IRET Mos65XxGroupType = C.MOS65XX_GRP_IRET
MOS65XX_GRP_BRANCH_RELATIVE Mos65XxGroupType = C.MOS65XX_GRP_BRANCH_RELATIVE
MOS65XX_GRP_ENDING Mos65XxGroupType = C.MOS65XX_GRP_ENDING
)
type Mos65XxInsn C.enum_mos65xx_insn
const (
MOS65XX_INS_INVALID Mos65XxInsn = C.MOS65XX_INS_INVALID
MOS65XX_INS_ADC Mos65XxInsn = C.MOS65XX_INS_ADC
MOS65XX_INS_AND Mos65XxInsn = C.MOS65XX_INS_AND
MOS65XX_INS_ASL Mos65XxInsn = C.MOS65XX_INS_ASL
MOS65XX_INS_BBR Mos65XxInsn = C.MOS65XX_INS_BBR
MOS65XX_INS_BBS Mos65XxInsn = C.MOS65XX_INS_BBS
MOS65XX_INS_BCC Mos65XxInsn = C.MOS65XX_INS_BCC
MOS65XX_INS_BCS Mos65XxInsn = C.MOS65XX_INS_BCS
MOS65XX_INS_BEQ Mos65XxInsn = C.MOS65XX_INS_BEQ
MOS65XX_INS_BIT Mos65XxInsn = C.MOS65XX_INS_BIT
MOS65XX_INS_BMI Mos65XxInsn = C.MOS65XX_INS_BMI
MOS65XX_INS_BNE Mos65XxInsn = C.MOS65XX_INS_BNE
MOS65XX_INS_BPL Mos65XxInsn = C.MOS65XX_INS_BPL
MOS65XX_INS_BRA Mos65XxInsn = C.MOS65XX_INS_BRA
MOS65XX_INS_BRK Mos65XxInsn = C.MOS65XX_INS_BRK
MOS65XX_INS_BRL Mos65XxInsn = C.MOS65XX_INS_BRL
MOS65XX_INS_BVC Mos65XxInsn = C.MOS65XX_INS_BVC
MOS65XX_INS_BVS Mos65XxInsn = C.MOS65XX_INS_BVS
MOS65XX_INS_CLC Mos65XxInsn = C.MOS65XX_INS_CLC
MOS65XX_INS_CLD Mos65XxInsn = C.MOS65XX_INS_CLD
MOS65XX_INS_CLI Mos65XxInsn = C.MOS65XX_INS_CLI
MOS65XX_INS_CLV Mos65XxInsn = C.MOS65XX_INS_CLV
MOS65XX_INS_CMP Mos65XxInsn = C.MOS65XX_INS_CMP
MOS65XX_INS_COP Mos65XxInsn = C.MOS65XX_INS_COP
MOS65XX_INS_CPX Mos65XxInsn = C.MOS65XX_INS_CPX
MOS65XX_INS_CPY Mos65XxInsn = C.MOS65XX_INS_CPY
MOS65XX_INS_DEC Mos65XxInsn = C.MOS65XX_INS_DEC
MOS65XX_INS_DEX Mos65XxInsn = C.MOS65XX_INS_DEX
MOS65XX_INS_DEY Mos65XxInsn = C.MOS65XX_INS_DEY
MOS65XX_INS_EOR Mos65XxInsn = C.MOS65XX_INS_EOR
MOS65XX_INS_INC Mos65XxInsn = C.MOS65XX_INS_INC
MOS65XX_INS_INX Mos65XxInsn = C.MOS65XX_INS_INX
MOS65XX_INS_INY Mos65XxInsn = C.MOS65XX_INS_INY
MOS65XX_INS_JML Mos65XxInsn = C.MOS65XX_INS_JML
MOS65XX_INS_JMP Mos65XxInsn = C.MOS65XX_INS_JMP
MOS65XX_INS_JSL Mos65XxInsn = C.MOS65XX_INS_JSL
MOS65XX_INS_JSR Mos65XxInsn = C.MOS65XX_INS_JSR
MOS65XX_INS_LDA Mos65XxInsn = C.MOS65XX_INS_LDA
MOS65XX_INS_LDX Mos65XxInsn = C.MOS65XX_INS_LDX
MOS65XX_INS_LDY Mos65XxInsn = C.MOS65XX_INS_LDY
MOS65XX_INS_LSR Mos65XxInsn = C.MOS65XX_INS_LSR
MOS65XX_INS_MVN Mos65XxInsn = C.MOS65XX_INS_MVN
MOS65XX_INS_MVP Mos65XxInsn = C.MOS65XX_INS_MVP
MOS65XX_INS_NOP Mos65XxInsn = C.MOS65XX_INS_NOP
MOS65XX_INS_ORA Mos65XxInsn = C.MOS65XX_INS_ORA
MOS65XX_INS_PEA Mos65XxInsn = C.MOS65XX_INS_PEA
MOS65XX_INS_PEI Mos65XxInsn = C.MOS65XX_INS_PEI
MOS65XX_INS_PER Mos65XxInsn = C.MOS65XX_INS_PER
MOS65XX_INS_PHA Mos65XxInsn = C.MOS65XX_INS_PHA
MOS65XX_INS_PHB Mos65XxInsn = C.MOS65XX_INS_PHB
MOS65XX_INS_PHD Mos65XxInsn = C.MOS65XX_INS_PHD
MOS65XX_INS_PHK Mos65XxInsn = C.MOS65XX_INS_PHK
MOS65XX_INS_PHP Mos65XxInsn = C.MOS65XX_INS_PHP
MOS65XX_INS_PHX Mos65XxInsn = C.MOS65XX_INS_PHX
MOS65XX_INS_PHY Mos65XxInsn = C.MOS65XX_INS_PHY
MOS65XX_INS_PLA Mos65XxInsn = C.MOS65XX_INS_PLA
MOS65XX_INS_PLB Mos65XxInsn = C.MOS65XX_INS_PLB
MOS65XX_INS_PLD Mos65XxInsn = C.MOS65XX_INS_PLD
MOS65XX_INS_PLP Mos65XxInsn = C.MOS65XX_INS_PLP
MOS65XX_INS_PLX Mos65XxInsn = C.MOS65XX_INS_PLX
MOS65XX_INS_PLY Mos65XxInsn = C.MOS65XX_INS_PLY
MOS65XX_INS_REP Mos65XxInsn = C.MOS65XX_INS_REP
MOS65XX_INS_RMB Mos65XxInsn = C.MOS65XX_INS_RMB
MOS65XX_INS_ROL Mos65XxInsn = C.MOS65XX_INS_ROL
MOS65XX_INS_ROR Mos65XxInsn = C.MOS65XX_INS_ROR
MOS65XX_INS_RTI Mos65XxInsn = C.MOS65XX_INS_RTI
MOS65XX_INS_RTL Mos65XxInsn = C.MOS65XX_INS_RTL
MOS65XX_INS_RTS Mos65XxInsn = C.MOS65XX_INS_RTS
MOS65XX_INS_SBC Mos65XxInsn = C.MOS65XX_INS_SBC
MOS65XX_INS_SEC Mos65XxInsn = C.MOS65XX_INS_SEC
MOS65XX_INS_SED Mos65XxInsn = C.MOS65XX_INS_SED
MOS65XX_INS_SEI Mos65XxInsn = C.MOS65XX_INS_SEI
MOS65XX_INS_SEP Mos65XxInsn = C.MOS65XX_INS_SEP
MOS65XX_INS_SMB Mos65XxInsn = C.MOS65XX_INS_SMB
MOS65XX_INS_STA Mos65XxInsn = C.MOS65XX_INS_STA
MOS65XX_INS_STP Mos65XxInsn = C.MOS65XX_INS_STP
MOS65XX_INS_STX Mos65XxInsn = C.MOS65XX_INS_STX
MOS65XX_INS_STY Mos65XxInsn = C.MOS65XX_INS_STY
MOS65XX_INS_STZ Mos65XxInsn = C.MOS65XX_INS_STZ
MOS65XX_INS_TAX Mos65XxInsn = C.MOS65XX_INS_TAX
MOS65XX_INS_TAY Mos65XxInsn = C.MOS65XX_INS_TAY
MOS65XX_INS_TCD Mos65XxInsn = C.MOS65XX_INS_TCD
MOS65XX_INS_TCS Mos65XxInsn = C.MOS65XX_INS_TCS
MOS65XX_INS_TDC Mos65XxInsn = C.MOS65XX_INS_TDC
MOS65XX_INS_TRB Mos65XxInsn = C.MOS65XX_INS_TRB
MOS65XX_INS_TSB Mos65XxInsn = C.MOS65XX_INS_TSB
MOS65XX_INS_TSC Mos65XxInsn = C.MOS65XX_INS_TSC
MOS65XX_INS_TSX Mos65XxInsn = C.MOS65XX_INS_TSX
MOS65XX_INS_TXA Mos65XxInsn = C.MOS65XX_INS_TXA
MOS65XX_INS_TXS Mos65XxInsn = C.MOS65XX_INS_TXS
MOS65XX_INS_TXY Mos65XxInsn = C.MOS65XX_INS_TXY
MOS65XX_INS_TYA Mos65XxInsn = C.MOS65XX_INS_TYA
MOS65XX_INS_TYX Mos65XxInsn = C.MOS65XX_INS_TYX
MOS65XX_INS_WAI Mos65XxInsn = C.MOS65XX_INS_WAI
MOS65XX_INS_WDM Mos65XxInsn = C.MOS65XX_INS_WDM
MOS65XX_INS_XBA Mos65XxInsn = C.MOS65XX_INS_XBA
MOS65XX_INS_XCE Mos65XxInsn = C.MOS65XX_INS_XCE
MOS65XX_INS_ENDING Mos65XxInsn = C.MOS65XX_INS_ENDING
)
type Mos65XxOpType C.enum_mos65xx_op_type
const (
MOS65XX_OP_INVALID Mos65XxOpType = C.MOS65XX_OP_INVALID
MOS65XX_OP_REG Mos65XxOpType = C.MOS65XX_OP_REG
MOS65XX_OP_IMM Mos65XxOpType = C.MOS65XX_OP_IMM
MOS65XX_OP_MEM Mos65XxOpType = C.MOS65XX_OP_MEM
)
type Mos65XxReg C.enum_mos65xx_reg
const (
MOS65XX_REG_INVALID Mos65XxReg = C.MOS65XX_REG_INVALID
MOS65XX_REG_ACC Mos65XxReg = C.MOS65XX_REG_ACC
MOS65XX_REG_X Mos65XxReg = C.MOS65XX_REG_X
MOS65XX_REG_Y Mos65XxReg = C.MOS65XX_REG_Y
MOS65XX_REG_P Mos65XxReg = C.MOS65XX_REG_P
MOS65XX_REG_SP Mos65XxReg = C.MOS65XX_REG_SP
MOS65XX_REG_DP Mos65XxReg = C.MOS65XX_REG_DP
MOS65XX_REG_B Mos65XxReg = C.MOS65XX_REG_B
MOS65XX_REG_K Mos65XxReg = C.MOS65XX_REG_K
MOS65XX_REG_ENDING Mos65XxReg = C.MOS65XX_REG_ENDING
)
type CsMos65Xx C.struct_cs_mos65xx
type CsMos65XxOp C.struct_cs_mos65xx_op