10 #include "../snes/snesdis.c"
18 { 0x0b,
"anc #0x%02x", 2 },
19 { 0x2b,
"anc #0x%02x", 2 },
20 { 0x8b,
"ane #0x%02x", 2 },
21 { 0x6b,
"arr #0x%02x", 2 },
22 { 0x4b,
"asr #0x%02x", 2 },
23 { 0xc7,
"dcp 0x%02x", 2 },
24 { 0xd7,
"dcp 0x%02x,x", 2 },
25 { 0xcf,
"dcp 0x%04x", 3 },
26 { 0xdf,
"dcp 0x%04x,x", 3 },
27 { 0xdb,
"dcp 0x%04x,y", 3 },
28 { 0xc3,
"dcp (0x%02x,x)", 2 },
29 { 0xd3,
"dcp (0x%02x),y", 2 },
30 { 0xe7,
"isb 0x%02x", 2 },
31 { 0xf7,
"isb 0x%02x,x", 2 },
32 { 0xef,
"isb 0x%04x", 3 },
33 { 0xff,
"isb 0x%04x,x", 3 },
34 { 0xfb,
"isb 0x%04x,y", 3 },
35 { 0xe3,
"isb (0x%02x,x)", 2 },
36 { 0xf3,
"isb (0x%02x),y", 2 },
49 { 0xbb,
"lae 0x%04x,y", 3 },
50 { 0xa7,
"lax 0x%02x", 2 },
51 { 0xb7,
"lax 0x%02x,y", 2 },
52 { 0xaf,
"lax 0x%04x", 3 },
53 { 0xbf,
"lax 0x%04x,y", 3 },
54 { 0xa3,
"lax (0x%02x,x)", 2 },
55 { 0xb3,
"lax (0x%02x),y", 2 },
56 { 0xab,
"lxa #0x%02x", 2 },
64 { 0x80,
"nop #0x%02x", 2 },
65 { 0x82,
"nop #0x%02x", 2 },
66 { 0x89,
"nop #0x%02x", 2 },
67 { 0xc2,
"nop #0x%02x", 2 },
68 { 0xe2,
"nop #0x%02x", 2 },
69 { 0x04,
"nop 0x%02x", 2 },
70 { 0x44,
"nop 0x%02x", 2 },
71 { 0x64,
"nop 0x%02x", 2 },
72 { 0x14,
"nop 0x%02x,x", 2 },
73 { 0x34,
"nop 0x%02x,x", 2 },
74 { 0x54,
"nop 0x%02x,x", 2 },
75 { 0x74,
"nop 0x%02x,x", 2 },
76 { 0xd4,
"nop 0x%02x,x", 2 },
77 { 0xf4,
"nop 0x%02x,x", 2 },
78 { 0x0c,
"nop 0x%04x", 3 },
79 { 0x1c,
"nop 0x%04x,x", 3 },
80 { 0x3c,
"nop 0x%04x,x", 3 },
81 { 0x5c,
"nop 0x%04x,x", 3 },
82 { 0x7c,
"nop 0x%04x,x", 3 },
83 { 0xdc,
"nop 0x%04x,x", 3 },
84 { 0xfc,
"nop 0x%04x,x", 3 },
85 { 0x27,
"rla 0x%02x", 2 },
86 { 0x37,
"rla 0x%02x,x", 2 },
87 { 0x2f,
"rla 0x%04x", 3 },
88 { 0x3f,
"rla 0x%04x,x", 3 },
89 { 0x3b,
"rla 0x%04x,y", 3 },
90 { 0x23,
"rla (0x%02x,x)", 2 },
91 { 0x33,
"rla (0x%02x),y", 2 },
92 { 0x67,
"rra 0x%02x", 2 },
93 { 0x77,
"rra 0x%02x,x", 2 },
94 { 0x6f,
"rra 0x%04x", 3 },
95 { 0x7f,
"rra 0x%04x,x", 3 },
96 { 0x7b,
"rra 0x%04x,y", 3 },
97 { 0x63,
"rra (0x%02x,x)", 2 },
98 { 0x73,
"rra (0x%02x),y", 2 },
99 { 0x87,
"sax 0x%02x", 2 },
100 { 0x97,
"sax 0x%02x,y", 2 },
101 { 0x8f,
"sax 0x%04x", 3 },
102 { 0x83,
"sax (0x%02x,x)", 2 },
103 { 0xe9,
"sbc #0x%02x", 2 },
104 { 0xe5,
"sbc 0x%02x", 2 },
105 { 0xf5,
"sbc 0x%02x,x", 2 },
106 { 0xed,
"sbc 0x%04x", 3 },
107 { 0xfd,
"sbc 0x%04x,x", 3 },
108 { 0xf9,
"sbc 0x%04x,y", 3 },
109 { 0xe1,
"sbc (0x%02x,x)", 2 },
110 { 0xf1,
"sbc (0x%02x),y", 2 },
111 { 0xeb,
"sbc #0x%02x", 2 },
119 { 0xcb,
"sbx 0x%02x", 2 },
120 { 0x93,
"sha 0x%04x,x", 3 },
121 { 0x9f,
"sha 0x%04x,y", 3 },
122 { 0x9b,
"shs 0x%04x,y", 3 },
123 { 0x9e,
"shx 0x%04x,y", 3 },
124 { 0x9c,
"shy 0x%04x,x", 3 },
125 { 0x07,
"slo 0x%02x", 2 },
126 { 0x17,
"slo 0x%02x,x", 2 },
127 { 0x0f,
"slo 0x%04x", 3 },
128 { 0x1f,
"slo 0x%04x,x", 3 },
129 { 0x1b,
"slo 0x%04x,y", 3 },
130 { 0x03,
"slo (0x%02x,x)", 2 },
131 { 0x13,
"slo (0x%02x),y", 2 },
132 { 0x47,
"sre 0x%02x", 2 },
133 { 0x57,
"sre 0x%02x,x", 2 },
134 { 0x4f,
"sre 0x%04x", 3 },
135 { 0x5f,
"sre 0x%04x,x", 3 },
136 { 0x5b,
"sre 0x%04x,y", 3 },
137 { 0x43,
"sre (0x%02x,x)", 2 },
138 { 0x53,
"sre (0x%02x),y", 2 },
146 const char *buf_asm =
"invalid";
156 buf_asm =
"truncated";
164 buf_asm =
"truncated";
172 buf_asm =
"truncated";
static int _6502Disass(ut64 pc, RzAsmOp *op, const ut8 *buf, ut64 len)
RZ_API char * sdb_fmt(const char *fmt,...)
RZ_API const char * rz_strbuf_set(RzStrBuf *sb, const char *s)
static int snesDisass(int M_flag, int X_flag, ut64 pc, RzAsmOp *op, const ut8 *buf, int len)
ut64(WINAPI *w32_GetEnabledXStateFeatures)()