+/* DO NOT EDIT! -*- buffer-read-only: t -*- vi:set ro: */
#line 1 "msp430-decode.opc"
/* -*- c -*- */
/* Copyright (C) 2013-2018 Free Software Foundation, Inc.
#include <stdlib.h>
#include <string.h>
#include "ansidecl.h"
+#include "opintl.h"
#include "opcode/msp430-decode.h"
static int trace = 0;
i -= 0x100000000ULL;
break;
default:
- fprintf (stderr,
- "Programmer error: immediate() called with invalid byte count %d\n",
- bytes);
+ opcodes_error_handler
+ (_("internal error: immediate() called with invalid byte count %d"),
+ bytes);
abort ();
}
return i;
op_semantics_1:
{
/** 0000 srcr 0000 dstr MOVA @%1, %0 */
-#line 439 "msp430-decode.opc"
+#line 440 "msp430-decode.opc"
int srcr AU = op[0] & 0x0f;
-#line 439 "msp430-decode.opc"
+#line 440 "msp430-decode.opc"
int dstr AU = op[1] & 0x0f;
if (trace)
{
printf (" dstr = 0x%x\n", dstr);
}
SYNTAX("MOVA @%1, %0");
-#line 439 "msp430-decode.opc"
+#line 440 "msp430-decode.opc"
ID (MSO_mov); SM (srcr, 0); DR (dstr);
msp430->size = 20;
msp430->ofs_430x = 1;
op_semantics_2:
{
/** 0000 srcr 0001 dstr MOVA @%1+, %0 */
-#line 444 "msp430-decode.opc"
+#line 445 "msp430-decode.opc"
int srcr AU = op[0] & 0x0f;
-#line 444 "msp430-decode.opc"
+#line 445 "msp430-decode.opc"
int dstr AU = op[1] & 0x0f;
if (trace)
{
printf (" dstr = 0x%x\n", dstr);
}
SYNTAX("MOVA @%1+, %0");
-#line 444 "msp430-decode.opc"
+#line 445 "msp430-decode.opc"
ID (MSO_mov); SI (srcr); DR (dstr);
msp430->size = 20;
msp430->ofs_430x = 1;
op_semantics_3:
{
/** 0000 srcr 0010 dstr MOVA &%1, %0 */
-#line 449 "msp430-decode.opc"
+#line 450 "msp430-decode.opc"
int srcr AU = op[0] & 0x0f;
-#line 449 "msp430-decode.opc"
+#line 450 "msp430-decode.opc"
int dstr AU = op[1] & 0x0f;
if (trace)
{
printf (" dstr = 0x%x\n", dstr);
}
SYNTAX("MOVA &%1, %0");
-#line 449 "msp430-decode.opc"
+#line 450 "msp430-decode.opc"
ID (MSO_mov); SA ((srcr << 16) + IMMU(2)); DR (dstr);
msp430->size = 20;
msp430->ofs_430x = 1;
op_semantics_4:
{
/** 0000 srcr 0011 dstr MOVA %1, %0 */
-#line 454 "msp430-decode.opc"
+#line 455 "msp430-decode.opc"
int srcr AU = op[0] & 0x0f;
-#line 454 "msp430-decode.opc"
+#line 455 "msp430-decode.opc"
int dstr AU = op[1] & 0x0f;
if (trace)
{
printf (" dstr = 0x%x\n", dstr);
}
SYNTAX("MOVA %1, %0");
-#line 454 "msp430-decode.opc"
+#line 455 "msp430-decode.opc"
ID (MSO_mov); SM (srcr, IMMS(2)); DR (dstr);
msp430->size = 20;
msp430->ofs_430x = 1;
op_semantics_5:
{
/** 0000 bt00 010w dstr RRCM.A %c, %0 */
-#line 521 "msp430-decode.opc"
+#line 522 "msp430-decode.opc"
int bt AU = (op[0] >> 2) & 0x03;
-#line 521 "msp430-decode.opc"
+#line 522 "msp430-decode.opc"
int w AU = (op[1] >> 4) & 0x01;
-#line 521 "msp430-decode.opc"
+#line 522 "msp430-decode.opc"
int dstr AU = op[1] & 0x0f;
if (trace)
{
printf (" dstr = 0x%x\n", dstr);
}
SYNTAX("RRCM.A %c, %0");
-#line 521 "msp430-decode.opc"
+#line 522 "msp430-decode.opc"
ID (MSO_rrc); DR (dstr); SR (dstr);
msp430->repeats = bt;
msp430->size = w ? 16 : 20;
op_semantics_6:
{
/** 0000 srcr 0110 dstr MOVA %1, &%0 */
-#line 459 "msp430-decode.opc"
+#line 460 "msp430-decode.opc"
int srcr AU = op[0] & 0x0f;
-#line 459 "msp430-decode.opc"
+#line 460 "msp430-decode.opc"
int dstr AU = op[1] & 0x0f;
if (trace)
{
printf (" dstr = 0x%x\n", dstr);
}
SYNTAX("MOVA %1, &%0");
-#line 459 "msp430-decode.opc"
+#line 460 "msp430-decode.opc"
ID (MSO_mov); SR (srcr); DA ((dstr << 16) + IMMU(2));
msp430->size = 20;
msp430->ofs_430x = 1;
op_semantics_7:
{
/** 0000 srcr 0111 dstr MOVA %1, &%0 */
-#line 464 "msp430-decode.opc"
+#line 465 "msp430-decode.opc"
int srcr AU = op[0] & 0x0f;
-#line 464 "msp430-decode.opc"
+#line 465 "msp430-decode.opc"
int dstr AU = op[1] & 0x0f;
if (trace)
{
printf (" dstr = 0x%x\n", dstr);
}
SYNTAX("MOVA %1, &%0");
-#line 464 "msp430-decode.opc"
+#line 465 "msp430-decode.opc"
ID (MSO_mov); SR (srcr); DM (dstr, IMMS(2));
msp430->size = 20;
msp430->ofs_430x = 1;
op_semantics_8:
{
/** 0000 srcr 1000 dstr MOVA %1, %0 */
-#line 469 "msp430-decode.opc"
+#line 470 "msp430-decode.opc"
int srcr AU = op[0] & 0x0f;
-#line 469 "msp430-decode.opc"
+#line 470 "msp430-decode.opc"
int dstr AU = op[1] & 0x0f;
if (trace)
{
printf (" dstr = 0x%x\n", dstr);
}
SYNTAX("MOVA %1, %0");
-#line 469 "msp430-decode.opc"
+#line 470 "msp430-decode.opc"
ID (MSO_mov); SC ((srcr << 16) + IMMU(2)); DR (dstr);
msp430->size = 20;
msp430->ofs_430x = 1;
op_semantics_9:
{
/** 0000 srcr 1001 dstr CMPA %1, %0 */
-#line 474 "msp430-decode.opc"
+#line 475 "msp430-decode.opc"
int srcr AU = op[0] & 0x0f;
-#line 474 "msp430-decode.opc"
+#line 475 "msp430-decode.opc"
int dstr AU = op[1] & 0x0f;
if (trace)
{
printf (" dstr = 0x%x\n", dstr);
}
SYNTAX("CMPA %1, %0");
-#line 474 "msp430-decode.opc"
+#line 475 "msp430-decode.opc"
ID (MSO_cmp); SC ((srcr << 16) + IMMU(2)); DR (dstr);
msp430->size = 20;
msp430->ofs_430x = 1;
op_semantics_10:
{
/** 0000 srcr 1010 dstr ADDA %1, %0 */
-#line 480 "msp430-decode.opc"
+#line 481 "msp430-decode.opc"
int srcr AU = op[0] & 0x0f;
-#line 480 "msp430-decode.opc"
+#line 481 "msp430-decode.opc"
int dstr AU = op[1] & 0x0f;
if (trace)
{
printf (" dstr = 0x%x\n", dstr);
}
SYNTAX("ADDA %1, %0");
-#line 480 "msp430-decode.opc"
+#line 481 "msp430-decode.opc"
ID (MSO_add); SC ((srcr << 16) + IMMU(2)); DR (dstr);
msp430->size = 20;
msp430->ofs_430x = 1;
op_semantics_11:
{
/** 0000 srcr 1011 dstr SUBA %1, %0 */
-#line 486 "msp430-decode.opc"
+#line 487 "msp430-decode.opc"
int srcr AU = op[0] & 0x0f;
-#line 486 "msp430-decode.opc"
+#line 487 "msp430-decode.opc"
int dstr AU = op[1] & 0x0f;
if (trace)
{
printf (" dstr = 0x%x\n", dstr);
}
SYNTAX("SUBA %1, %0");
-#line 486 "msp430-decode.opc"
+#line 487 "msp430-decode.opc"
ID (MSO_sub); SC ((srcr << 16) + IMMU(2)); DR (dstr);
msp430->size = 20;
msp430->ofs_430x = 1;
op_semantics_12:
{
/** 0000 srcr 1100 dstr MOVA %1, %0 */
-#line 498 "msp430-decode.opc"
+#line 499 "msp430-decode.opc"
int srcr AU = op[0] & 0x0f;
-#line 498 "msp430-decode.opc"
+#line 499 "msp430-decode.opc"
int dstr AU = op[1] & 0x0f;
if (trace)
{
printf (" dstr = 0x%x\n", dstr);
}
SYNTAX("MOVA %1, %0");
-#line 498 "msp430-decode.opc"
+#line 499 "msp430-decode.opc"
ID (MSO_mov); SR (srcr); DR (dstr);
msp430->size = 20;
msp430->ofs_430x = 1;
op_semantics_13:
{
/** 0000 srcr 1101 dstr CMPA %1, %0 */
-#line 503 "msp430-decode.opc"
+#line 504 "msp430-decode.opc"
int srcr AU = op[0] & 0x0f;
-#line 503 "msp430-decode.opc"
+#line 504 "msp430-decode.opc"
int dstr AU = op[1] & 0x0f;
if (trace)
{
printf (" dstr = 0x%x\n", dstr);
}
SYNTAX("CMPA %1, %0");
-#line 503 "msp430-decode.opc"
+#line 504 "msp430-decode.opc"
ID (MSO_cmp); SR (srcr); DR (dstr);
msp430->size = 20;
msp430->ofs_430x = 1;
op_semantics_14:
{
/** 0000 srcr 1110 dstr ADDA %1, %0 */
-#line 509 "msp430-decode.opc"
+#line 510 "msp430-decode.opc"
int srcr AU = op[0] & 0x0f;
-#line 509 "msp430-decode.opc"
+#line 510 "msp430-decode.opc"
int dstr AU = op[1] & 0x0f;
if (trace)
{
printf (" dstr = 0x%x\n", dstr);
}
SYNTAX("ADDA %1, %0");
-#line 509 "msp430-decode.opc"
+#line 510 "msp430-decode.opc"
ID (MSO_add); SR (srcr); DR (dstr);
msp430->size = 20;
msp430->ofs_430x = 1;
op_semantics_15:
{
/** 0000 srcr 1111 dstr SUBA %1, %0 */
-#line 515 "msp430-decode.opc"
+#line 516 "msp430-decode.opc"
int srcr AU = op[0] & 0x0f;
-#line 515 "msp430-decode.opc"
+#line 516 "msp430-decode.opc"
int dstr AU = op[1] & 0x0f;
if (trace)
{
printf (" dstr = 0x%x\n", dstr);
}
SYNTAX("SUBA %1, %0");
-#line 515 "msp430-decode.opc"
+#line 516 "msp430-decode.opc"
ID (MSO_sub); SR (srcr); DR (dstr);
msp430->size = 20;
msp430->ofs_430x = 1;
op_semantics_16:
{
/** 0000 bt01 010w dstr RRAM.A %c, %0 */
-#line 528 "msp430-decode.opc"
+#line 529 "msp430-decode.opc"
int bt AU = (op[0] >> 2) & 0x03;
-#line 528 "msp430-decode.opc"
+#line 529 "msp430-decode.opc"
int w AU = (op[1] >> 4) & 0x01;
-#line 528 "msp430-decode.opc"
+#line 529 "msp430-decode.opc"
int dstr AU = op[1] & 0x0f;
if (trace)
{
printf (" dstr = 0x%x\n", dstr);
}
SYNTAX("RRAM.A %c, %0");
-#line 528 "msp430-decode.opc"
+#line 529 "msp430-decode.opc"
ID (MSO_rra); DR (dstr); SR (dstr);
msp430->repeats = bt;
msp430->size = w ? 16 : 20;
op_semantics_17:
{
/** 0000 bt10 010w dstr RLAM.A %c, %0 */
-#line 535 "msp430-decode.opc"
+#line 536 "msp430-decode.opc"
int bt AU = (op[0] >> 2) & 0x03;
-#line 535 "msp430-decode.opc"
+#line 536 "msp430-decode.opc"
int w AU = (op[1] >> 4) & 0x01;
-#line 535 "msp430-decode.opc"
+#line 536 "msp430-decode.opc"
int dstr AU = op[1] & 0x0f;
if (trace)
{
printf (" dstr = 0x%x\n", dstr);
}
SYNTAX("RLAM.A %c, %0");
-#line 535 "msp430-decode.opc"
+#line 536 "msp430-decode.opc"
ID (MSO_add); DR (dstr); SR (dstr);
msp430->repeats = bt;
msp430->size = w ? 16 : 20;
op_semantics_18:
{
/** 0000 bt11 010w dstr RRUM.A %c, %0 */
-#line 542 "msp430-decode.opc"
+#line 543 "msp430-decode.opc"
int bt AU = (op[0] >> 2) & 0x03;
-#line 542 "msp430-decode.opc"
+#line 543 "msp430-decode.opc"
int w AU = (op[1] >> 4) & 0x01;
-#line 542 "msp430-decode.opc"
+#line 543 "msp430-decode.opc"
int dstr AU = op[1] & 0x0f;
if (trace)
{
printf (" dstr = 0x%x\n", dstr);
}
SYNTAX("RRUM.A %c, %0");
-#line 542 "msp430-decode.opc"
+#line 543 "msp430-decode.opc"
ID (MSO_rru); DR (dstr); SR (dstr);
msp430->repeats = bt;
msp430->size = w ? 16 : 20;
op_semantics_19:
{
/** 0001 00so c b ad dreg %S%b %1 */
-#line 395 "msp430-decode.opc"
+#line 396 "msp430-decode.opc"
int so AU = op[0] & 0x03;
-#line 395 "msp430-decode.opc"
+#line 396 "msp430-decode.opc"
int c AU = (op[1] >> 7) & 0x01;
-#line 395 "msp430-decode.opc"
+#line 396 "msp430-decode.opc"
int b AU = (op[1] >> 6) & 0x01;
-#line 395 "msp430-decode.opc"
+#line 396 "msp430-decode.opc"
int ad AU = (op[1] >> 4) & 0x03;
-#line 395 "msp430-decode.opc"
+#line 396 "msp430-decode.opc"
int dreg AU = op[1] & 0x0f;
if (trace)
{
printf (" dreg = 0x%x\n", dreg);
}
SYNTAX("%S%b %1");
-#line 395 "msp430-decode.opc"
+#line 396 "msp430-decode.opc"
ID (sopc_to_id (so,c)); ASX (dreg, ad, srxt_bits); ABW (al_bit, b);
op[0], op[1]);
}
SYNTAX("RETI");
-#line 549 "msp430-decode.opc"
+#line 550 "msp430-decode.opc"
ID (MSO_reti);
msp430->size = 20;
msp430->ofs_430x = 1;
case 0x7f:
{
/** 0001 0011 01as dstr CALLA %0 */
-#line 554 "msp430-decode.opc"
+#line 555 "msp430-decode.opc"
int as AU = (op[1] >> 4) & 0x03;
-#line 554 "msp430-decode.opc"
+#line 555 "msp430-decode.opc"
int dstr AU = op[1] & 0x0f;
if (trace)
{
printf (" dstr = 0x%x\n", dstr);
}
SYNTAX("CALLA %0");
-#line 554 "msp430-decode.opc"
+#line 555 "msp430-decode.opc"
ID (MSO_call); AS (dstr, as);
msp430->size = 20;
msp430->ofs_430x = 1;
case 0x8f:
{
/** 0001 0011 1000 extb CALLA %0 */
-#line 559 "msp430-decode.opc"
+#line 560 "msp430-decode.opc"
int extb AU = op[1] & 0x0f;
if (trace)
{
printf (" extb = 0x%x\n", extb);
}
SYNTAX("CALLA %0");
-#line 559 "msp430-decode.opc"
+#line 560 "msp430-decode.opc"
ID (MSO_call); SA (IMMU(2) | (extb << 16));
msp430->size = 20;
msp430->ofs_430x = 1;
case 0x9f:
{
/** 0001 0011 1001 extb CALLA %0 */
-#line 564 "msp430-decode.opc"
+#line 565 "msp430-decode.opc"
int extb AU = op[1] & 0x0f;
if (trace)
{
printf (" extb = 0x%x\n", extb);
}
SYNTAX("CALLA %0");
-#line 564 "msp430-decode.opc"
+#line 565 "msp430-decode.opc"
raddr = IMMU(2) | (extb << 16);
if (raddr & 0x80000)
raddr -= 0x100000;
case 0xbf:
{
/** 0001 0011 1011 extb CALLA %0 */
-#line 572 "msp430-decode.opc"
+#line 573 "msp430-decode.opc"
int extb AU = op[1] & 0x0f;
if (trace)
{
printf (" extb = 0x%x\n", extb);
}
SYNTAX("CALLA %0");
-#line 572 "msp430-decode.opc"
+#line 573 "msp430-decode.opc"
ID (MSO_call); SC (IMMU(2) | (extb << 16));
msp430->size = 20;
msp430->ofs_430x = 1;
op_semantics_20:
{
/** 0001 010w bits srcr PUSHM.A %0 */
-#line 577 "msp430-decode.opc"
+#line 578 "msp430-decode.opc"
int w AU = op[0] & 0x01;
-#line 577 "msp430-decode.opc"
+#line 578 "msp430-decode.opc"
int bits AU = (op[1] >> 4) & 0x0f;
-#line 577 "msp430-decode.opc"
+#line 578 "msp430-decode.opc"
int srcr AU = op[1] & 0x0f;
if (trace)
{
printf (" srcr = 0x%x\n", srcr);
}
SYNTAX("PUSHM.A %0");
-#line 577 "msp430-decode.opc"
+#line 578 "msp430-decode.opc"
ID (MSO_push); SR (srcr);
msp430->size = w ? 16 : 20;
msp430->repeats = bits;
op_semantics_21:
{
/** 0001 011w bits dstr POPM.A %0 */
-#line 583 "msp430-decode.opc"
+#line 584 "msp430-decode.opc"
int w AU = op[0] & 0x01;
-#line 583 "msp430-decode.opc"
+#line 584 "msp430-decode.opc"
int bits AU = (op[1] >> 4) & 0x0f;
-#line 583 "msp430-decode.opc"
+#line 584 "msp430-decode.opc"
int dstr AU = op[1] & 0x0f;
if (trace)
{
printf (" dstr = 0x%x\n", dstr);
}
SYNTAX("POPM.A %0");
-#line 583 "msp430-decode.opc"
+#line 584 "msp430-decode.opc"
ID (MSO_pop); DR (dstr);
msp430->size = w ? 16 : 20;
msp430->repeats = bits;
op_semantics_22:
{
/** 0001 1srx t l 00 dsxt 430x */
-#line 351 "msp430-decode.opc"
+#line 352 "msp430-decode.opc"
int srx AU = op[0] & 0x07;
-#line 351 "msp430-decode.opc"
+#line 352 "msp430-decode.opc"
int t AU = (op[1] >> 7) & 0x01;
-#line 351 "msp430-decode.opc"
+#line 352 "msp430-decode.opc"
int l AU = (op[1] >> 6) & 0x01;
-#line 351 "msp430-decode.opc"
+#line 352 "msp430-decode.opc"
int dsxt AU = op[1] & 0x0f;
if (trace)
{
printf (" dsxt = 0x%x\n", dsxt);
}
SYNTAX("430x");
-#line 351 "msp430-decode.opc"
+#line 352 "msp430-decode.opc"
al_bit = l;
srxt_bits = srx * 2 + t;
op_semantics_23:
{
/** 001jmp aa addrlsbs %J %1 */
-#line 425 "msp430-decode.opc"
+#line 426 "msp430-decode.opc"
int jmp AU = (op[0] >> 2) & 0x07;
-#line 425 "msp430-decode.opc"
+#line 426 "msp430-decode.opc"
int aa AU = op[0] & 0x03;
-#line 425 "msp430-decode.opc"
+#line 426 "msp430-decode.opc"
int addrlsbs AU = op[1];
if (trace)
{
printf (" addrlsbs = 0x%x\n", addrlsbs);
}
SYNTAX("%J %1");
-#line 425 "msp430-decode.opc"
+#line 426 "msp430-decode.opc"
raddr = (aa << 9) | (addrlsbs << 1);
if (raddr & 0x400)
op_semantics_24:
{
/** dopc sreg a b as dreg %D%b %1,%0 */
-#line 372 "msp430-decode.opc"
+#line 373 "msp430-decode.opc"
int dopc AU = (op[0] >> 4) & 0x0f;
-#line 372 "msp430-decode.opc"
+#line 373 "msp430-decode.opc"
int sreg AU = op[0] & 0x0f;
-#line 372 "msp430-decode.opc"
+#line 373 "msp430-decode.opc"
int a AU = (op[1] >> 7) & 0x01;
-#line 372 "msp430-decode.opc"
+#line 373 "msp430-decode.opc"
int b AU = (op[1] >> 6) & 0x01;
-#line 372 "msp430-decode.opc"
+#line 373 "msp430-decode.opc"
int as AU = (op[1] >> 4) & 0x03;
-#line 372 "msp430-decode.opc"
+#line 373 "msp430-decode.opc"
int dreg AU = op[1] & 0x0f;
if (trace)
{
printf (" dreg = 0x%x\n", dreg);
}
SYNTAX("%D%b %1,%0");
-#line 372 "msp430-decode.opc"
+#line 373 "msp430-decode.opc"
ID (dopc_to_id (dopc)); ASX (sreg, as, srxt_bits); ADX (dreg, a, dsxt_bits); ABW (al_bit, b);
if (a == 0 && as == 0)
}
break;
}
-#line 589 "msp430-decode.opc"
+#line 590 "msp430-decode.opc"
return msp430->n_bytes;
}
+/* DO NOT EDIT! -*- buffer-read-only: t -*- vi:set ro: */
#line 1 "rl78-decode.opc"
/* -*- c -*- */
/* Copyright (C) 2012-2018 Free Software Foundation, Inc.
#include <stdlib.h>
#include <string.h>
#include "ansidecl.h"
+#include "opintl.h"
#include "opcode/rl78.h"
static int trace = 0;
i -= 0x1000000;
break;
default:
- fprintf (stderr, "Programmer error: immediate() called with invalid byte count %d\n", bytes);
+ opcodes_error_handler
+ /* xgettext:c-format */
+ (_("internal error: immediate() called with invalid byte count %d"),
+ bytes);
abort();
}
return i;
op[0]);
}
SYNTAX("nop");
-#line 913 "rl78-decode.opc"
+#line 917 "rl78-decode.opc"
ID(nop);
/*----------------------------------------------------------------------*/
case 0x07:
{
/** 0000 0rw1 addw %0, %1 */
-#line 276 "rl78-decode.opc"
+#line 280 "rl78-decode.opc"
int rw AU = (op[0] >> 1) & 0x03;
if (trace)
{
printf (" rw = 0x%x\n", rw);
}
SYNTAX("addw %0, %1");
-#line 276 "rl78-decode.opc"
+#line 280 "rl78-decode.opc"
ID(add); W(); DR(AX); SRW(rw); Fzac;
}
op[0]);
}
SYNTAX("addw %0, %e!1");
-#line 267 "rl78-decode.opc"
+#line 271 "rl78-decode.opc"
ID(add); W(); DR(AX); SM(None, IMMU(2)); Fzac;
}
op[0]);
}
SYNTAX("addw %0, #%1");
-#line 273 "rl78-decode.opc"
+#line 277 "rl78-decode.opc"
ID(add); W(); DR(AX); SC(IMMU(2)); Fzac;
}
op[0]);
}
SYNTAX("addw %0, %1");
-#line 279 "rl78-decode.opc"
+#line 283 "rl78-decode.opc"
ID(add); W(); DR(AX); SM(None, SADDR); Fzac;
}
op[0]);
}
SYNTAX("xch a, x");
-#line 1236 "rl78-decode.opc"
+#line 1240 "rl78-decode.opc"
ID(xch); DR(A); SR(X);
/*----------------------------------------------------------------------*/
op[0]);
}
SYNTAX("mov %0, %e1");
-#line 680 "rl78-decode.opc"
+#line 684 "rl78-decode.opc"
ID(mov); DR(A); SM(B, IMMU(2));
}
op[0]);
}
SYNTAX("add %0, #%1");
-#line 230 "rl78-decode.opc"
+#line 234 "rl78-decode.opc"
ID(add); DM(None, SADDR); SC(IMMU(1)); Fzac;
/*----------------------------------------------------------------------*/
op[0]);
}
SYNTAX("add %0, %1");
-#line 224 "rl78-decode.opc"
+#line 228 "rl78-decode.opc"
ID(add); DR(A); SM(None, SADDR); Fzac;
}
op[0]);
}
SYNTAX("add %0, #%1");
-#line 218 "rl78-decode.opc"
+#line 222 "rl78-decode.opc"
ID(add); DR(A); SC(IMMU(1)); Fzac;
}
op[0]);
}
SYNTAX("add %0, %e1");
-#line 206 "rl78-decode.opc"
+#line 210 "rl78-decode.opc"
ID(add); DR(A); SM(HL, 0); Fzac;
}
op[0]);
}
SYNTAX("add %0, %ea1");
-#line 212 "rl78-decode.opc"
+#line 216 "rl78-decode.opc"
ID(add); DR(A); SM(HL, IMMU(1)); Fzac;
}
op[0]);
}
SYNTAX("add %0, %e!1");
-#line 203 "rl78-decode.opc"
+#line 207 "rl78-decode.opc"
ID(add); DR(A); SM(None, IMMU(2)); Fzac;
}
op[0]);
}
SYNTAX("addw %0, #%1");
-#line 282 "rl78-decode.opc"
+#line 286 "rl78-decode.opc"
ID(add); W(); DR(SP); SC(IMMU(1)); Fzac;
/*----------------------------------------------------------------------*/
op[0]);
}
SYNTAX("es:");
-#line 195 "rl78-decode.opc"
+#line 199 "rl78-decode.opc"
DE(); SE();
op ++;
pc ++;
case 0x16:
{
/** 0001 0ra0 movw %0, %1 */
-#line 861 "rl78-decode.opc"
+#line 865 "rl78-decode.opc"
int ra AU = (op[0] >> 1) & 0x03;
if (trace)
{
printf (" ra = 0x%x\n", ra);
}
SYNTAX("movw %0, %1");
-#line 861 "rl78-decode.opc"
+#line 865 "rl78-decode.opc"
ID(mov); W(); DRW(ra); SR(AX);
}
case 0x17:
{
/** 0001 0ra1 movw %0, %1 */
-#line 858 "rl78-decode.opc"
+#line 862 "rl78-decode.opc"
int ra AU = (op[0] >> 1) & 0x03;
if (trace)
{
printf (" ra = 0x%x\n", ra);
}
SYNTAX("movw %0, %1");
-#line 858 "rl78-decode.opc"
+#line 862 "rl78-decode.opc"
ID(mov); W(); DR(AX); SRW(ra);
}
op[0]);
}
SYNTAX("mov %e0, %1");
-#line 731 "rl78-decode.opc"
+#line 735 "rl78-decode.opc"
ID(mov); DM(B, IMMU(2)); SR(A);
}
op[0]);
}
SYNTAX("mov %e0, #%1");
-#line 728 "rl78-decode.opc"
+#line 732 "rl78-decode.opc"
ID(mov); DM(B, IMMU(2)); SC(IMMU(1));
}
op[0]);
}
SYNTAX("addc %0, #%1");
-#line 262 "rl78-decode.opc"
+#line 266 "rl78-decode.opc"
ID(addc); DM(None, SADDR); SC(IMMU(1)); Fzac;
/*----------------------------------------------------------------------*/
op[0]);
}
SYNTAX("addc %0, %1");
-#line 259 "rl78-decode.opc"
+#line 263 "rl78-decode.opc"
ID(addc); DR(A); SM(None, SADDR); Fzac;
}
op[0]);
}
SYNTAX("addc %0, #%1");
-#line 250 "rl78-decode.opc"
+#line 254 "rl78-decode.opc"
ID(addc); DR(A); SC(IMMU(1)); Fzac;
}
op[0]);
}
SYNTAX("addc %0, %e1");
-#line 238 "rl78-decode.opc"
+#line 242 "rl78-decode.opc"
ID(addc); DR(A); SM(HL, 0); Fzac;
}
op[0]);
}
SYNTAX("addc %0, %ea1");
-#line 247 "rl78-decode.opc"
+#line 251 "rl78-decode.opc"
ID(addc); DR(A); SM(HL, IMMU(1)); Fzac;
}
op[0]);
}
SYNTAX("addc %0, %e!1");
-#line 235 "rl78-decode.opc"
+#line 239 "rl78-decode.opc"
ID(addc); DR(A); SM(None, IMMU(2)); Fzac;
}
op[0]);
}
SYNTAX("subw %0, #%1");
-#line 1200 "rl78-decode.opc"
+#line 1204 "rl78-decode.opc"
ID(sub); W(); DR(SP); SC(IMMU(1)); Fzac;
/*----------------------------------------------------------------------*/
case 0x27:
{
/** 0010 0rw1 subw %0, %1 */
-#line 1194 "rl78-decode.opc"
+#line 1198 "rl78-decode.opc"
int rw AU = (op[0] >> 1) & 0x03;
if (trace)
{
printf (" rw = 0x%x\n", rw);
}
SYNTAX("subw %0, %1");
-#line 1194 "rl78-decode.opc"
+#line 1198 "rl78-decode.opc"
ID(sub); W(); DR(AX); SRW(rw); Fzac;
}
op[0]);
}
SYNTAX("subw %0, %e!1");
-#line 1185 "rl78-decode.opc"
+#line 1189 "rl78-decode.opc"
ID(sub); W(); DR(AX); SM(None, IMMU(2)); Fzac;
}
op[0]);
}
SYNTAX("subw %0, #%1");
-#line 1191 "rl78-decode.opc"
+#line 1195 "rl78-decode.opc"
ID(sub); W(); DR(AX); SC(IMMU(2)); Fzac;
}
op[0]);
}
SYNTAX("subw %0, %1");
-#line 1197 "rl78-decode.opc"
+#line 1201 "rl78-decode.opc"
ID(sub); W(); DR(AX); SM(None, SADDR); Fzac;
}
op[0]);
}
SYNTAX("mov %e0, %1");
-#line 743 "rl78-decode.opc"
+#line 747 "rl78-decode.opc"
ID(mov); DM(C, IMMU(2)); SR(A);
}
op[0]);
}
SYNTAX("mov %0, %e1");
-#line 686 "rl78-decode.opc"
+#line 690 "rl78-decode.opc"
ID(mov); DR(A); SM(C, IMMU(2));
}
op[0]);
}
SYNTAX("sub %0, #%1");
-#line 1148 "rl78-decode.opc"
+#line 1152 "rl78-decode.opc"
ID(sub); DM(None, SADDR); SC(IMMU(1)); Fzac;
/*----------------------------------------------------------------------*/
op[0]);
}
SYNTAX("sub %0, %1");
-#line 1142 "rl78-decode.opc"
+#line 1146 "rl78-decode.opc"
ID(sub); DR(A); SM(None, SADDR); Fzac;
}
op[0]);
}
SYNTAX("sub %0, #%1");
-#line 1136 "rl78-decode.opc"
+#line 1140 "rl78-decode.opc"
ID(sub); DR(A); SC(IMMU(1)); Fzac;
}
op[0]);
}
SYNTAX("sub %0, %e1");
-#line 1124 "rl78-decode.opc"
+#line 1128 "rl78-decode.opc"
ID(sub); DR(A); SM(HL, 0); Fzac;
}
op[0]);
}
SYNTAX("sub %0, %ea1");
-#line 1130 "rl78-decode.opc"
+#line 1134 "rl78-decode.opc"
ID(sub); DR(A); SM(HL, IMMU(1)); Fzac;
}
op[0]);
}
SYNTAX("sub %0, %e!1");
-#line 1121 "rl78-decode.opc"
+#line 1125 "rl78-decode.opc"
ID(sub); DR(A); SM(None, IMMU(2)); Fzac;
}
case 0x36:
{
/** 0011 0rg0 movw %0, #%1 */
-#line 855 "rl78-decode.opc"
+#line 859 "rl78-decode.opc"
int rg AU = (op[0] >> 1) & 0x03;
if (trace)
{
printf (" rg = 0x%x\n", rg);
}
SYNTAX("movw %0, #%1");
-#line 855 "rl78-decode.opc"
+#line 859 "rl78-decode.opc"
ID(mov); W(); DRW(rg); SC(IMMU(2));
}
case 0x00:
{
/** 0011 0001 0bit 0000 btclr %s1, $%a0 */
-#line 418 "rl78-decode.opc"
+#line 422 "rl78-decode.opc"
int bit AU = (op[1] >> 4) & 0x07;
if (trace)
{
printf (" bit = 0x%x\n", bit);
}
SYNTAX("btclr %s1, $%a0");
-#line 418 "rl78-decode.opc"
+#line 422 "rl78-decode.opc"
ID(branch_cond_clear); SM(None, SADDR); SB(bit); DC(pc+IMMS(1)+4); COND(T);
/*----------------------------------------------------------------------*/
case 0x01:
{
/** 0011 0001 0bit 0001 btclr %1, $%a0 */
-#line 412 "rl78-decode.opc"
+#line 416 "rl78-decode.opc"
int bit AU = (op[1] >> 4) & 0x07;
if (trace)
{
printf (" bit = 0x%x\n", bit);
}
SYNTAX("btclr %1, $%a0");
-#line 412 "rl78-decode.opc"
+#line 416 "rl78-decode.opc"
ID(branch_cond_clear); DC(pc+IMMS(1)+3); SR(A); SB(bit); COND(T);
}
case 0x02:
{
/** 0011 0001 0bit 0010 bt %s1, $%a0 */
-#line 404 "rl78-decode.opc"
+#line 408 "rl78-decode.opc"
int bit AU = (op[1] >> 4) & 0x07;
if (trace)
{
printf (" bit = 0x%x\n", bit);
}
SYNTAX("bt %s1, $%a0");
-#line 404 "rl78-decode.opc"
+#line 408 "rl78-decode.opc"
ID(branch_cond); SM(None, SADDR); SB(bit); DC(pc+IMMS(1)+4); COND(T);
/*----------------------------------------------------------------------*/
case 0x03:
{
/** 0011 0001 0bit 0011 bt %1, $%a0 */
-#line 398 "rl78-decode.opc"
+#line 402 "rl78-decode.opc"
int bit AU = (op[1] >> 4) & 0x07;
if (trace)
{
printf (" bit = 0x%x\n", bit);
}
SYNTAX("bt %1, $%a0");
-#line 398 "rl78-decode.opc"
+#line 402 "rl78-decode.opc"
ID(branch_cond); DC(pc+IMMS(1)+3); SR(A); SB(bit); COND(T);
}
case 0x04:
{
/** 0011 0001 0bit 0100 bf %s1, $%a0 */
-#line 365 "rl78-decode.opc"
+#line 369 "rl78-decode.opc"
int bit AU = (op[1] >> 4) & 0x07;
if (trace)
{
printf (" bit = 0x%x\n", bit);
}
SYNTAX("bf %s1, $%a0");
-#line 365 "rl78-decode.opc"
+#line 369 "rl78-decode.opc"
ID(branch_cond); SM(None, SADDR); SB(bit); DC(pc+IMMS(1)+4); COND(F);
/*----------------------------------------------------------------------*/
case 0x05:
{
/** 0011 0001 0bit 0101 bf %1, $%a0 */
-#line 359 "rl78-decode.opc"
+#line 363 "rl78-decode.opc"
int bit AU = (op[1] >> 4) & 0x07;
if (trace)
{
printf (" bit = 0x%x\n", bit);
}
SYNTAX("bf %1, $%a0");
-#line 359 "rl78-decode.opc"
+#line 363 "rl78-decode.opc"
ID(branch_cond); DC(pc+IMMS(1)+3); SR(A); SB(bit); COND(F);
}
case 0x07:
{
/** 0011 0001 0cnt 0111 shl %0, %1 */
-#line 1077 "rl78-decode.opc"
+#line 1081 "rl78-decode.opc"
int cnt AU = (op[1] >> 4) & 0x07;
if (trace)
{
printf (" cnt = 0x%x\n", cnt);
}
SYNTAX("shl %0, %1");
-#line 1077 "rl78-decode.opc"
+#line 1081 "rl78-decode.opc"
ID(shl); DR(C); SC(cnt);
}
case 0x08:
{
/** 0011 0001 0cnt 1000 shl %0, %1 */
-#line 1074 "rl78-decode.opc"
+#line 1078 "rl78-decode.opc"
int cnt AU = (op[1] >> 4) & 0x07;
if (trace)
{
printf (" cnt = 0x%x\n", cnt);
}
SYNTAX("shl %0, %1");
-#line 1074 "rl78-decode.opc"
+#line 1078 "rl78-decode.opc"
ID(shl); DR(B); SC(cnt);
}
case 0x09:
{
/** 0011 0001 0cnt 1001 shl %0, %1 */
-#line 1071 "rl78-decode.opc"
+#line 1075 "rl78-decode.opc"
int cnt AU = (op[1] >> 4) & 0x07;
if (trace)
{
printf (" cnt = 0x%x\n", cnt);
}
SYNTAX("shl %0, %1");
-#line 1071 "rl78-decode.opc"
+#line 1075 "rl78-decode.opc"
ID(shl); DR(A); SC(cnt);
}
case 0x0a:
{
/** 0011 0001 0cnt 1010 shr %0, %1 */
-#line 1088 "rl78-decode.opc"
+#line 1092 "rl78-decode.opc"
int cnt AU = (op[1] >> 4) & 0x07;
if (trace)
{
printf (" cnt = 0x%x\n", cnt);
}
SYNTAX("shr %0, %1");
-#line 1088 "rl78-decode.opc"
+#line 1092 "rl78-decode.opc"
ID(shr); DR(A); SC(cnt);
}
case 0x0b:
{
/** 0011 0001 0cnt 1011 sar %0, %1 */
-#line 1035 "rl78-decode.opc"
+#line 1039 "rl78-decode.opc"
int cnt AU = (op[1] >> 4) & 0x07;
if (trace)
{
printf (" cnt = 0x%x\n", cnt);
}
SYNTAX("sar %0, %1");
-#line 1035 "rl78-decode.opc"
+#line 1039 "rl78-decode.opc"
ID(sar); DR(A); SC(cnt);
}
case 0x8c:
{
/** 0011 0001 wcnt 1100 shlw %0, %1 */
-#line 1083 "rl78-decode.opc"
+#line 1087 "rl78-decode.opc"
int wcnt AU = (op[1] >> 4) & 0x0f;
if (trace)
{
printf (" wcnt = 0x%x\n", wcnt);
}
SYNTAX("shlw %0, %1");
-#line 1083 "rl78-decode.opc"
+#line 1087 "rl78-decode.opc"
ID(shl); W(); DR(BC); SC(wcnt);
/*----------------------------------------------------------------------*/
case 0x8d:
{
/** 0011 0001 wcnt 1101 shlw %0, %1 */
-#line 1080 "rl78-decode.opc"
+#line 1084 "rl78-decode.opc"
int wcnt AU = (op[1] >> 4) & 0x0f;
if (trace)
{
printf (" wcnt = 0x%x\n", wcnt);
}
SYNTAX("shlw %0, %1");
-#line 1080 "rl78-decode.opc"
+#line 1084 "rl78-decode.opc"
ID(shl); W(); DR(AX); SC(wcnt);
}
case 0x8e:
{
/** 0011 0001 wcnt 1110 shrw %0, %1 */
-#line 1091 "rl78-decode.opc"
+#line 1095 "rl78-decode.opc"
int wcnt AU = (op[1] >> 4) & 0x0f;
if (trace)
{
printf (" wcnt = 0x%x\n", wcnt);
}
SYNTAX("shrw %0, %1");
-#line 1091 "rl78-decode.opc"
+#line 1095 "rl78-decode.opc"
ID(shr); W(); DR(AX); SC(wcnt);
/*----------------------------------------------------------------------*/
case 0x8f:
{
/** 0011 0001 wcnt 1111 sarw %0, %1 */
-#line 1038 "rl78-decode.opc"
+#line 1042 "rl78-decode.opc"
int wcnt AU = (op[1] >> 4) & 0x0f;
if (trace)
{
printf (" wcnt = 0x%x\n", wcnt);
}
SYNTAX("sarw %0, %1");
-#line 1038 "rl78-decode.opc"
+#line 1042 "rl78-decode.opc"
ID(sar); W(); DR(AX); SC(wcnt);
/*----------------------------------------------------------------------*/
case 0x80:
{
/** 0011 0001 1bit 0000 btclr %s1, $%a0 */
-#line 415 "rl78-decode.opc"
+#line 419 "rl78-decode.opc"
int bit AU = (op[1] >> 4) & 0x07;
if (trace)
{
printf (" bit = 0x%x\n", bit);
}
SYNTAX("btclr %s1, $%a0");
-#line 415 "rl78-decode.opc"
+#line 419 "rl78-decode.opc"
ID(branch_cond_clear); SM(None, SFR); SB(bit); DC(pc+IMMS(1)+4); COND(T);
}
case 0x81:
{
/** 0011 0001 1bit 0001 btclr %e1, $%a0 */
-#line 409 "rl78-decode.opc"
+#line 413 "rl78-decode.opc"
int bit AU = (op[1] >> 4) & 0x07;
if (trace)
{
printf (" bit = 0x%x\n", bit);
}
SYNTAX("btclr %e1, $%a0");
-#line 409 "rl78-decode.opc"
+#line 413 "rl78-decode.opc"
ID(branch_cond_clear); DC(pc+IMMS(1)+3); SM(HL,0); SB(bit); COND(T);
}
case 0x82:
{
/** 0011 0001 1bit 0010 bt %s1, $%a0 */
-#line 401 "rl78-decode.opc"
+#line 405 "rl78-decode.opc"
int bit AU = (op[1] >> 4) & 0x07;
if (trace)
{
printf (" bit = 0x%x\n", bit);
}
SYNTAX("bt %s1, $%a0");
-#line 401 "rl78-decode.opc"
+#line 405 "rl78-decode.opc"
ID(branch_cond); SM(None, SFR); SB(bit); DC(pc+IMMS(1)+4); COND(T);
}
case 0x83:
{
/** 0011 0001 1bit 0011 bt %e1, $%a0 */
-#line 395 "rl78-decode.opc"
+#line 399 "rl78-decode.opc"
int bit AU = (op[1] >> 4) & 0x07;
if (trace)
{
printf (" bit = 0x%x\n", bit);
}
SYNTAX("bt %e1, $%a0");
-#line 395 "rl78-decode.opc"
+#line 399 "rl78-decode.opc"
ID(branch_cond); DC(pc+IMMS(1)+3); SM(HL,0); SB(bit); COND(T);
}
case 0x84:
{
/** 0011 0001 1bit 0100 bf %s1, $%a0 */
-#line 362 "rl78-decode.opc"
+#line 366 "rl78-decode.opc"
int bit AU = (op[1] >> 4) & 0x07;
if (trace)
{
printf (" bit = 0x%x\n", bit);
}
SYNTAX("bf %s1, $%a0");
-#line 362 "rl78-decode.opc"
+#line 366 "rl78-decode.opc"
ID(branch_cond); SM(None, SFR); SB(bit); DC(pc+IMMS(1)+4); COND(F);
}
case 0x85:
{
/** 0011 0001 1bit 0101 bf %e1, $%a0 */
-#line 356 "rl78-decode.opc"
+#line 360 "rl78-decode.opc"
int bit AU = (op[1] >> 4) & 0x07;
if (trace)
{
printf (" bit = 0x%x\n", bit);
}
SYNTAX("bf %e1, $%a0");
-#line 356 "rl78-decode.opc"
+#line 360 "rl78-decode.opc"
ID(branch_cond); DC(pc+IMMS(1)+3); SM(HL,0); SB(bit); COND(F);
}
case 0x37:
{
/** 0011 0ra1 xchw %0, %1 */
-#line 1241 "rl78-decode.opc"
+#line 1245 "rl78-decode.opc"
int ra AU = (op[0] >> 1) & 0x03;
if (trace)
{
printf (" ra = 0x%x\n", ra);
}
SYNTAX("xchw %0, %1");
-#line 1241 "rl78-decode.opc"
+#line 1245 "rl78-decode.opc"
ID(xch); W(); DR(AX); SRW(ra);
/*----------------------------------------------------------------------*/
op[0]);
}
SYNTAX("mov %e0, #%1");
-#line 740 "rl78-decode.opc"
+#line 744 "rl78-decode.opc"
ID(mov); DM(C, IMMU(2)); SC(IMMU(1));
}
op[0]);
}
SYNTAX("mov %e0, #%1");
-#line 734 "rl78-decode.opc"
+#line 738 "rl78-decode.opc"
ID(mov); DM(BC, IMMU(2)); SC(IMMU(1));
}
op[0]);
}
SYNTAX("subc %0, #%1");
-#line 1180 "rl78-decode.opc"
+#line 1184 "rl78-decode.opc"
ID(subc); DM(None, SADDR); SC(IMMU(1)); Fzac;
/*----------------------------------------------------------------------*/
op[0]);
}
SYNTAX("subc %0, %1");
-#line 1177 "rl78-decode.opc"
+#line 1181 "rl78-decode.opc"
ID(subc); DR(A); SM(None, SADDR); Fzac;
}
op[0]);
}
SYNTAX("subc %0, #%1");
-#line 1168 "rl78-decode.opc"
+#line 1172 "rl78-decode.opc"
ID(subc); DR(A); SC(IMMU(1)); Fzac;
}
op[0]);
}
SYNTAX("subc %0, %e1");
-#line 1156 "rl78-decode.opc"
+#line 1160 "rl78-decode.opc"
ID(subc); DR(A); SM(HL, 0); Fzac;
}
op[0]);
}
SYNTAX("subc %0, %ea1");
-#line 1165 "rl78-decode.opc"
+#line 1169 "rl78-decode.opc"
ID(subc); DR(A); SM(HL, IMMU(1)); Fzac;
}
op[0]);
}
SYNTAX("subc %0, %e!1");
-#line 1153 "rl78-decode.opc"
+#line 1157 "rl78-decode.opc"
ID(subc); DR(A); SM(None, IMMU(2)); Fzac;
}
op[0]);
}
SYNTAX("cmp %e!0, #%1");
-#line 482 "rl78-decode.opc"
+#line 486 "rl78-decode.opc"
ID(cmp); DM(None, IMMU(2)); SC(IMMU(1)); Fzac;
}
op[0]);
}
SYNTAX("mov %0, #%1");
-#line 719 "rl78-decode.opc"
+#line 723 "rl78-decode.opc"
ID(mov); DR(ES); SC(IMMU(1));
}
op[0]);
}
SYNTAX("cmpw %0, %e!1");
-#line 533 "rl78-decode.opc"
+#line 537 "rl78-decode.opc"
ID(cmp); W(); DR(AX); SM(None, IMMU(2)); Fzac;
}
case 0x47:
{
/** 0100 0ra1 cmpw %0, %1 */
-#line 542 "rl78-decode.opc"
+#line 546 "rl78-decode.opc"
int ra AU = (op[0] >> 1) & 0x03;
if (trace)
{
printf (" ra = 0x%x\n", ra);
}
SYNTAX("cmpw %0, %1");
-#line 542 "rl78-decode.opc"
+#line 546 "rl78-decode.opc"
ID(cmp); W(); DR(AX); SRW(ra); Fzac;
}
op[0]);
}
SYNTAX("cmpw %0, #%1");
-#line 539 "rl78-decode.opc"
+#line 543 "rl78-decode.opc"
ID(cmp); W(); DR(AX); SC(IMMU(2)); Fzac;
}
op[0]);
}
SYNTAX("cmpw %0, %1");
-#line 545 "rl78-decode.opc"
+#line 549 "rl78-decode.opc"
ID(cmp); W(); DR(AX); SM(None, SADDR); Fzac;
/*----------------------------------------------------------------------*/
op[0]);
}
SYNTAX("mov %e0, %1");
-#line 737 "rl78-decode.opc"
+#line 741 "rl78-decode.opc"
ID(mov); DM(BC, IMMU(2)); SR(A);
}
op[0]);
}
SYNTAX("mov %0, %e1");
-#line 683 "rl78-decode.opc"
+#line 687 "rl78-decode.opc"
ID(mov); DR(A); SM(BC, IMMU(2));
}
op[0]);
}
SYNTAX("cmp %0, #%1");
-#line 485 "rl78-decode.opc"
+#line 489 "rl78-decode.opc"
ID(cmp); DM(None, SADDR); SC(IMMU(1)); Fzac;
}
op[0]);
}
SYNTAX("cmp %0, %1");
-#line 512 "rl78-decode.opc"
+#line 516 "rl78-decode.opc"
ID(cmp); DR(A); SM(None, SADDR); Fzac;
/*----------------------------------------------------------------------*/
op[0]);
}
SYNTAX("cmp %0, #%1");
-#line 503 "rl78-decode.opc"
+#line 507 "rl78-decode.opc"
ID(cmp); DR(A); SC(IMMU(1)); Fzac;
}
op[0]);
}
SYNTAX("cmp %0, %e1");
-#line 491 "rl78-decode.opc"
+#line 495 "rl78-decode.opc"
ID(cmp); DR(A); SM(HL, 0); Fzac;
}
op[0]);
}
SYNTAX("cmp %0, %ea1");
-#line 500 "rl78-decode.opc"
+#line 504 "rl78-decode.opc"
ID(cmp); DR(A); SM(HL, IMMU(1)); Fzac;
}
op[0]);
}
SYNTAX("cmp %0, %e!1");
-#line 488 "rl78-decode.opc"
+#line 492 "rl78-decode.opc"
ID(cmp); DR(A); SM(None, IMMU(2)); Fzac;
}
case 0x57:
{
/** 0101 0reg mov %0, #%1 */
-#line 671 "rl78-decode.opc"
+#line 675 "rl78-decode.opc"
int reg AU = op[0] & 0x07;
if (trace)
{
printf (" reg = 0x%x\n", reg);
}
SYNTAX("mov %0, #%1");
-#line 671 "rl78-decode.opc"
+#line 675 "rl78-decode.opc"
ID(mov); DRB(reg); SC(IMMU(1));
}
op[0]);
}
SYNTAX("movw %e0, %1");
-#line 873 "rl78-decode.opc"
+#line 877 "rl78-decode.opc"
ID(mov); W(); DM(B, IMMU(2)); SR(AX);
}
op[0]);
}
SYNTAX("movw %0, %e1");
-#line 864 "rl78-decode.opc"
+#line 868 "rl78-decode.opc"
ID(mov); W(); DR(AX); SM(B, IMMU(2));
}
op[0]);
}
SYNTAX("and %0, #%1");
-#line 314 "rl78-decode.opc"
+#line 318 "rl78-decode.opc"
ID(and); DM(None, SADDR); SC(IMMU(1)); Fz;
/*----------------------------------------------------------------------*/
op[0]);
}
SYNTAX("and %0, %1");
-#line 311 "rl78-decode.opc"
+#line 315 "rl78-decode.opc"
ID(and); DR(A); SM(None, SADDR); Fz;
}
op[0]);
}
SYNTAX("and %0, #%1");
-#line 302 "rl78-decode.opc"
+#line 306 "rl78-decode.opc"
ID(and); DR(A); SC(IMMU(1)); Fz;
}
op[0]);
}
SYNTAX("and %0, %e1");
-#line 290 "rl78-decode.opc"
+#line 294 "rl78-decode.opc"
ID(and); DR(A); SM(HL, 0); Fz;
}
op[0]);
}
SYNTAX("and %0, %ea1");
-#line 296 "rl78-decode.opc"
+#line 300 "rl78-decode.opc"
ID(and); DR(A); SM(HL, IMMU(1)); Fz;
}
op[0]);
}
SYNTAX("and %0, %e!1");
-#line 287 "rl78-decode.opc"
+#line 291 "rl78-decode.opc"
ID(and); DR(A); SM(None, IMMU(2)); Fz;
}
case 0x67:
{
/** 0110 0rba mov %0, %1 */
-#line 674 "rl78-decode.opc"
+#line 678 "rl78-decode.opc"
int rba AU = op[0] & 0x07;
if (trace)
{
printf (" rba = 0x%x\n", rba);
}
SYNTAX("mov %0, %1");
-#line 674 "rl78-decode.opc"
+#line 678 "rl78-decode.opc"
ID(mov); DR(A); SRB(rba);
}
case 0x07:
{
/** 0110 0001 0000 0reg add %0, %1 */
-#line 227 "rl78-decode.opc"
+#line 231 "rl78-decode.opc"
int reg AU = op[1] & 0x07;
if (trace)
{
printf (" reg = 0x%x\n", reg);
}
SYNTAX("add %0, %1");
-#line 227 "rl78-decode.opc"
+#line 231 "rl78-decode.opc"
ID(add); DRB(reg); SR(A); Fzac;
}
case 0x0f:
{
/** 0110 0001 0000 1rba add %0, %1 */
-#line 221 "rl78-decode.opc"
+#line 225 "rl78-decode.opc"
int rba AU = op[1] & 0x07;
if (trace)
{
printf (" rba = 0x%x\n", rba);
}
SYNTAX("add %0, %1");
-#line 221 "rl78-decode.opc"
+#line 225 "rl78-decode.opc"
ID(add); DR(A); SRB(rba); Fzac;
}
op[0], op[1]);
}
SYNTAX("addw %0, %ea1");
-#line 270 "rl78-decode.opc"
+#line 274 "rl78-decode.opc"
ID(add); W(); DR(AX); SM(HL, IMMU(1)); Fzac;
}
case 0x17:
{
/** 0110 0001 0001 0reg addc %0, %1 */
-#line 256 "rl78-decode.opc"
+#line 260 "rl78-decode.opc"
int reg AU = op[1] & 0x07;
if (trace)
{
printf (" reg = 0x%x\n", reg);
}
SYNTAX("addc %0, %1");
-#line 256 "rl78-decode.opc"
+#line 260 "rl78-decode.opc"
ID(addc); DRB(reg); SR(A); Fzac;
}
case 0x1f:
{
/** 0110 0001 0001 1rba addc %0, %1 */
-#line 253 "rl78-decode.opc"
+#line 257 "rl78-decode.opc"
int rba AU = op[1] & 0x07;
if (trace)
{
printf (" rba = 0x%x\n", rba);
}
SYNTAX("addc %0, %1");
-#line 253 "rl78-decode.opc"
+#line 257 "rl78-decode.opc"
ID(addc); DR(A); SRB(rba); Fzac;
}
case 0x27:
{
/** 0110 0001 0010 0reg sub %0, %1 */
-#line 1145 "rl78-decode.opc"
+#line 1149 "rl78-decode.opc"
int reg AU = op[1] & 0x07;
if (trace)
{
printf (" reg = 0x%x\n", reg);
}
SYNTAX("sub %0, %1");
-#line 1145 "rl78-decode.opc"
+#line 1149 "rl78-decode.opc"
ID(sub); DRB(reg); SR(A); Fzac;
}
case 0x2f:
{
/** 0110 0001 0010 1rba sub %0, %1 */
-#line 1139 "rl78-decode.opc"
+#line 1143 "rl78-decode.opc"
int rba AU = op[1] & 0x07;
if (trace)
{
printf (" rba = 0x%x\n", rba);
}
SYNTAX("sub %0, %1");
-#line 1139 "rl78-decode.opc"
+#line 1143 "rl78-decode.opc"
ID(sub); DR(A); SRB(rba); Fzac;
}
op[0], op[1]);
}
SYNTAX("subw %0, %ea1");
-#line 1188 "rl78-decode.opc"
+#line 1192 "rl78-decode.opc"
ID(sub); W(); DR(AX); SM(HL, IMMU(1)); Fzac;
}
case 0x37:
{
/** 0110 0001 0011 0reg subc %0, %1 */
-#line 1174 "rl78-decode.opc"
+#line 1178 "rl78-decode.opc"
int reg AU = op[1] & 0x07;
if (trace)
{
printf (" reg = 0x%x\n", reg);
}
SYNTAX("subc %0, %1");
-#line 1174 "rl78-decode.opc"
+#line 1178 "rl78-decode.opc"
ID(subc); DRB(reg); SR(A); Fzac;
}
case 0x3f:
{
/** 0110 0001 0011 1rba subc %0, %1 */
-#line 1171 "rl78-decode.opc"
+#line 1175 "rl78-decode.opc"
int rba AU = op[1] & 0x07;
if (trace)
{
printf (" rba = 0x%x\n", rba);
}
SYNTAX("subc %0, %1");
-#line 1171 "rl78-decode.opc"
+#line 1175 "rl78-decode.opc"
ID(subc); DR(A); SRB(rba); Fzac;
}
case 0x47:
{
/** 0110 0001 0100 0reg cmp %0, %1 */
-#line 509 "rl78-decode.opc"
+#line 513 "rl78-decode.opc"
int reg AU = op[1] & 0x07;
if (trace)
{
printf (" reg = 0x%x\n", reg);
}
SYNTAX("cmp %0, %1");
-#line 509 "rl78-decode.opc"
+#line 513 "rl78-decode.opc"
ID(cmp); DRB(reg); SR(A); Fzac;
}
case 0x4f:
{
/** 0110 0001 0100 1rba cmp %0, %1 */
-#line 506 "rl78-decode.opc"
+#line 510 "rl78-decode.opc"
int rba AU = op[1] & 0x07;
if (trace)
{
printf (" rba = 0x%x\n", rba);
}
SYNTAX("cmp %0, %1");
-#line 506 "rl78-decode.opc"
+#line 510 "rl78-decode.opc"
ID(cmp); DR(A); SRB(rba); Fzac;
}
op[0], op[1]);
}
SYNTAX("cmpw %0, %ea1");
-#line 536 "rl78-decode.opc"
+#line 540 "rl78-decode.opc"
ID(cmp); W(); DR(AX); SM(HL, IMMU(1)); Fzac;
}
case 0x57:
{
/** 0110 0001 0101 0reg and %0, %1 */
-#line 308 "rl78-decode.opc"
+#line 312 "rl78-decode.opc"
int reg AU = op[1] & 0x07;
if (trace)
{
printf (" reg = 0x%x\n", reg);
}
SYNTAX("and %0, %1");
-#line 308 "rl78-decode.opc"
+#line 312 "rl78-decode.opc"
ID(and); DRB(reg); SR(A); Fz;
}
case 0x5f:
{
/** 0110 0001 0101 1rba and %0, %1 */
-#line 305 "rl78-decode.opc"
+#line 309 "rl78-decode.opc"
int rba AU = op[1] & 0x07;
if (trace)
{
printf (" rba = 0x%x\n", rba);
}
SYNTAX("and %0, %1");
-#line 305 "rl78-decode.opc"
+#line 309 "rl78-decode.opc"
ID(and); DR(A); SRB(rba); Fz;
}
op[0], op[1]);
}
SYNTAX("inc %ea0");
-#line 586 "rl78-decode.opc"
+#line 590 "rl78-decode.opc"
ID(add); DM(HL, IMMU(1)); SC(1); Fza;
}
case 0x67:
{
/** 0110 0001 0110 0reg or %0, %1 */
-#line 963 "rl78-decode.opc"
+#line 967 "rl78-decode.opc"
int reg AU = op[1] & 0x07;
if (trace)
{
printf (" reg = 0x%x\n", reg);
}
SYNTAX("or %0, %1");
-#line 963 "rl78-decode.opc"
+#line 967 "rl78-decode.opc"
ID(or); DRB(reg); SR(A); Fz;
}
case 0x6f:
{
/** 0110 0001 0110 1rba or %0, %1 */
-#line 960 "rl78-decode.opc"
+#line 964 "rl78-decode.opc"
int rba AU = op[1] & 0x07;
if (trace)
{
printf (" rba = 0x%x\n", rba);
}
SYNTAX("or %0, %1");
-#line 960 "rl78-decode.opc"
+#line 964 "rl78-decode.opc"
ID(or); DR(A); SRB(rba); Fz;
}
op[0], op[1]);
}
SYNTAX("dec %ea0");
-#line 553 "rl78-decode.opc"
+#line 557 "rl78-decode.opc"
ID(sub); DM(HL, IMMU(1)); SC(1); Fza;
}
case 0x77:
{
/** 0110 0001 0111 0reg xor %0, %1 */
-#line 1267 "rl78-decode.opc"
+#line 1271 "rl78-decode.opc"
int reg AU = op[1] & 0x07;
if (trace)
{
printf (" reg = 0x%x\n", reg);
}
SYNTAX("xor %0, %1");
-#line 1267 "rl78-decode.opc"
+#line 1271 "rl78-decode.opc"
ID(xor); DRB(reg); SR(A); Fz;
}
case 0x7f:
{
/** 0110 0001 0111 1rba xor %0, %1 */
-#line 1264 "rl78-decode.opc"
+#line 1268 "rl78-decode.opc"
int rba AU = op[1] & 0x07;
if (trace)
{
printf (" rba = 0x%x\n", rba);
}
SYNTAX("xor %0, %1");
-#line 1264 "rl78-decode.opc"
+#line 1268 "rl78-decode.opc"
ID(xor); DR(A); SRB(rba); Fz;
}
op[0], op[1]);
}
SYNTAX("incw %ea0");
-#line 600 "rl78-decode.opc"
+#line 604 "rl78-decode.opc"
ID(add); W(); DM(HL, IMMU(1)); SC(1);
}
op[0], op[1]);
}
SYNTAX("add %0, %e1");
-#line 209 "rl78-decode.opc"
+#line 213 "rl78-decode.opc"
ID(add); DR(A); SM2(HL, B, 0); Fzac;
}
op[0], op[1]);
}
SYNTAX("add %0, %e1");
-#line 215 "rl78-decode.opc"
+#line 219 "rl78-decode.opc"
ID(add); DR(A); SM2(HL, C, 0); Fzac;
}
case 0xf7:
{
/** 0110 0001 1nnn 01mm callt [%x0] */
-#line 435 "rl78-decode.opc"
+#line 439 "rl78-decode.opc"
int nnn AU = (op[1] >> 4) & 0x07;
-#line 435 "rl78-decode.opc"
+#line 439 "rl78-decode.opc"
int mm AU = op[1] & 0x03;
if (trace)
{
printf (" mm = 0x%x\n", mm);
}
SYNTAX("callt [%x0]");
-#line 435 "rl78-decode.opc"
+#line 439 "rl78-decode.opc"
ID(call); DM(None, 0x80 + mm*16 + nnn*2);
/*----------------------------------------------------------------------*/
case 0x8f:
{
/** 0110 0001 1000 1reg xch %0, %1 */
-#line 1226 "rl78-decode.opc"
+#line 1230 "rl78-decode.opc"
int reg AU = op[1] & 0x07;
if (trace)
{
printf (" reg = 0x%x\n", reg);
}
SYNTAX("xch %0, %1");
-#line 1226 "rl78-decode.opc"
+#line 1230 "rl78-decode.opc"
/* Note: DECW uses reg == X, so this must follow DECW */
ID(xch); DR(A); SRB(reg);
op[0], op[1]);
}
SYNTAX("decw %ea0");
-#line 567 "rl78-decode.opc"
+#line 571 "rl78-decode.opc"
ID(sub); W(); DM(HL, IMMU(1)); SC(1);
}
op[0], op[1]);
}
SYNTAX("addc %0, %e1");
-#line 241 "rl78-decode.opc"
+#line 245 "rl78-decode.opc"
ID(addc); DR(A); SM2(HL, B, 0); Fzac;
}
op[0], op[1]);
}
SYNTAX("addc %0, %e1");
-#line 244 "rl78-decode.opc"
+#line 248 "rl78-decode.opc"
ID(addc); DR(A); SM2(HL, C, 0); Fzac;
}
op[0], op[1]);
}
SYNTAX("sub %0, %e1");
-#line 1127 "rl78-decode.opc"
+#line 1131 "rl78-decode.opc"
ID(sub); DR(A); SM2(HL, B, 0); Fzac;
}
op[0], op[1]);
}
SYNTAX("sub %0, %e1");
-#line 1133 "rl78-decode.opc"
+#line 1137 "rl78-decode.opc"
ID(sub); DR(A); SM2(HL, C, 0); Fzac;
}
op[0], op[1]);
}
SYNTAX("xch %0, %1");
-#line 1230 "rl78-decode.opc"
+#line 1234 "rl78-decode.opc"
ID(xch); DR(A); SM(None, SADDR);
}
op[0], op[1]);
}
SYNTAX("xch %0, %e1");
-#line 1223 "rl78-decode.opc"
+#line 1227 "rl78-decode.opc"
ID(xch); DR(A); SM2(HL, C, 0);
}
op[0], op[1]);
}
SYNTAX("xch %0, %e!1");
-#line 1205 "rl78-decode.opc"
+#line 1209 "rl78-decode.opc"
ID(xch); DR(A); SM(None, IMMU(2));
}
op[0], op[1]);
}
SYNTAX("xch %0, %s1");
-#line 1233 "rl78-decode.opc"
+#line 1237 "rl78-decode.opc"
ID(xch); DR(A); SM(None, SFR);
}
op[0], op[1]);
}
SYNTAX("xch %0, %e1");
-#line 1214 "rl78-decode.opc"
+#line 1218 "rl78-decode.opc"
ID(xch); DR(A); SM(HL, 0);
}
op[0], op[1]);
}
SYNTAX("xch %0, %ea1");
-#line 1220 "rl78-decode.opc"
+#line 1224 "rl78-decode.opc"
ID(xch); DR(A); SM(HL, IMMU(1));
}
op[0], op[1]);
}
SYNTAX("xch %0, %e1");
-#line 1208 "rl78-decode.opc"
+#line 1212 "rl78-decode.opc"
ID(xch); DR(A); SM(DE, 0);
}
op[0], op[1]);
}
SYNTAX("xch %0, %ea1");
-#line 1211 "rl78-decode.opc"
+#line 1215 "rl78-decode.opc"
ID(xch); DR(A); SM(DE, IMMU(1));
}
op[0], op[1]);
}
SYNTAX("subc %0, %e1");
-#line 1159 "rl78-decode.opc"
+#line 1163 "rl78-decode.opc"
ID(subc); DR(A); SM2(HL, B, 0); Fzac;
}
op[0], op[1]);
}
SYNTAX("subc %0, %e1");
-#line 1162 "rl78-decode.opc"
+#line 1166 "rl78-decode.opc"
ID(subc); DR(A); SM2(HL, C, 0); Fzac;
}
op[0], op[1]);
}
SYNTAX("mov %0, %1");
-#line 725 "rl78-decode.opc"
+#line 729 "rl78-decode.opc"
ID(mov); DR(ES); SM(None, SADDR);
}
op[0], op[1]);
}
SYNTAX("xch %0, %e1");
-#line 1217 "rl78-decode.opc"
+#line 1221 "rl78-decode.opc"
ID(xch); DR(A); SM2(HL, B, 0);
}
op[0], op[1]);
}
SYNTAX("cmp %0, %e1");
-#line 494 "rl78-decode.opc"
+#line 498 "rl78-decode.opc"
ID(cmp); DR(A); SM2(HL, B, 0); Fzac;
}
op[0], op[1]);
}
SYNTAX("cmp %0, %e1");
-#line 497 "rl78-decode.opc"
+#line 501 "rl78-decode.opc"
ID(cmp); DR(A); SM2(HL, C, 0); Fzac;
}
op[0], op[1]);
}
SYNTAX("bh $%a0");
-#line 342 "rl78-decode.opc"
+#line 346 "rl78-decode.opc"
ID(branch_cond); DC(pc+IMMS(1)+3); SR(None); COND(H);
}
op[0], op[1]);
}
SYNTAX("sk%c1");
-#line 1096 "rl78-decode.opc"
+#line 1100 "rl78-decode.opc"
ID(skip); COND(C);
}
op[0], op[1]);
}
SYNTAX("mov %0, %e1");
-#line 662 "rl78-decode.opc"
+#line 666 "rl78-decode.opc"
ID(mov); DR(A); SM2(HL, B, 0);
}
case 0xfa:
{
/** 0110 0001 11rg 1010 call %0 */
-#line 432 "rl78-decode.opc"
+#line 436 "rl78-decode.opc"
int rg AU = (op[1] >> 4) & 0x03;
if (trace)
{
printf (" rg = 0x%x\n", rg);
}
SYNTAX("call %0");
-#line 432 "rl78-decode.opc"
+#line 436 "rl78-decode.opc"
ID(call); DRW(rg);
}
op[0], op[1]);
}
SYNTAX("br ax");
-#line 382 "rl78-decode.opc"
+#line 386 "rl78-decode.opc"
ID(branch); DR(AX);
/*----------------------------------------------------------------------*/
op[0], op[1]);
}
SYNTAX("brk");
-#line 390 "rl78-decode.opc"
+#line 394 "rl78-decode.opc"
ID(break);
/*----------------------------------------------------------------------*/
op[0], op[1]);
}
SYNTAX("pop %s0");
-#line 991 "rl78-decode.opc"
+#line 995 "rl78-decode.opc"
ID(mov); W(); DR(PSW); SPOP();
/*----------------------------------------------------------------------*/
op[0], op[1]);
}
SYNTAX("movs %ea0, %1");
-#line 813 "rl78-decode.opc"
+#line 817 "rl78-decode.opc"
ID(mov); DM(HL, IMMU(1)); SR(X); Fzc;
/*----------------------------------------------------------------------*/
case 0xff:
{
/** 0110 0001 11rb 1111 sel rb%1 */
-#line 1043 "rl78-decode.opc"
+#line 1047 "rl78-decode.opc"
int rb AU = (op[1] >> 4) & 0x03;
if (trace)
{
printf (" rb = 0x%x\n", rb);
}
SYNTAX("sel rb%1");
-#line 1043 "rl78-decode.opc"
+#line 1047 "rl78-decode.opc"
ID(sel); SC(rb);
/*----------------------------------------------------------------------*/
op[0], op[1]);
}
SYNTAX("and %0, %e1");
-#line 293 "rl78-decode.opc"
+#line 297 "rl78-decode.opc"
ID(and); DR(A); SM2(HL, B, 0); Fz;
}
op[0], op[1]);
}
SYNTAX("and %0, %e1");
-#line 299 "rl78-decode.opc"
+#line 303 "rl78-decode.opc"
ID(and); DR(A); SM2(HL, C, 0); Fz;
}
op[0], op[1]);
}
SYNTAX("bnh $%a0");
-#line 345 "rl78-decode.opc"
+#line 349 "rl78-decode.opc"
ID(branch_cond); DC(pc+IMMS(1)+3); SR(None); COND(NH);
}
op[0], op[1]);
}
SYNTAX("sk%c1");
-#line 1102 "rl78-decode.opc"
+#line 1106 "rl78-decode.opc"
ID(skip); COND(NC);
}
op[0], op[1]);
}
SYNTAX("mov %e0, %1");
-#line 629 "rl78-decode.opc"
+#line 633 "rl78-decode.opc"
ID(mov); DM2(HL, B, 0); SR(A);
}
op[0], op[1]);
}
SYNTAX("ror %0, %1");
-#line 1024 "rl78-decode.opc"
+#line 1028 "rl78-decode.opc"
ID(ror); DR(A); SC(1);
}
op[0], op[1]);
}
SYNTAX("rolc %0, %1");
-#line 1018 "rl78-decode.opc"
+#line 1022 "rl78-decode.opc"
ID(rolc); DR(A); SC(1);
}
op[0], op[1]);
}
SYNTAX("push %s1");
-#line 999 "rl78-decode.opc"
+#line 1003 "rl78-decode.opc"
ID(mov); W(); DPUSH(); SR(PSW);
/*----------------------------------------------------------------------*/
op[0], op[1]);
}
SYNTAX("cmps %0, %ea1");
-#line 528 "rl78-decode.opc"
+#line 532 "rl78-decode.opc"
ID(cmp); DR(X); SM(HL, IMMU(1)); Fzac;
/*----------------------------------------------------------------------*/
op[0], op[1]);
}
SYNTAX("or %0, %e1");
-#line 948 "rl78-decode.opc"
+#line 952 "rl78-decode.opc"
ID(or); DR(A); SM2(HL, B, 0); Fz;
}
op[0], op[1]);
}
SYNTAX("or %0, %e1");
-#line 954 "rl78-decode.opc"
+#line 958 "rl78-decode.opc"
ID(or); DR(A); SM2(HL, C, 0); Fz;
}
op[0], op[1]);
}
SYNTAX("sk%c1");
-#line 1099 "rl78-decode.opc"
+#line 1103 "rl78-decode.opc"
ID(skip); COND(H);
}
op[0], op[1]);
}
SYNTAX("sk%c1");
-#line 1111 "rl78-decode.opc"
+#line 1115 "rl78-decode.opc"
ID(skip); COND(Z);
/*----------------------------------------------------------------------*/
op[0], op[1]);
}
SYNTAX("mov %0, %e1");
-#line 665 "rl78-decode.opc"
+#line 669 "rl78-decode.opc"
ID(mov); DR(A); SM2(HL, C, 0);
}
op[0], op[1]);
}
SYNTAX("rol %0, %1");
-#line 1015 "rl78-decode.opc"
+#line 1019 "rl78-decode.opc"
ID(rol); DR(A); SC(1);
}
op[0], op[1]);
}
SYNTAX("retb");
-#line 1010 "rl78-decode.opc"
+#line 1014 "rl78-decode.opc"
ID(reti);
/*----------------------------------------------------------------------*/
op[0], op[1]);
}
SYNTAX("halt");
-#line 578 "rl78-decode.opc"
+#line 582 "rl78-decode.opc"
ID(halt);
/*----------------------------------------------------------------------*/
case 0xfe:
{
/** 0110 0001 111r 1110 rolwc %0, %1 */
-#line 1021 "rl78-decode.opc"
+#line 1025 "rl78-decode.opc"
int r AU = (op[1] >> 4) & 0x01;
if (trace)
{
printf (" r = 0x%x\n", r);
}
SYNTAX("rolwc %0, %1");
-#line 1021 "rl78-decode.opc"
+#line 1025 "rl78-decode.opc"
ID(rolc); W(); DRW(r); SC(1);
}
op[0], op[1]);
}
SYNTAX("xor %0, %e1");
-#line 1252 "rl78-decode.opc"
+#line 1256 "rl78-decode.opc"
ID(xor); DR(A); SM2(HL, B, 0); Fz;
}
op[0], op[1]);
}
SYNTAX("xor %0, %e1");
-#line 1258 "rl78-decode.opc"
+#line 1262 "rl78-decode.opc"
ID(xor); DR(A); SM2(HL, C, 0); Fz;
}
op[0], op[1]);
}
SYNTAX("sk%c1");
-#line 1105 "rl78-decode.opc"
+#line 1109 "rl78-decode.opc"
ID(skip); COND(NH);
}
op[0], op[1]);
}
SYNTAX("sk%c1");
-#line 1108 "rl78-decode.opc"
+#line 1112 "rl78-decode.opc"
ID(skip); COND(NZ);
}
op[0], op[1]);
}
SYNTAX("mov %e0, %1");
-#line 638 "rl78-decode.opc"
+#line 642 "rl78-decode.opc"
ID(mov); DM2(HL, C, 0); SR(A);
}
op[0], op[1]);
}
SYNTAX("rorc %0, %1");
-#line 1027 "rl78-decode.opc"
+#line 1031 "rl78-decode.opc"
ID(rorc); DR(A); SC(1);
/*----------------------------------------------------------------------*/
op[0], op[1]);
}
SYNTAX("reti");
-#line 1007 "rl78-decode.opc"
+#line 1011 "rl78-decode.opc"
ID(reti);
}
op[0], op[1]);
}
SYNTAX("stop");
-#line 1116 "rl78-decode.opc"
+#line 1120 "rl78-decode.opc"
ID(stop);
/*----------------------------------------------------------------------*/
op[0]);
}
SYNTAX("movw %e0, %1");
-#line 876 "rl78-decode.opc"
+#line 880 "rl78-decode.opc"
ID(mov); W(); DM(C, IMMU(2)); SR(AX);
}
op[0]);
}
SYNTAX("movw %0, %e1");
-#line 867 "rl78-decode.opc"
+#line 871 "rl78-decode.opc"
ID(mov); W(); DR(AX); SM(C, IMMU(2));
}
op[0]);
}
SYNTAX("or %0, #%1");
-#line 969 "rl78-decode.opc"
+#line 973 "rl78-decode.opc"
ID(or); DM(None, SADDR); SC(IMMU(1)); Fz;
/*----------------------------------------------------------------------*/
op[0]);
}
SYNTAX("or %0, %1");
-#line 966 "rl78-decode.opc"
+#line 970 "rl78-decode.opc"
ID(or); DR(A); SM(None, SADDR); Fz;
}
op[0]);
}
SYNTAX("or %0, #%1");
-#line 957 "rl78-decode.opc"
+#line 961 "rl78-decode.opc"
ID(or); DR(A); SC(IMMU(1)); Fz;
}
op[0]);
}
SYNTAX("or %0, %e1");
-#line 945 "rl78-decode.opc"
+#line 949 "rl78-decode.opc"
ID(or); DR(A); SM(HL, 0); Fz;
}
op[0]);
}
SYNTAX("or %0, %ea1");
-#line 951 "rl78-decode.opc"
+#line 955 "rl78-decode.opc"
ID(or); DR(A); SM(HL, IMMU(1)); Fz;
}
op[0]);
}
SYNTAX("or %0, %e!1");
-#line 942 "rl78-decode.opc"
+#line 946 "rl78-decode.opc"
ID(or); DR(A); SM(None, IMMU(2)); Fz;
}
case 0x77:
{
/** 0111 0rba mov %0, %1 */
-#line 698 "rl78-decode.opc"
+#line 702 "rl78-decode.opc"
int rba AU = op[0] & 0x07;
if (trace)
{
printf (" rba = 0x%x\n", rba);
}
SYNTAX("mov %0, %1");
-#line 698 "rl78-decode.opc"
+#line 702 "rl78-decode.opc"
ID(mov); DRB(rba); SR(A);
}
case 0x70:
{
/** 0111 0001 0bit 0000 set1 %e!0 */
-#line 1048 "rl78-decode.opc"
+#line 1052 "rl78-decode.opc"
int bit AU = (op[1] >> 4) & 0x07;
if (trace)
{
printf (" bit = 0x%x\n", bit);
}
SYNTAX("set1 %e!0");
-#line 1048 "rl78-decode.opc"
+#line 1052 "rl78-decode.opc"
ID(mov); DM(None, IMMU(2)); DB(bit); SC(1);
}
case 0x71:
{
/** 0111 0001 0bit 0001 mov1 %0, cy */
-#line 805 "rl78-decode.opc"
+#line 809 "rl78-decode.opc"
int bit AU = (op[1] >> 4) & 0x07;
if (trace)
{
printf (" bit = 0x%x\n", bit);
}
SYNTAX("mov1 %0, cy");
-#line 805 "rl78-decode.opc"
+#line 809 "rl78-decode.opc"
ID(mov); DM(None, SADDR); DB(bit); SCY();
}
case 0x72:
{
/** 0111 0001 0bit 0010 set1 %0 */
-#line 1066 "rl78-decode.opc"
+#line 1070 "rl78-decode.opc"
int bit AU = (op[1] >> 4) & 0x07;
if (trace)
{
printf (" bit = 0x%x\n", bit);
}
SYNTAX("set1 %0");
-#line 1066 "rl78-decode.opc"
+#line 1070 "rl78-decode.opc"
ID(mov); DM(None, SADDR); DB(bit); SC(1);
/*----------------------------------------------------------------------*/
case 0x73:
{
/** 0111 0001 0bit 0011 clr1 %0 */
-#line 458 "rl78-decode.opc"
+#line 462 "rl78-decode.opc"
int bit AU = (op[1] >> 4) & 0x07;
if (trace)
{
printf (" bit = 0x%x\n", bit);
}
SYNTAX("clr1 %0");
-#line 458 "rl78-decode.opc"
+#line 462 "rl78-decode.opc"
ID(mov); DM(None, SADDR); DB(bit); SC(0);
/*----------------------------------------------------------------------*/
case 0x74:
{
/** 0111 0001 0bit 0100 mov1 cy, %1 */
-#line 799 "rl78-decode.opc"
+#line 803 "rl78-decode.opc"
int bit AU = (op[1] >> 4) & 0x07;
if (trace)
{
printf (" bit = 0x%x\n", bit);
}
SYNTAX("mov1 cy, %1");
-#line 799 "rl78-decode.opc"
+#line 803 "rl78-decode.opc"
ID(mov); DCY(); SM(None, SADDR); SB(bit);
}
case 0x75:
{
/** 0111 0001 0bit 0101 and1 cy, %s1 */
-#line 328 "rl78-decode.opc"
+#line 332 "rl78-decode.opc"
int bit AU = (op[1] >> 4) & 0x07;
if (trace)
{
printf (" bit = 0x%x\n", bit);
}
SYNTAX("and1 cy, %s1");
-#line 328 "rl78-decode.opc"
+#line 332 "rl78-decode.opc"
ID(and); DCY(); SM(None, SADDR); SB(bit);
/*----------------------------------------------------------------------*/
case 0x76:
{
/** 0111 0001 0bit 0110 or1 cy, %s1 */
-#line 983 "rl78-decode.opc"
+#line 987 "rl78-decode.opc"
int bit AU = (op[1] >> 4) & 0x07;
if (trace)
{
printf (" bit = 0x%x\n", bit);
}
SYNTAX("or1 cy, %s1");
-#line 983 "rl78-decode.opc"
+#line 987 "rl78-decode.opc"
ID(or); DCY(); SM(None, SADDR); SB(bit);
/*----------------------------------------------------------------------*/
case 0x77:
{
/** 0111 0001 0bit 0111 xor1 cy, %s1 */
-#line 1287 "rl78-decode.opc"
+#line 1291 "rl78-decode.opc"
int bit AU = (op[1] >> 4) & 0x07;
if (trace)
{
printf (" bit = 0x%x\n", bit);
}
SYNTAX("xor1 cy, %s1");
-#line 1287 "rl78-decode.opc"
+#line 1291 "rl78-decode.opc"
ID(xor); DCY(); SM(None, SADDR); SB(bit);
/*----------------------------------------------------------------------*/
case 0x78:
{
/** 0111 0001 0bit 1000 clr1 %e!0 */
-#line 440 "rl78-decode.opc"
+#line 444 "rl78-decode.opc"
int bit AU = (op[1] >> 4) & 0x07;
if (trace)
{
printf (" bit = 0x%x\n", bit);
}
SYNTAX("clr1 %e!0");
-#line 440 "rl78-decode.opc"
+#line 444 "rl78-decode.opc"
ID(mov); DM(None, IMMU(2)); DB(bit); SC(0);
}
case 0x79:
{
/** 0111 0001 0bit 1001 mov1 %s0, cy */
-#line 808 "rl78-decode.opc"
+#line 812 "rl78-decode.opc"
int bit AU = (op[1] >> 4) & 0x07;
if (trace)
{
printf (" bit = 0x%x\n", bit);
}
SYNTAX("mov1 %s0, cy");
-#line 808 "rl78-decode.opc"
+#line 812 "rl78-decode.opc"
ID(mov); DM(None, SFR); DB(bit); SCY();
/*----------------------------------------------------------------------*/
case 0x7a:
{
/** 0111 0001 0bit 1010 set1 %s0 */
-#line 1060 "rl78-decode.opc"
+#line 1064 "rl78-decode.opc"
int bit AU = (op[1] >> 4) & 0x07;
if (trace)
{
printf (" bit = 0x%x\n", bit);
}
SYNTAX("set1 %s0");
-#line 1060 "rl78-decode.opc"
+#line 1064 "rl78-decode.opc"
op0 = SFR;
ID(mov); DM(None, op0); DB(bit); SC(1);
if (op0 == RL78_SFR_PSW && bit == 7)
case 0x7b:
{
/** 0111 0001 0bit 1011 clr1 %s0 */
-#line 452 "rl78-decode.opc"
+#line 456 "rl78-decode.opc"
int bit AU = (op[1] >> 4) & 0x07;
if (trace)
{
printf (" bit = 0x%x\n", bit);
}
SYNTAX("clr1 %s0");
-#line 452 "rl78-decode.opc"
+#line 456 "rl78-decode.opc"
op0 = SFR;
ID(mov); DM(None, op0); DB(bit); SC(0);
if (op0 == RL78_SFR_PSW && bit == 7)
case 0x7c:
{
/** 0111 0001 0bit 1100 mov1 cy, %s1 */
-#line 802 "rl78-decode.opc"
+#line 806 "rl78-decode.opc"
int bit AU = (op[1] >> 4) & 0x07;
if (trace)
{
printf (" bit = 0x%x\n", bit);
}
SYNTAX("mov1 cy, %s1");
-#line 802 "rl78-decode.opc"
+#line 806 "rl78-decode.opc"
ID(mov); DCY(); SM(None, SFR); SB(bit);
}
case 0x7d:
{
/** 0111 0001 0bit 1101 and1 cy, %s1 */
-#line 325 "rl78-decode.opc"
+#line 329 "rl78-decode.opc"
int bit AU = (op[1] >> 4) & 0x07;
if (trace)
{
printf (" bit = 0x%x\n", bit);
}
SYNTAX("and1 cy, %s1");
-#line 325 "rl78-decode.opc"
+#line 329 "rl78-decode.opc"
ID(and); DCY(); SM(None, SFR); SB(bit);
}
case 0x7e:
{
/** 0111 0001 0bit 1110 or1 cy, %s1 */
-#line 980 "rl78-decode.opc"
+#line 984 "rl78-decode.opc"
int bit AU = (op[1] >> 4) & 0x07;
if (trace)
{
printf (" bit = 0x%x\n", bit);
}
SYNTAX("or1 cy, %s1");
-#line 980 "rl78-decode.opc"
+#line 984 "rl78-decode.opc"
ID(or); DCY(); SM(None, SFR); SB(bit);
}
case 0x7f:
{
/** 0111 0001 0bit 1111 xor1 cy, %s1 */
-#line 1284 "rl78-decode.opc"
+#line 1288 "rl78-decode.opc"
int bit AU = (op[1] >> 4) & 0x07;
if (trace)
{
printf (" bit = 0x%x\n", bit);
}
SYNTAX("xor1 cy, %s1");
-#line 1284 "rl78-decode.opc"
+#line 1288 "rl78-decode.opc"
ID(xor); DCY(); SM(None, SFR); SB(bit);
}
op[0], op[1]);
}
SYNTAX("set1 cy");
-#line 1057 "rl78-decode.opc"
+#line 1061 "rl78-decode.opc"
ID(mov); DCY(); SC(1);
}
case 0xf1:
{
/** 0111 0001 1bit 0001 mov1 %e0, cy */
-#line 787 "rl78-decode.opc"
+#line 791 "rl78-decode.opc"
int bit AU = (op[1] >> 4) & 0x07;
if (trace)
{
printf (" bit = 0x%x\n", bit);
}
SYNTAX("mov1 %e0, cy");
-#line 787 "rl78-decode.opc"
+#line 791 "rl78-decode.opc"
ID(mov); DM(HL, 0); DB(bit); SCY();
}
case 0xf2:
{
/** 0111 0001 1bit 0010 set1 %e0 */
-#line 1051 "rl78-decode.opc"
+#line 1055 "rl78-decode.opc"
int bit AU = (op[1] >> 4) & 0x07;
if (trace)
{
printf (" bit = 0x%x\n", bit);
}
SYNTAX("set1 %e0");
-#line 1051 "rl78-decode.opc"
+#line 1055 "rl78-decode.opc"
ID(mov); DM(HL, 0); DB(bit); SC(1);
}
case 0xf3:
{
/** 0111 0001 1bit 0011 clr1 %e0 */
-#line 443 "rl78-decode.opc"
+#line 447 "rl78-decode.opc"
int bit AU = (op[1] >> 4) & 0x07;
if (trace)
{
printf (" bit = 0x%x\n", bit);
}
SYNTAX("clr1 %e0");
-#line 443 "rl78-decode.opc"
+#line 447 "rl78-decode.opc"
ID(mov); DM(HL, 0); DB(bit); SC(0);
}
case 0xf4:
{
/** 0111 0001 1bit 0100 mov1 cy, %e1 */
-#line 793 "rl78-decode.opc"
+#line 797 "rl78-decode.opc"
int bit AU = (op[1] >> 4) & 0x07;
if (trace)
{
printf (" bit = 0x%x\n", bit);
}
SYNTAX("mov1 cy, %e1");
-#line 793 "rl78-decode.opc"
+#line 797 "rl78-decode.opc"
ID(mov); DCY(); SM(HL, 0); SB(bit);
}
case 0xf5:
{
/** 0111 0001 1bit 0101 and1 cy, %e1 */
-#line 319 "rl78-decode.opc"
+#line 323 "rl78-decode.opc"
int bit AU = (op[1] >> 4) & 0x07;
if (trace)
{
printf (" bit = 0x%x\n", bit);
}
SYNTAX("and1 cy, %e1");
-#line 319 "rl78-decode.opc"
+#line 323 "rl78-decode.opc"
ID(and); DCY(); SM(HL, 0); SB(bit);
}
case 0xf6:
{
/** 0111 0001 1bit 0110 or1 cy, %e1 */
-#line 974 "rl78-decode.opc"
+#line 978 "rl78-decode.opc"
int bit AU = (op[1] >> 4) & 0x07;
if (trace)
{
printf (" bit = 0x%x\n", bit);
}
SYNTAX("or1 cy, %e1");
-#line 974 "rl78-decode.opc"
+#line 978 "rl78-decode.opc"
ID(or); DCY(); SM(HL, 0); SB(bit);
}
case 0xf7:
{
/** 0111 0001 1bit 0111 xor1 cy, %e1 */
-#line 1278 "rl78-decode.opc"
+#line 1282 "rl78-decode.opc"
int bit AU = (op[1] >> 4) & 0x07;
if (trace)
{
printf (" bit = 0x%x\n", bit);
}
SYNTAX("xor1 cy, %e1");
-#line 1278 "rl78-decode.opc"
+#line 1282 "rl78-decode.opc"
ID(xor); DCY(); SM(HL, 0); SB(bit);
}
op[0], op[1]);
}
SYNTAX("clr1 cy");
-#line 449 "rl78-decode.opc"
+#line 453 "rl78-decode.opc"
ID(mov); DCY(); SC(0);
}
case 0xf9:
{
/** 0111 0001 1bit 1001 mov1 %e0, cy */
-#line 790 "rl78-decode.opc"
+#line 794 "rl78-decode.opc"
int bit AU = (op[1] >> 4) & 0x07;
if (trace)
{
printf (" bit = 0x%x\n", bit);
}
SYNTAX("mov1 %e0, cy");
-#line 790 "rl78-decode.opc"
+#line 794 "rl78-decode.opc"
ID(mov); DR(A); DB(bit); SCY();
}
case 0xfa:
{
/** 0111 0001 1bit 1010 set1 %0 */
-#line 1054 "rl78-decode.opc"
+#line 1058 "rl78-decode.opc"
int bit AU = (op[1] >> 4) & 0x07;
if (trace)
{
printf (" bit = 0x%x\n", bit);
}
SYNTAX("set1 %0");
-#line 1054 "rl78-decode.opc"
+#line 1058 "rl78-decode.opc"
ID(mov); DR(A); DB(bit); SC(1);
}
case 0xfb:
{
/** 0111 0001 1bit 1011 clr1 %0 */
-#line 446 "rl78-decode.opc"
+#line 450 "rl78-decode.opc"
int bit AU = (op[1] >> 4) & 0x07;
if (trace)
{
printf (" bit = 0x%x\n", bit);
}
SYNTAX("clr1 %0");
-#line 446 "rl78-decode.opc"
+#line 450 "rl78-decode.opc"
ID(mov); DR(A); DB(bit); SC(0);
}
case 0xfc:
{
/** 0111 0001 1bit 1100 mov1 cy, %e1 */
-#line 796 "rl78-decode.opc"
+#line 800 "rl78-decode.opc"
int bit AU = (op[1] >> 4) & 0x07;
if (trace)
{
printf (" bit = 0x%x\n", bit);
}
SYNTAX("mov1 cy, %e1");
-#line 796 "rl78-decode.opc"
+#line 800 "rl78-decode.opc"
ID(mov); DCY(); SR(A); SB(bit);
}
case 0xfd:
{
/** 0111 0001 1bit 1101 and1 cy, %1 */
-#line 322 "rl78-decode.opc"
+#line 326 "rl78-decode.opc"
int bit AU = (op[1] >> 4) & 0x07;
if (trace)
{
printf (" bit = 0x%x\n", bit);
}
SYNTAX("and1 cy, %1");
-#line 322 "rl78-decode.opc"
+#line 326 "rl78-decode.opc"
ID(and); DCY(); SR(A); SB(bit);
}
case 0xfe:
{
/** 0111 0001 1bit 1110 or1 cy, %1 */
-#line 977 "rl78-decode.opc"
+#line 981 "rl78-decode.opc"
int bit AU = (op[1] >> 4) & 0x07;
if (trace)
{
printf (" bit = 0x%x\n", bit);
}
SYNTAX("or1 cy, %1");
-#line 977 "rl78-decode.opc"
+#line 981 "rl78-decode.opc"
ID(or); DCY(); SR(A); SB(bit);
}
case 0xff:
{
/** 0111 0001 1bit 1111 xor1 cy, %1 */
-#line 1281 "rl78-decode.opc"
+#line 1285 "rl78-decode.opc"
int bit AU = (op[1] >> 4) & 0x07;
if (trace)
{
printf (" bit = 0x%x\n", bit);
}
SYNTAX("xor1 cy, %1");
-#line 1281 "rl78-decode.opc"
+#line 1285 "rl78-decode.opc"
ID(xor); DCY(); SR(A); SB(bit);
}
op[0], op[1]);
}
SYNTAX("not1 cy");
-#line 918 "rl78-decode.opc"
+#line 922 "rl78-decode.opc"
ID(xor); DCY(); SC(1);
/*----------------------------------------------------------------------*/
op[0]);
}
SYNTAX("movw %e0, %1");
-#line 879 "rl78-decode.opc"
+#line 883 "rl78-decode.opc"
ID(mov); W(); DM(BC, IMMU(2)); SR(AX);
}
op[0]);
}
SYNTAX("movw %0, %e1");
-#line 870 "rl78-decode.opc"
+#line 874 "rl78-decode.opc"
ID(mov); W(); DR(AX); SM(BC, IMMU(2));
}
op[0]);
}
SYNTAX("xor %0, #%1");
-#line 1273 "rl78-decode.opc"
+#line 1277 "rl78-decode.opc"
ID(xor); DM(None, SADDR); SC(IMMU(1)); Fz;
/*----------------------------------------------------------------------*/
op[0]);
}
SYNTAX("xor %0, %1");
-#line 1270 "rl78-decode.opc"
+#line 1274 "rl78-decode.opc"
ID(xor); DR(A); SM(None, SADDR); Fz;
}
op[0]);
}
SYNTAX("xor %0, #%1");
-#line 1261 "rl78-decode.opc"
+#line 1265 "rl78-decode.opc"
ID(xor); DR(A); SC(IMMU(1)); Fz;
}
op[0]);
}
SYNTAX("xor %0, %e1");
-#line 1249 "rl78-decode.opc"
+#line 1253 "rl78-decode.opc"
ID(xor); DR(A); SM(HL, 0); Fz;
}
op[0]);
}
SYNTAX("xor %0, %ea1");
-#line 1255 "rl78-decode.opc"
+#line 1259 "rl78-decode.opc"
ID(xor); DR(A); SM(HL, IMMU(1)); Fz;
}
op[0]);
}
SYNTAX("xor %0, %e!1");
-#line 1246 "rl78-decode.opc"
+#line 1250 "rl78-decode.opc"
ID(xor); DR(A); SM(None, IMMU(2)); Fz;
}
case 0x87:
{
/** 1000 0reg inc %0 */
-#line 589 "rl78-decode.opc"
+#line 593 "rl78-decode.opc"
int reg AU = op[0] & 0x07;
if (trace)
{
printf (" reg = 0x%x\n", reg);
}
SYNTAX("inc %0");
-#line 589 "rl78-decode.opc"
+#line 593 "rl78-decode.opc"
ID(add); DRB(reg); SC(1); Fza;
}
op[0]);
}
SYNTAX("mov %0, %ea1");
-#line 668 "rl78-decode.opc"
+#line 672 "rl78-decode.opc"
ID(mov); DR(A); SM(SP, IMMU(1));
}
op[0]);
}
SYNTAX("mov %0, %e1");
-#line 650 "rl78-decode.opc"
+#line 654 "rl78-decode.opc"
ID(mov); DR(A); SM(DE, 0);
}
op[0]);
}
SYNTAX("mov %0, %ea1");
-#line 653 "rl78-decode.opc"
+#line 657 "rl78-decode.opc"
ID(mov); DR(A); SM(DE, IMMU(1));
}
op[0]);
}
SYNTAX("mov %0, %e1");
-#line 656 "rl78-decode.opc"
+#line 660 "rl78-decode.opc"
ID(mov); DR(A); SM(HL, 0);
}
op[0]);
}
SYNTAX("mov %0, %ea1");
-#line 659 "rl78-decode.opc"
+#line 663 "rl78-decode.opc"
ID(mov); DR(A); SM(HL, IMMU(1));
}
op[0]);
}
SYNTAX("mov %0, %1");
-#line 692 "rl78-decode.opc"
+#line 696 "rl78-decode.opc"
ID(mov); DR(A); SM(None, SADDR);
}
op[0]);
}
SYNTAX("mov %0, %s1");
-#line 689 "rl78-decode.opc"
+#line 693 "rl78-decode.opc"
ID(mov); DR(A); SM(None, SFR);
}
op[0]);
}
SYNTAX("mov %0, %e!1");
-#line 647 "rl78-decode.opc"
+#line 651 "rl78-decode.opc"
ID(mov); DR(A); SM(None, IMMU(2));
}
case 0x97:
{
/** 1001 0reg dec %0 */
-#line 556 "rl78-decode.opc"
+#line 560 "rl78-decode.opc"
int reg AU = op[0] & 0x07;
if (trace)
{
printf (" reg = 0x%x\n", reg);
}
SYNTAX("dec %0");
-#line 556 "rl78-decode.opc"
+#line 560 "rl78-decode.opc"
ID(sub); DRB(reg); SC(1); Fza;
}
op[0]);
}
SYNTAX("mov %a0, %1");
-#line 644 "rl78-decode.opc"
+#line 648 "rl78-decode.opc"
ID(mov); DM(SP, IMMU(1)); SR(A);
}
op[0]);
}
SYNTAX("mov %e0, %1");
-#line 617 "rl78-decode.opc"
+#line 621 "rl78-decode.opc"
ID(mov); DM(DE, 0); SR(A);
}
op[0]);
}
SYNTAX("mov %ea0, %1");
-#line 623 "rl78-decode.opc"
+#line 627 "rl78-decode.opc"
ID(mov); DM(DE, IMMU(1)); SR(A);
}
op[0]);
}
SYNTAX("mov %e0, %1");
-#line 626 "rl78-decode.opc"
+#line 630 "rl78-decode.opc"
ID(mov); DM(HL, 0); SR(A);
}
op[0]);
}
SYNTAX("mov %ea0, %1");
-#line 635 "rl78-decode.opc"
+#line 639 "rl78-decode.opc"
ID(mov); DM(HL, IMMU(1)); SR(A);
}
op[0]);
}
SYNTAX("mov %0, %1");
-#line 749 "rl78-decode.opc"
+#line 753 "rl78-decode.opc"
ID(mov); DM(None, SADDR); SR(A);
}
op[0]);
}
SYNTAX("mov %s0, %1");
-#line 782 "rl78-decode.opc"
+#line 786 "rl78-decode.opc"
ID(mov); DM(None, SFR); SR(A);
/*----------------------------------------------------------------------*/
op[0]);
}
SYNTAX("mov %e!0, %1");
-#line 614 "rl78-decode.opc"
+#line 618 "rl78-decode.opc"
ID(mov); DM(None, IMMU(2)); SR(A);
}
op[0]);
}
SYNTAX("inc %e!0");
-#line 583 "rl78-decode.opc"
+#line 587 "rl78-decode.opc"
ID(add); DM(None, IMMU(2)); SC(1); Fza;
}
case 0xa7:
{
/** 1010 0rg1 incw %0 */
-#line 603 "rl78-decode.opc"
+#line 607 "rl78-decode.opc"
int rg AU = (op[0] >> 1) & 0x03;
if (trace)
{
printf (" rg = 0x%x\n", rg);
}
SYNTAX("incw %0");
-#line 603 "rl78-decode.opc"
+#line 607 "rl78-decode.opc"
ID(add); W(); DRW(rg); SC(1);
}
op[0]);
}
SYNTAX("incw %e!0");
-#line 597 "rl78-decode.opc"
+#line 601 "rl78-decode.opc"
ID(add); W(); DM(None, IMMU(2)); SC(1);
}
op[0]);
}
SYNTAX("inc %0");
-#line 592 "rl78-decode.opc"
+#line 596 "rl78-decode.opc"
ID(add); DM(None, SADDR); SC(1); Fza;
/*----------------------------------------------------------------------*/
op[0]);
}
SYNTAX("incw %0");
-#line 606 "rl78-decode.opc"
+#line 610 "rl78-decode.opc"
ID(add); W(); DM(None, SADDR); SC(1);
/*----------------------------------------------------------------------*/
op[0]);
}
SYNTAX("movw %0, %a1");
-#line 852 "rl78-decode.opc"
+#line 856 "rl78-decode.opc"
ID(mov); W(); DR(AX); SM(SP, IMMU(1));
}
op[0]);
}
SYNTAX("movw %0, %e1");
-#line 840 "rl78-decode.opc"
+#line 844 "rl78-decode.opc"
ID(mov); W(); DR(AX); SM(DE, 0);
}
op[0]);
}
SYNTAX("movw %0, %ea1");
-#line 843 "rl78-decode.opc"
+#line 847 "rl78-decode.opc"
ID(mov); W(); DR(AX); SM(DE, IMMU(1));
}
op[0]);
}
SYNTAX("movw %0, %e1");
-#line 846 "rl78-decode.opc"
+#line 850 "rl78-decode.opc"
ID(mov); W(); DR(AX); SM(HL, 0);
}
op[0]);
}
SYNTAX("movw %0, %ea1");
-#line 849 "rl78-decode.opc"
+#line 853 "rl78-decode.opc"
ID(mov); W(); DR(AX); SM(HL, IMMU(1));
}
op[0]);
}
SYNTAX("movw %0, %1");
-#line 882 "rl78-decode.opc"
+#line 886 "rl78-decode.opc"
ID(mov); W(); DR(AX); SM(None, SADDR);
}
op[0]);
}
SYNTAX("movw %0, %s1");
-#line 885 "rl78-decode.opc"
+#line 889 "rl78-decode.opc"
ID(mov); W(); DR(AX); SM(None, SFR);
}
op[0]);
}
SYNTAX("movw %0, %e!1");
-#line 836 "rl78-decode.opc"
+#line 840 "rl78-decode.opc"
ID(mov); W(); DR(AX); SM(None, IMMU(2));
op[0]);
}
SYNTAX("dec %e!0");
-#line 550 "rl78-decode.opc"
+#line 554 "rl78-decode.opc"
ID(sub); DM(None, IMMU(2)); SC(1); Fza;
}
case 0xb7:
{
/** 1011 0rg1 decw %0 */
-#line 570 "rl78-decode.opc"
+#line 574 "rl78-decode.opc"
int rg AU = (op[0] >> 1) & 0x03;
if (trace)
{
printf (" rg = 0x%x\n", rg);
}
SYNTAX("decw %0");
-#line 570 "rl78-decode.opc"
+#line 574 "rl78-decode.opc"
ID(sub); W(); DRW(rg); SC(1);
}
op[0]);
}
SYNTAX("decw %e!0");
-#line 564 "rl78-decode.opc"
+#line 568 "rl78-decode.opc"
ID(sub); W(); DM(None, IMMU(2)); SC(1);
}
op[0]);
}
SYNTAX("dec %0");
-#line 559 "rl78-decode.opc"
+#line 563 "rl78-decode.opc"
ID(sub); DM(None, SADDR); SC(1); Fza;
/*----------------------------------------------------------------------*/
op[0]);
}
SYNTAX("decw %0");
-#line 573 "rl78-decode.opc"
+#line 577 "rl78-decode.opc"
ID(sub); W(); DM(None, SADDR); SC(1);
/*----------------------------------------------------------------------*/
op[0]);
}
SYNTAX("movw %a0, %1");
-#line 833 "rl78-decode.opc"
+#line 837 "rl78-decode.opc"
ID(mov); W(); DM(SP, IMMU(1)); SR(AX);
}
op[0]);
}
SYNTAX("movw %e0, %1");
-#line 821 "rl78-decode.opc"
+#line 825 "rl78-decode.opc"
ID(mov); W(); DM(DE, 0); SR(AX);
}
op[0]);
}
SYNTAX("movw %ea0, %1");
-#line 824 "rl78-decode.opc"
+#line 828 "rl78-decode.opc"
ID(mov); W(); DM(DE, IMMU(1)); SR(AX);
}
op[0]);
}
SYNTAX("movw %e0, %1");
-#line 827 "rl78-decode.opc"
+#line 831 "rl78-decode.opc"
ID(mov); W(); DM(HL, 0); SR(AX);
}
op[0]);
}
SYNTAX("movw %ea0, %1");
-#line 830 "rl78-decode.opc"
+#line 834 "rl78-decode.opc"
ID(mov); W(); DM(HL, IMMU(1)); SR(AX);
}
op[0]);
}
SYNTAX("movw %0, %1");
-#line 897 "rl78-decode.opc"
+#line 901 "rl78-decode.opc"
ID(mov); W(); DM(None, SADDR); SR(AX);
}
op[0]);
}
SYNTAX("movw %s0, %1");
-#line 903 "rl78-decode.opc"
+#line 907 "rl78-decode.opc"
ID(mov); W(); DM(None, SFR); SR(AX);
/*----------------------------------------------------------------------*/
op[0]);
}
SYNTAX("movw %e!0, %1");
-#line 818 "rl78-decode.opc"
+#line 822 "rl78-decode.opc"
ID(mov); W(); DM(None, IMMU(2)); SR(AX);
}
case 0xc6:
{
/** 1100 0rg0 pop %0 */
-#line 988 "rl78-decode.opc"
+#line 992 "rl78-decode.opc"
int rg AU = (op[0] >> 1) & 0x03;
if (trace)
{
printf (" rg = 0x%x\n", rg);
}
SYNTAX("pop %0");
-#line 988 "rl78-decode.opc"
+#line 992 "rl78-decode.opc"
ID(mov); W(); DRW(rg); SPOP();
}
case 0xc7:
{
/** 1100 0rg1 push %1 */
-#line 996 "rl78-decode.opc"
+#line 1000 "rl78-decode.opc"
int rg AU = (op[0] >> 1) & 0x03;
if (trace)
{
printf (" rg = 0x%x\n", rg);
}
SYNTAX("push %1");
-#line 996 "rl78-decode.opc"
+#line 1000 "rl78-decode.opc"
ID(mov); W(); DPUSH(); SRW(rg);
}
op[0]);
}
SYNTAX("mov %a0, #%1");
-#line 641 "rl78-decode.opc"
+#line 645 "rl78-decode.opc"
ID(mov); DM(SP, IMMU(1)); SC(IMMU(1));
}
op[0]);
}
SYNTAX("movw %0, #%1");
-#line 894 "rl78-decode.opc"
+#line 898 "rl78-decode.opc"
ID(mov); W(); DM(None, SADDR); SC(IMMU(2));
}
op[0]);
}
SYNTAX("mov %ea0, #%1");
-#line 620 "rl78-decode.opc"
+#line 624 "rl78-decode.opc"
ID(mov); DM(DE, IMMU(1)); SC(IMMU(1));
}
op[0]);
}
SYNTAX("movw %s0, #%1");
-#line 900 "rl78-decode.opc"
+#line 904 "rl78-decode.opc"
ID(mov); W(); DM(None, SFR); SC(IMMU(2));
}
op[0]);
}
SYNTAX("mov %ea0, #%1");
-#line 632 "rl78-decode.opc"
+#line 636 "rl78-decode.opc"
ID(mov); DM(HL, IMMU(1)); SC(IMMU(1));
}
op[0]);
}
SYNTAX("mov %0, #%1");
-#line 746 "rl78-decode.opc"
+#line 750 "rl78-decode.opc"
ID(mov); DM(None, SADDR); SC(IMMU(1));
}
op[0]);
}
SYNTAX("mov %s0, #%1");
-#line 752 "rl78-decode.opc"
+#line 756 "rl78-decode.opc"
op0 = SFR;
op1 = IMMU(1);
ID(mov); DM(None, op0); SC(op1);
op[0]);
}
SYNTAX("mov %e!0, #%1");
-#line 611 "rl78-decode.opc"
+#line 615 "rl78-decode.opc"
ID(mov); DM(None, IMMU(2)); SC(IMMU(1));
}
case 0xd3:
{
/** 1101 00rg cmp0 %0 */
-#line 520 "rl78-decode.opc"
+#line 524 "rl78-decode.opc"
int rg AU = op[0] & 0x03;
if (trace)
{
printf (" rg = 0x%x\n", rg);
}
SYNTAX("cmp0 %0");
-#line 520 "rl78-decode.opc"
+#line 524 "rl78-decode.opc"
ID(cmp); DRB(rg); SC(0); Fzac;
}
op[0]);
}
SYNTAX("cmp0 %0");
-#line 523 "rl78-decode.opc"
+#line 527 "rl78-decode.opc"
ID(cmp); DM(None, SADDR); SC(0); Fzac;
/*----------------------------------------------------------------------*/
op[0]);
}
SYNTAX("cmp0 %e!0");
-#line 517 "rl78-decode.opc"
+#line 521 "rl78-decode.opc"
ID(cmp); DM(None, IMMU(2)); SC(0); Fzac;
}
op[0]);
}
SYNTAX("mulu x");
-#line 908 "rl78-decode.opc"
+#line 912 "rl78-decode.opc"
ID(mulu);
/*----------------------------------------------------------------------*/
op[0]);
}
SYNTAX("ret");
-#line 1004 "rl78-decode.opc"
+#line 1008 "rl78-decode.opc"
ID(ret);
}
op[0]);
}
SYNTAX("mov %0, %1");
-#line 713 "rl78-decode.opc"
+#line 717 "rl78-decode.opc"
ID(mov); DR(X); SM(None, SADDR);
}
op[0]);
}
SYNTAX("mov %0, %e!1");
-#line 710 "rl78-decode.opc"
+#line 714 "rl78-decode.opc"
ID(mov); DR(X); SM(None, IMMU(2));
}
case 0xfa:
{
/** 11ra 1010 movw %0, %1 */
-#line 891 "rl78-decode.opc"
+#line 895 "rl78-decode.opc"
int ra AU = (op[0] >> 4) & 0x03;
if (trace)
{
printf (" ra = 0x%x\n", ra);
}
SYNTAX("movw %0, %1");
-#line 891 "rl78-decode.opc"
+#line 895 "rl78-decode.opc"
ID(mov); W(); DRW(ra); SM(None, SADDR);
}
case 0xfb:
{
/** 11ra 1011 movw %0, %es!1 */
-#line 888 "rl78-decode.opc"
+#line 892 "rl78-decode.opc"
int ra AU = (op[0] >> 4) & 0x03;
if (trace)
{
printf (" ra = 0x%x\n", ra);
}
SYNTAX("movw %0, %es!1");
-#line 888 "rl78-decode.opc"
+#line 892 "rl78-decode.opc"
ID(mov); W(); DRW(ra); SM(None, IMMU(2));
}
op[0]);
}
SYNTAX("bc $%a0");
-#line 336 "rl78-decode.opc"
+#line 340 "rl78-decode.opc"
ID(branch_cond); DC(pc+IMMS(1)+2); SR(None); COND(C);
}
op[0]);
}
SYNTAX("bz $%a0");
-#line 348 "rl78-decode.opc"
+#line 352 "rl78-decode.opc"
ID(branch_cond); DC(pc+IMMS(1)+2); SR(None); COND(Z);
}
op[0]);
}
SYNTAX("bnc $%a0");
-#line 339 "rl78-decode.opc"
+#line 343 "rl78-decode.opc"
ID(branch_cond); DC(pc+IMMS(1)+2); SR(None); COND(NC);
}
op[0]);
}
SYNTAX("bnz $%a0");
-#line 351 "rl78-decode.opc"
+#line 355 "rl78-decode.opc"
ID(branch_cond); DC(pc+IMMS(1)+2); SR(None); COND(NZ);
/*----------------------------------------------------------------------*/
case 0xe3:
{
/** 1110 00rg oneb %0 */
-#line 926 "rl78-decode.opc"
+#line 930 "rl78-decode.opc"
int rg AU = op[0] & 0x03;
if (trace)
{
printf (" rg = 0x%x\n", rg);
}
SYNTAX("oneb %0");
-#line 926 "rl78-decode.opc"
+#line 930 "rl78-decode.opc"
ID(mov); DRB(rg); SC(1);
}
op[0]);
}
SYNTAX("oneb %0");
-#line 929 "rl78-decode.opc"
+#line 933 "rl78-decode.opc"
ID(mov); DM(None, SADDR); SC(1);
/*----------------------------------------------------------------------*/
op[0]);
}
SYNTAX("oneb %e!0");
-#line 923 "rl78-decode.opc"
+#line 927 "rl78-decode.opc"
ID(mov); DM(None, IMMU(2)); SC(1);
}
op[0]);
}
SYNTAX("onew %0");
-#line 934 "rl78-decode.opc"
+#line 938 "rl78-decode.opc"
ID(mov); DR(AX); SC(1);
}
op[0]);
}
SYNTAX("onew %0");
-#line 937 "rl78-decode.opc"
+#line 941 "rl78-decode.opc"
ID(mov); DR(BC); SC(1);
/*----------------------------------------------------------------------*/
op[0]);
}
SYNTAX("mov %0, %1");
-#line 701 "rl78-decode.opc"
+#line 705 "rl78-decode.opc"
ID(mov); DR(B); SM(None, SADDR);
}
op[0]);
}
SYNTAX("mov %0, %e!1");
-#line 695 "rl78-decode.opc"
+#line 699 "rl78-decode.opc"
ID(mov); DR(B); SM(None, IMMU(2));
}
op[0]);
}
SYNTAX("br !%!a0");
-#line 370 "rl78-decode.opc"
+#line 374 "rl78-decode.opc"
ID(branch); DC(IMMU(3));
}
op[0]);
}
SYNTAX("br %!a0");
-#line 373 "rl78-decode.opc"
+#line 377 "rl78-decode.opc"
ID(branch); DC(IMMU(2));
}
op[0]);
}
SYNTAX("br $%!a0");
-#line 376 "rl78-decode.opc"
+#line 380 "rl78-decode.opc"
ID(branch); DC(pc+IMMS(2)+3);
}
op[0]);
}
SYNTAX("br $%a0");
-#line 379 "rl78-decode.opc"
+#line 383 "rl78-decode.opc"
ID(branch); DC(pc+IMMS(1)+2);
}
case 0xf3:
{
/** 1111 00rg clrb %0 */
-#line 466 "rl78-decode.opc"
+#line 470 "rl78-decode.opc"
int rg AU = op[0] & 0x03;
if (trace)
{
printf (" rg = 0x%x\n", rg);
}
SYNTAX("clrb %0");
-#line 466 "rl78-decode.opc"
+#line 470 "rl78-decode.opc"
ID(mov); DRB(rg); SC(0);
}
op[0]);
}
SYNTAX("clrb %0");
-#line 469 "rl78-decode.opc"
+#line 473 "rl78-decode.opc"
ID(mov); DM(None, SADDR); SC(0);
/*----------------------------------------------------------------------*/
op[0]);
}
SYNTAX("clrb %e!0");
-#line 463 "rl78-decode.opc"
+#line 467 "rl78-decode.opc"
ID(mov); DM(None, IMMU(2)); SC(0);
}
op[0]);
}
SYNTAX("clrw %0");
-#line 474 "rl78-decode.opc"
+#line 478 "rl78-decode.opc"
ID(mov); DR(AX); SC(0);
}
op[0]);
}
SYNTAX("clrw %0");
-#line 477 "rl78-decode.opc"
+#line 481 "rl78-decode.opc"
ID(mov); DR(BC); SC(0);
/*----------------------------------------------------------------------*/
op[0]);
}
SYNTAX("mov %0, %1");
-#line 707 "rl78-decode.opc"
+#line 711 "rl78-decode.opc"
ID(mov); DR(C); SM(None, SADDR);
}
op[0]);
}
SYNTAX("mov %0, %e!1");
-#line 704 "rl78-decode.opc"
+#line 708 "rl78-decode.opc"
ID(mov); DR(C); SM(None, IMMU(2));
}
op[0]);
}
SYNTAX("call !%!a0");
-#line 423 "rl78-decode.opc"
+#line 427 "rl78-decode.opc"
ID(call); DC(IMMU(3));
}
op[0]);
}
SYNTAX("call %!a0");
-#line 426 "rl78-decode.opc"
+#line 430 "rl78-decode.opc"
ID(call); DC(IMMU(2));
}
op[0]);
}
SYNTAX("call $%!a0");
-#line 429 "rl78-decode.opc"
+#line 433 "rl78-decode.opc"
ID(call); DC(pc+IMMS(2)+3);
}
op[0]);
}
SYNTAX("brk1");
-#line 387 "rl78-decode.opc"
+#line 391 "rl78-decode.opc"
ID(break);
}
break;
}
-#line 1292 "rl78-decode.opc"
+#line 1296 "rl78-decode.opc"
return rl78->n_bytes;
}