Lines Matching refs:dec
152 Instruction dec = {}; in DecodeInstruction() local
153 dec.opcode = opcode; in DecodeInstruction()
157 return dec; in DecodeInstruction()
159 dec.vA = InstA(inst); in DecodeInstruction()
160 dec.vB = InstB(inst); in DecodeInstruction()
161 return dec; in DecodeInstruction()
163 dec.vA = InstA(inst); in DecodeInstruction()
164 dec.vB = s4(InstB(inst) << 28) >> 28; // sign extend 4-bit value in DecodeInstruction()
165 return dec; in DecodeInstruction()
167 dec.vA = InstAA(inst); in DecodeInstruction()
168 return dec; in DecodeInstruction()
170 dec.vA = s1(InstAA(inst)); // sign-extend 8-bit value in DecodeInstruction()
171 return dec; in DecodeInstruction()
173 dec.vA = s2(bytecode[1]); // sign-extend 16-bit value in DecodeInstruction()
174 return dec; in DecodeInstruction()
178 dec.vA = InstAA(inst); in DecodeInstruction()
179 dec.vB = bytecode[1]; in DecodeInstruction()
180 return dec; in DecodeInstruction()
183 dec.vA = InstAA(inst); in DecodeInstruction()
184 dec.vB = s2(bytecode[1]); // sign-extend 16-bit value in DecodeInstruction()
185 return dec; in DecodeInstruction()
187 dec.vA = InstAA(inst); in DecodeInstruction()
191 dec.vB = bytecode[1]; in DecodeInstruction()
192 return dec; in DecodeInstruction()
194 dec.vA = InstAA(inst); in DecodeInstruction()
195 dec.vB = bytecode[1] & 0xff; in DecodeInstruction()
196 dec.vC = bytecode[1] >> 8; in DecodeInstruction()
197 return dec; in DecodeInstruction()
199 dec.vA = InstAA(inst); in DecodeInstruction()
200 dec.vB = bytecode[1] & 0xff; in DecodeInstruction()
201 dec.vC = s1(bytecode[1] >> 8); // sign-extend 8-bit value in DecodeInstruction()
202 return dec; in DecodeInstruction()
205 dec.vA = InstA(inst); in DecodeInstruction()
206 dec.vB = InstB(inst); in DecodeInstruction()
207 dec.vC = s2(bytecode[1]); // sign-extend 16-bit value in DecodeInstruction()
208 return dec; in DecodeInstruction()
211 dec.vA = InstA(inst); in DecodeInstruction()
212 dec.vB = InstB(inst); in DecodeInstruction()
213 dec.vC = bytecode[1]; in DecodeInstruction()
214 return dec; in DecodeInstruction()
216 dec.vA = FetchU4(bytecode + 1); in DecodeInstruction()
217 return dec; in DecodeInstruction()
220 dec.vA = InstAA(inst); in DecodeInstruction()
221 dec.vB = FetchU4(bytecode + 1); in DecodeInstruction()
222 return dec; in DecodeInstruction()
224 dec.vA = bytecode[1]; in DecodeInstruction()
225 dec.vB = bytecode[2]; in DecodeInstruction()
226 return dec; in DecodeInstruction()
228 dec.vA = InstAA(inst); in DecodeInstruction()
229 dec.vB = FetchU4(bytecode + 1); in DecodeInstruction()
230 return dec; in DecodeInstruction()
234 dec.vA = InstB(inst); // This is labeled A in the spec. in DecodeInstruction()
235 dec.vB = bytecode[1]; in DecodeInstruction()
244 switch (dec.vA) { in DecodeInstruction()
252 dec.arg[4] = InstA(inst); in DecodeInstruction()
255 dec.arg[3] = (regList >> 12) & 0x0f; in DecodeInstruction()
258 dec.arg[2] = (regList >> 8) & 0x0f; in DecodeInstruction()
261 dec.arg[1] = (regList >> 4) & 0x0f; in DecodeInstruction()
264 dec.vC = dec.arg[0] = regList & 0x0f; in DecodeInstruction()
268 return dec; in DecodeInstruction()
275 dec.vA = InstAA(inst); in DecodeInstruction()
276 dec.vB = bytecode[1]; in DecodeInstruction()
277 dec.vC = bytecode[2]; in DecodeInstruction()
278 return dec; in DecodeInstruction()
281 dec.vA = InstB(inst); // This is labelled A in the spec. in DecodeInstruction()
282 dec.vB = bytecode[1]; // vB meth@BBBB in DecodeInstruction()
285 dec.vC = regList & 0xf; in DecodeInstruction()
286 dec.arg[0] = (regList >> 4) & 0xf; // vD in DecodeInstruction()
287 dec.arg[1] = (regList >> 8) & 0xf; // vE in DecodeInstruction()
288 dec.arg[2] = (regList >> 12); // vF in DecodeInstruction()
289 dec.arg[3] = InstA(inst); // vG in DecodeInstruction()
290 dec.arg[4] = bytecode[3]; // vH proto@HHHH in DecodeInstruction()
292 return dec; in DecodeInstruction()
295 dec.vA = InstAA(inst); in DecodeInstruction()
296 dec.vB = bytecode[1]; in DecodeInstruction()
297 dec.vC = bytecode[2]; in DecodeInstruction()
298 dec.arg[4] = bytecode[3]; // vH proto@HHHH in DecodeInstruction()
299 return dec; in DecodeInstruction()
301 dec.vA = InstAA(inst); in DecodeInstruction()
302 dec.vB_wide = FetchU8(bytecode + 1); in DecodeInstruction()
303 return dec; in DecodeInstruction()