+/* DO NOT EDIT! -*- buffer-read-only: t -*- vi:set ro: */
#line 1 "rl78-decode.opc"
/* -*- c -*- */
-/* Copyright 2012-2013 Free Software Foundation, Inc.
+/* Copyright (C) 2012-2018 Free Software Foundation, Inc.
Contributed by Red Hat.
Written by DJ Delorie.
#include <stdlib.h>
#include <string.h>
#include "ansidecl.h"
+#include "opintl.h"
#include "opcode/rl78.h"
static int trace = 0;
#define W() rl78->size = RL78_Word
#define AU ATTRIBUTE_UNUSED
-#define GETBYTE() (ld->op [ld->rl78->n_bytes++] = ld->getbyte (ld->ptr))
+
+#define OP_BUF_LEN 20
+#define GETBYTE() (ld->rl78->n_bytes < (OP_BUF_LEN - 1) ? ld->op [ld->rl78->n_bytes++] = ld->getbyte (ld->ptr): 0)
#define B ((unsigned long) GETBYTE())
#define SYNTAX(x) rl78->syntax = x
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;
rl78_decode_opcode (unsigned long pc AU,
RL78_Opcode_Decoded * rl78,
int (* getbyte)(void *),
- void * ptr)
+ void * ptr,
+ RL78_Dis_Isa isa)
{
LocalData lds, * ld = &lds;
- unsigned char op_buf[20] = {0};
+ unsigned char op_buf[OP_BUF_LEN] = {0};
unsigned char *op = op_buf;
int op0, op1;
op[0]);
}
SYNTAX("nop");
-#line 907 "rl78-decode.opc"
+#line 917 "rl78-decode.opc"
ID(nop);
-
+
/*----------------------------------------------------------------------*/
-
+
}
break;
case 0x01:
case 0x07:
{
/** 0000 0rw1 addw %0, %1 */
-#line 273 "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 273 "rl78-decode.opc"
+#line 280 "rl78-decode.opc"
ID(add); W(); DR(AX); SRW(rw); Fzac;
-
+
}
break;
case 0x02:
op[0]);
}
SYNTAX("addw %0, %e!1");
-#line 264 "rl78-decode.opc"
+#line 271 "rl78-decode.opc"
ID(add); W(); DR(AX); SM(None, IMMU(2)); Fzac;
-
+
}
break;
case 0x04:
op[0]);
}
SYNTAX("addw %0, #%1");
-#line 270 "rl78-decode.opc"
+#line 277 "rl78-decode.opc"
ID(add); W(); DR(AX); SC(IMMU(2)); Fzac;
-
+
}
break;
case 0x06:
op[0]);
}
SYNTAX("addw %0, %1");
-#line 276 "rl78-decode.opc"
+#line 283 "rl78-decode.opc"
ID(add); W(); DR(AX); SM(None, SADDR); Fzac;
-
+
}
break;
case 0x08:
op[0]);
}
SYNTAX("xch a, x");
-#line 1230 "rl78-decode.opc"
+#line 1240 "rl78-decode.opc"
ID(xch); DR(A); SR(X);
-
+
/*----------------------------------------------------------------------*/
-
+
}
break;
case 0x09:
op[0]);
}
SYNTAX("mov %0, %e1");
-#line 677 "rl78-decode.opc"
+#line 684 "rl78-decode.opc"
ID(mov); DR(A); SM(B, IMMU(2));
-
+
}
break;
case 0x0a:
op[0]);
}
SYNTAX("add %0, #%1");
-#line 227 "rl78-decode.opc"
+#line 234 "rl78-decode.opc"
ID(add); DM(None, SADDR); SC(IMMU(1)); Fzac;
-
+
/*----------------------------------------------------------------------*/
-
+
}
break;
case 0x0b:
op[0]);
}
SYNTAX("add %0, %1");
-#line 221 "rl78-decode.opc"
+#line 228 "rl78-decode.opc"
ID(add); DR(A); SM(None, SADDR); Fzac;
-
+
}
break;
case 0x0c:
op[0]);
}
SYNTAX("add %0, #%1");
-#line 215 "rl78-decode.opc"
+#line 222 "rl78-decode.opc"
ID(add); DR(A); SC(IMMU(1)); Fzac;
-
+
}
break;
case 0x0d:
op[0]);
}
SYNTAX("add %0, %e1");
-#line 203 "rl78-decode.opc"
+#line 210 "rl78-decode.opc"
ID(add); DR(A); SM(HL, 0); Fzac;
-
+
}
break;
case 0x0e:
{
- /** 0000 1110 add %0, %e1 */
+ /** 0000 1110 add %0, %ea1 */
if (trace)
{
printf ("\033[33m%s\033[0m %02x\n",
- "/** 0000 1110 add %0, %e1 */",
+ "/** 0000 1110 add %0, %ea1 */",
op[0]);
}
- SYNTAX("add %0, %e1");
-#line 209 "rl78-decode.opc"
+ SYNTAX("add %0, %ea1");
+#line 216 "rl78-decode.opc"
ID(add); DR(A); SM(HL, IMMU(1)); Fzac;
-
+
}
break;
case 0x0f:
op[0]);
}
SYNTAX("add %0, %e!1");
-#line 200 "rl78-decode.opc"
+#line 207 "rl78-decode.opc"
ID(add); DR(A); SM(None, IMMU(2)); Fzac;
-
+
}
break;
case 0x10:
op[0]);
}
SYNTAX("addw %0, #%1");
-#line 279 "rl78-decode.opc"
+#line 286 "rl78-decode.opc"
ID(add); W(); DR(SP); SC(IMMU(1)); Fzac;
-
+
/*----------------------------------------------------------------------*/
-
+
}
break;
case 0x11:
op[0]);
}
SYNTAX("es:");
-#line 192 "rl78-decode.opc"
+#line 199 "rl78-decode.opc"
DE(); SE();
op ++;
pc ++;
goto start_again;
-
+
/*----------------------------------------------------------------------*/
-
+
}
break;
case 0x12:
case 0x16:
{
/** 0001 0ra0 movw %0, %1 */
-#line 855 "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 855 "rl78-decode.opc"
+#line 865 "rl78-decode.opc"
ID(mov); W(); DRW(ra); SR(AX);
-
+
}
break;
case 0x13:
case 0x17:
{
/** 0001 0ra1 movw %0, %1 */
-#line 852 "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 852 "rl78-decode.opc"
+#line 862 "rl78-decode.opc"
ID(mov); W(); DR(AX); SRW(ra);
-
+
}
break;
case 0x18:
op[0]);
}
SYNTAX("mov %e0, %1");
-#line 728 "rl78-decode.opc"
- ID(mov); DM(B, IMMU(2)); SR(A);
-
+#line 735 "rl78-decode.opc"
+ ID(mov); DM(B, IMMU(2)); SR(A);
+
}
break;
case 0x19:
op[0]);
}
SYNTAX("mov %e0, #%1");
-#line 725 "rl78-decode.opc"
- ID(mov); DM(B, IMMU(2)); SC(IMMU(1));
-
+#line 732 "rl78-decode.opc"
+ ID(mov); DM(B, IMMU(2)); SC(IMMU(1));
+
}
break;
case 0x1a:
op[0]);
}
SYNTAX("addc %0, #%1");
-#line 259 "rl78-decode.opc"
+#line 266 "rl78-decode.opc"
ID(addc); DM(None, SADDR); SC(IMMU(1)); Fzac;
-
+
/*----------------------------------------------------------------------*/
-
+
}
break;
case 0x1b:
op[0]);
}
SYNTAX("addc %0, %1");
-#line 256 "rl78-decode.opc"
+#line 263 "rl78-decode.opc"
ID(addc); DR(A); SM(None, SADDR); Fzac;
-
+
}
break;
case 0x1c:
op[0]);
}
SYNTAX("addc %0, #%1");
-#line 247 "rl78-decode.opc"
+#line 254 "rl78-decode.opc"
ID(addc); DR(A); SC(IMMU(1)); Fzac;
-
+
}
break;
case 0x1d:
op[0]);
}
SYNTAX("addc %0, %e1");
-#line 235 "rl78-decode.opc"
+#line 242 "rl78-decode.opc"
ID(addc); DR(A); SM(HL, 0); Fzac;
-
+
}
break;
case 0x1e:
{
- /** 0001 1110 addc %0, %e1 */
+ /** 0001 1110 addc %0, %ea1 */
if (trace)
{
printf ("\033[33m%s\033[0m %02x\n",
- "/** 0001 1110 addc %0, %e1 */",
+ "/** 0001 1110 addc %0, %ea1 */",
op[0]);
}
- SYNTAX("addc %0, %e1");
-#line 244 "rl78-decode.opc"
+ SYNTAX("addc %0, %ea1");
+#line 251 "rl78-decode.opc"
ID(addc); DR(A); SM(HL, IMMU(1)); Fzac;
-
+
}
break;
case 0x1f:
op[0]);
}
SYNTAX("addc %0, %e!1");
-#line 232 "rl78-decode.opc"
+#line 239 "rl78-decode.opc"
ID(addc); DR(A); SM(None, IMMU(2)); Fzac;
-
+
}
break;
case 0x20:
op[0]);
}
SYNTAX("subw %0, #%1");
-#line 1194 "rl78-decode.opc"
+#line 1204 "rl78-decode.opc"
ID(sub); W(); DR(SP); SC(IMMU(1)); Fzac;
-
+
/*----------------------------------------------------------------------*/
-
+
}
break;
case 0x21:
case 0x27:
{
/** 0010 0rw1 subw %0, %1 */
-#line 1188 "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 1188 "rl78-decode.opc"
+#line 1198 "rl78-decode.opc"
ID(sub); W(); DR(AX); SRW(rw); Fzac;
-
+
}
break;
case 0x22:
op[0]);
}
SYNTAX("subw %0, %e!1");
-#line 1179 "rl78-decode.opc"
+#line 1189 "rl78-decode.opc"
ID(sub); W(); DR(AX); SM(None, IMMU(2)); Fzac;
-
+
}
break;
case 0x24:
op[0]);
}
SYNTAX("subw %0, #%1");
-#line 1185 "rl78-decode.opc"
+#line 1195 "rl78-decode.opc"
ID(sub); W(); DR(AX); SC(IMMU(2)); Fzac;
-
+
}
break;
case 0x26:
op[0]);
}
SYNTAX("subw %0, %1");
-#line 1191 "rl78-decode.opc"
+#line 1201 "rl78-decode.opc"
ID(sub); W(); DR(AX); SM(None, SADDR); Fzac;
-
+
}
break;
case 0x28:
op[0]);
}
SYNTAX("mov %e0, %1");
-#line 740 "rl78-decode.opc"
+#line 747 "rl78-decode.opc"
ID(mov); DM(C, IMMU(2)); SR(A);
-
+
}
break;
case 0x29:
op[0]);
}
SYNTAX("mov %0, %e1");
-#line 683 "rl78-decode.opc"
+#line 690 "rl78-decode.opc"
ID(mov); DR(A); SM(C, IMMU(2));
-
+
}
break;
case 0x2a:
op[0]);
}
SYNTAX("sub %0, #%1");
-#line 1142 "rl78-decode.opc"
+#line 1152 "rl78-decode.opc"
ID(sub); DM(None, SADDR); SC(IMMU(1)); Fzac;
-
+
/*----------------------------------------------------------------------*/
-
+
}
break;
case 0x2b:
op[0]);
}
SYNTAX("sub %0, %1");
-#line 1136 "rl78-decode.opc"
+#line 1146 "rl78-decode.opc"
ID(sub); DR(A); SM(None, SADDR); Fzac;
-
+
}
break;
case 0x2c:
op[0]);
}
SYNTAX("sub %0, #%1");
-#line 1130 "rl78-decode.opc"
+#line 1140 "rl78-decode.opc"
ID(sub); DR(A); SC(IMMU(1)); Fzac;
-
+
}
break;
case 0x2d:
op[0]);
}
SYNTAX("sub %0, %e1");
-#line 1118 "rl78-decode.opc"
+#line 1128 "rl78-decode.opc"
ID(sub); DR(A); SM(HL, 0); Fzac;
-
+
}
break;
case 0x2e:
{
- /** 0010 1110 sub %0, %e1 */
+ /** 0010 1110 sub %0, %ea1 */
if (trace)
{
printf ("\033[33m%s\033[0m %02x\n",
- "/** 0010 1110 sub %0, %e1 */",
+ "/** 0010 1110 sub %0, %ea1 */",
op[0]);
}
- SYNTAX("sub %0, %e1");
-#line 1124 "rl78-decode.opc"
+ SYNTAX("sub %0, %ea1");
+#line 1134 "rl78-decode.opc"
ID(sub); DR(A); SM(HL, IMMU(1)); Fzac;
-
+
}
break;
case 0x2f:
op[0]);
}
SYNTAX("sub %0, %e!1");
-#line 1115 "rl78-decode.opc"
+#line 1125 "rl78-decode.opc"
ID(sub); DR(A); SM(None, IMMU(2)); Fzac;
-
+
}
break;
case 0x30:
case 0x36:
{
/** 0011 0rg0 movw %0, #%1 */
-#line 849 "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 849 "rl78-decode.opc"
+#line 859 "rl78-decode.opc"
ID(mov); W(); DRW(rg); SC(IMMU(2));
-
+
}
break;
case 0x31:
case 0x00:
{
/** 0011 0001 0bit 0000 btclr %s1, $%a0 */
-#line 415 "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 415 "rl78-decode.opc"
+#line 422 "rl78-decode.opc"
ID(branch_cond_clear); SM(None, SADDR); SB(bit); DC(pc+IMMS(1)+4); COND(T);
-
+
/*----------------------------------------------------------------------*/
-
+
}
break;
case 0x01:
{
/** 0011 0001 0bit 0001 btclr %1, $%a0 */
-#line 409 "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 409 "rl78-decode.opc"
+#line 416 "rl78-decode.opc"
ID(branch_cond_clear); DC(pc+IMMS(1)+3); SR(A); SB(bit); COND(T);
-
+
}
break;
case 0x02:
{
/** 0011 0001 0bit 0010 bt %s1, $%a0 */
-#line 401 "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 401 "rl78-decode.opc"
+#line 408 "rl78-decode.opc"
ID(branch_cond); SM(None, SADDR); SB(bit); DC(pc+IMMS(1)+4); COND(T);
-
+
/*----------------------------------------------------------------------*/
-
+
}
break;
case 0x03:
{
/** 0011 0001 0bit 0011 bt %1, $%a0 */
-#line 395 "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 395 "rl78-decode.opc"
+#line 402 "rl78-decode.opc"
ID(branch_cond); DC(pc+IMMS(1)+3); SR(A); SB(bit); COND(T);
-
+
}
break;
case 0x04:
{
/** 0011 0001 0bit 0100 bf %s1, $%a0 */
-#line 362 "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 362 "rl78-decode.opc"
+#line 369 "rl78-decode.opc"
ID(branch_cond); SM(None, SADDR); SB(bit); DC(pc+IMMS(1)+4); COND(F);
-
+
/*----------------------------------------------------------------------*/
-
+
}
break;
case 0x05:
{
/** 0011 0001 0bit 0101 bf %1, $%a0 */
-#line 356 "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 356 "rl78-decode.opc"
+#line 363 "rl78-decode.opc"
ID(branch_cond); DC(pc+IMMS(1)+3); SR(A); SB(bit); COND(F);
-
+
}
break;
case 0x07:
{
/** 0011 0001 0cnt 0111 shl %0, %1 */
-#line 1071 "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 1071 "rl78-decode.opc"
+#line 1081 "rl78-decode.opc"
ID(shl); DR(C); SC(cnt);
-
+
}
break;
case 0x08:
{
/** 0011 0001 0cnt 1000 shl %0, %1 */
-#line 1068 "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 1068 "rl78-decode.opc"
+#line 1078 "rl78-decode.opc"
ID(shl); DR(B); SC(cnt);
-
+
}
break;
case 0x09:
{
/** 0011 0001 0cnt 1001 shl %0, %1 */
-#line 1065 "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 1065 "rl78-decode.opc"
+#line 1075 "rl78-decode.opc"
ID(shl); DR(A); SC(cnt);
-
+
}
break;
case 0x0a:
{
/** 0011 0001 0cnt 1010 shr %0, %1 */
-#line 1082 "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 1082 "rl78-decode.opc"
+#line 1092 "rl78-decode.opc"
ID(shr); DR(A); SC(cnt);
-
+
}
break;
case 0x0b:
{
/** 0011 0001 0cnt 1011 sar %0, %1 */
-#line 1029 "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 1029 "rl78-decode.opc"
+#line 1039 "rl78-decode.opc"
ID(sar); DR(A); SC(cnt);
-
+
}
break;
case 0x0c:
case 0x8c:
{
/** 0011 0001 wcnt 1100 shlw %0, %1 */
-#line 1077 "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 1077 "rl78-decode.opc"
+#line 1087 "rl78-decode.opc"
ID(shl); W(); DR(BC); SC(wcnt);
-
+
/*----------------------------------------------------------------------*/
-
+
}
break;
case 0x0d:
case 0x8d:
{
/** 0011 0001 wcnt 1101 shlw %0, %1 */
-#line 1074 "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 1074 "rl78-decode.opc"
+#line 1084 "rl78-decode.opc"
ID(shl); W(); DR(AX); SC(wcnt);
-
+
}
break;
case 0x0e:
case 0x8e:
{
/** 0011 0001 wcnt 1110 shrw %0, %1 */
-#line 1085 "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 1085 "rl78-decode.opc"
+#line 1095 "rl78-decode.opc"
ID(shr); W(); DR(AX); SC(wcnt);
-
+
/*----------------------------------------------------------------------*/
-
+
}
break;
case 0x0f:
case 0x8f:
{
/** 0011 0001 wcnt 1111 sarw %0, %1 */
-#line 1032 "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 1032 "rl78-decode.opc"
+#line 1042 "rl78-decode.opc"
ID(sar); W(); DR(AX); SC(wcnt);
-
+
/*----------------------------------------------------------------------*/
-
+
}
break;
case 0x80:
{
/** 0011 0001 1bit 0000 btclr %s1, $%a0 */
-#line 412 "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 412 "rl78-decode.opc"
+#line 419 "rl78-decode.opc"
ID(branch_cond_clear); SM(None, SFR); SB(bit); DC(pc+IMMS(1)+4); COND(T);
-
+
}
break;
case 0x81:
{
/** 0011 0001 1bit 0001 btclr %e1, $%a0 */
-#line 406 "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 406 "rl78-decode.opc"
+#line 413 "rl78-decode.opc"
ID(branch_cond_clear); DC(pc+IMMS(1)+3); SM(HL,0); SB(bit); COND(T);
-
+
}
break;
case 0x82:
{
/** 0011 0001 1bit 0010 bt %s1, $%a0 */
-#line 398 "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 398 "rl78-decode.opc"
+#line 405 "rl78-decode.opc"
ID(branch_cond); SM(None, SFR); SB(bit); DC(pc+IMMS(1)+4); COND(T);
-
+
}
break;
case 0x83:
{
/** 0011 0001 1bit 0011 bt %e1, $%a0 */
-#line 392 "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 392 "rl78-decode.opc"
+#line 399 "rl78-decode.opc"
ID(branch_cond); DC(pc+IMMS(1)+3); SM(HL,0); SB(bit); COND(T);
-
+
}
break;
case 0x84:
{
/** 0011 0001 1bit 0100 bf %s1, $%a0 */
-#line 359 "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 359 "rl78-decode.opc"
+#line 366 "rl78-decode.opc"
ID(branch_cond); SM(None, SFR); SB(bit); DC(pc+IMMS(1)+4); COND(F);
-
+
}
break;
case 0x85:
{
/** 0011 0001 1bit 0101 bf %e1, $%a0 */
-#line 353 "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 353 "rl78-decode.opc"
+#line 360 "rl78-decode.opc"
ID(branch_cond); DC(pc+IMMS(1)+3); SM(HL,0); SB(bit); COND(F);
-
+
}
break;
default: UNSUPPORTED(); break;
case 0x37:
{
/** 0011 0ra1 xchw %0, %1 */
-#line 1235 "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 1235 "rl78-decode.opc"
+#line 1245 "rl78-decode.opc"
ID(xch); W(); DR(AX); SRW(ra);
-
+
/*----------------------------------------------------------------------*/
-
+
}
break;
case 0x38:
op[0]);
}
SYNTAX("mov %e0, #%1");
-#line 737 "rl78-decode.opc"
- ID(mov); DM(C, IMMU(2)); SC(IMMU(1));
-
+#line 744 "rl78-decode.opc"
+ ID(mov); DM(C, IMMU(2)); SC(IMMU(1));
+
}
break;
case 0x39:
op[0]);
}
SYNTAX("mov %e0, #%1");
-#line 731 "rl78-decode.opc"
- ID(mov); DM(BC, IMMU(2)); SC(IMMU(1));
-
+#line 738 "rl78-decode.opc"
+ ID(mov); DM(BC, IMMU(2)); SC(IMMU(1));
+
}
break;
case 0x3a:
op[0]);
}
SYNTAX("subc %0, #%1");
-#line 1174 "rl78-decode.opc"
+#line 1184 "rl78-decode.opc"
ID(subc); DM(None, SADDR); SC(IMMU(1)); Fzac;
-
+
/*----------------------------------------------------------------------*/
-
+
}
break;
case 0x3b:
op[0]);
}
SYNTAX("subc %0, %1");
-#line 1171 "rl78-decode.opc"
+#line 1181 "rl78-decode.opc"
ID(subc); DR(A); SM(None, SADDR); Fzac;
-
+
}
break;
case 0x3c:
op[0]);
}
SYNTAX("subc %0, #%1");
-#line 1162 "rl78-decode.opc"
+#line 1172 "rl78-decode.opc"
ID(subc); DR(A); SC(IMMU(1)); Fzac;
-
+
}
break;
case 0x3d:
op[0]);
}
SYNTAX("subc %0, %e1");
-#line 1150 "rl78-decode.opc"
+#line 1160 "rl78-decode.opc"
ID(subc); DR(A); SM(HL, 0); Fzac;
-
+
}
break;
case 0x3e:
{
- /** 0011 1110 subc %0, %e1 */
+ /** 0011 1110 subc %0, %ea1 */
if (trace)
{
printf ("\033[33m%s\033[0m %02x\n",
- "/** 0011 1110 subc %0, %e1 */",
+ "/** 0011 1110 subc %0, %ea1 */",
op[0]);
}
- SYNTAX("subc %0, %e1");
-#line 1159 "rl78-decode.opc"
+ SYNTAX("subc %0, %ea1");
+#line 1169 "rl78-decode.opc"
ID(subc); DR(A); SM(HL, IMMU(1)); Fzac;
-
+
}
break;
case 0x3f:
op[0]);
}
SYNTAX("subc %0, %e!1");
-#line 1147 "rl78-decode.opc"
+#line 1157 "rl78-decode.opc"
ID(subc); DR(A); SM(None, IMMU(2)); Fzac;
-
+
}
break;
case 0x40:
op[0]);
}
SYNTAX("cmp %e!0, #%1");
-#line 479 "rl78-decode.opc"
+#line 486 "rl78-decode.opc"
ID(cmp); DM(None, IMMU(2)); SC(IMMU(1)); Fzac;
-
+
}
break;
case 0x41:
op[0]);
}
SYNTAX("mov %0, #%1");
-#line 716 "rl78-decode.opc"
- ID(mov); DR(ES); SC(IMMU(1));
-
+#line 723 "rl78-decode.opc"
+ ID(mov); DR(ES); SC(IMMU(1));
+
}
break;
case 0x42:
op[0]);
}
SYNTAX("cmpw %0, %e!1");
-#line 530 "rl78-decode.opc"
+#line 537 "rl78-decode.opc"
ID(cmp); W(); DR(AX); SM(None, IMMU(2)); Fzac;
-
+
}
break;
case 0x43:
case 0x47:
{
/** 0100 0ra1 cmpw %0, %1 */
-#line 539 "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 539 "rl78-decode.opc"
+#line 546 "rl78-decode.opc"
ID(cmp); W(); DR(AX); SRW(ra); Fzac;
-
+
}
break;
case 0x44:
op[0]);
}
SYNTAX("cmpw %0, #%1");
-#line 536 "rl78-decode.opc"
+#line 543 "rl78-decode.opc"
ID(cmp); W(); DR(AX); SC(IMMU(2)); Fzac;
-
+
}
break;
case 0x46:
op[0]);
}
SYNTAX("cmpw %0, %1");
-#line 542 "rl78-decode.opc"
+#line 549 "rl78-decode.opc"
ID(cmp); W(); DR(AX); SM(None, SADDR); Fzac;
-
+
/*----------------------------------------------------------------------*/
-
+
}
break;
case 0x48:
op[0]);
}
SYNTAX("mov %e0, %1");
-#line 734 "rl78-decode.opc"
- ID(mov); DM(BC, IMMU(2)); SR(A);
-
+#line 741 "rl78-decode.opc"
+ ID(mov); DM(BC, IMMU(2)); SR(A);
+
}
break;
case 0x49:
op[0]);
}
SYNTAX("mov %0, %e1");
-#line 680 "rl78-decode.opc"
+#line 687 "rl78-decode.opc"
ID(mov); DR(A); SM(BC, IMMU(2));
-
+
}
break;
case 0x4a:
op[0]);
}
SYNTAX("cmp %0, #%1");
-#line 482 "rl78-decode.opc"
+#line 489 "rl78-decode.opc"
ID(cmp); DM(None, SADDR); SC(IMMU(1)); Fzac;
-
+
}
break;
case 0x4b:
op[0]);
}
SYNTAX("cmp %0, %1");
-#line 509 "rl78-decode.opc"
+#line 516 "rl78-decode.opc"
ID(cmp); DR(A); SM(None, SADDR); Fzac;
-
+
/*----------------------------------------------------------------------*/
-
+
}
break;
case 0x4c:
op[0]);
}
SYNTAX("cmp %0, #%1");
-#line 500 "rl78-decode.opc"
+#line 507 "rl78-decode.opc"
ID(cmp); DR(A); SC(IMMU(1)); Fzac;
-
+
}
break;
case 0x4d:
op[0]);
}
SYNTAX("cmp %0, %e1");
-#line 488 "rl78-decode.opc"
+#line 495 "rl78-decode.opc"
ID(cmp); DR(A); SM(HL, 0); Fzac;
-
+
}
break;
case 0x4e:
{
- /** 0100 1110 cmp %0, %e1 */
+ /** 0100 1110 cmp %0, %ea1 */
if (trace)
{
printf ("\033[33m%s\033[0m %02x\n",
- "/** 0100 1110 cmp %0, %e1 */",
+ "/** 0100 1110 cmp %0, %ea1 */",
op[0]);
}
- SYNTAX("cmp %0, %e1");
-#line 497 "rl78-decode.opc"
+ SYNTAX("cmp %0, %ea1");
+#line 504 "rl78-decode.opc"
ID(cmp); DR(A); SM(HL, IMMU(1)); Fzac;
-
+
}
break;
case 0x4f:
op[0]);
}
SYNTAX("cmp %0, %e!1");
-#line 485 "rl78-decode.opc"
+#line 492 "rl78-decode.opc"
ID(cmp); DR(A); SM(None, IMMU(2)); Fzac;
-
+
}
break;
case 0x50:
case 0x57:
{
/** 0101 0reg mov %0, #%1 */
-#line 668 "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 668 "rl78-decode.opc"
+#line 675 "rl78-decode.opc"
ID(mov); DRB(reg); SC(IMMU(1));
-
+
}
break;
case 0x58:
op[0]);
}
SYNTAX("movw %e0, %1");
-#line 867 "rl78-decode.opc"
+#line 877 "rl78-decode.opc"
ID(mov); W(); DM(B, IMMU(2)); SR(AX);
-
+
}
break;
case 0x59:
op[0]);
}
SYNTAX("movw %0, %e1");
-#line 858 "rl78-decode.opc"
+#line 868 "rl78-decode.opc"
ID(mov); W(); DR(AX); SM(B, IMMU(2));
-
+
}
break;
case 0x5a:
op[0]);
}
SYNTAX("and %0, #%1");
-#line 311 "rl78-decode.opc"
+#line 318 "rl78-decode.opc"
ID(and); DM(None, SADDR); SC(IMMU(1)); Fz;
-
+
/*----------------------------------------------------------------------*/
-
+
}
break;
case 0x5b:
op[0]);
}
SYNTAX("and %0, %1");
-#line 308 "rl78-decode.opc"
+#line 315 "rl78-decode.opc"
ID(and); DR(A); SM(None, SADDR); Fz;
-
+
}
break;
case 0x5c:
op[0]);
}
SYNTAX("and %0, #%1");
-#line 299 "rl78-decode.opc"
+#line 306 "rl78-decode.opc"
ID(and); DR(A); SC(IMMU(1)); Fz;
-
+
}
break;
case 0x5d:
op[0]);
}
SYNTAX("and %0, %e1");
-#line 287 "rl78-decode.opc"
+#line 294 "rl78-decode.opc"
ID(and); DR(A); SM(HL, 0); Fz;
-
+
}
break;
case 0x5e:
{
- /** 0101 1110 and %0, %e1 */
+ /** 0101 1110 and %0, %ea1 */
if (trace)
{
printf ("\033[33m%s\033[0m %02x\n",
- "/** 0101 1110 and %0, %e1 */",
+ "/** 0101 1110 and %0, %ea1 */",
op[0]);
}
- SYNTAX("and %0, %e1");
-#line 293 "rl78-decode.opc"
+ SYNTAX("and %0, %ea1");
+#line 300 "rl78-decode.opc"
ID(and); DR(A); SM(HL, IMMU(1)); Fz;
-
+
}
break;
case 0x5f:
op[0]);
}
SYNTAX("and %0, %e!1");
-#line 284 "rl78-decode.opc"
+#line 291 "rl78-decode.opc"
ID(and); DR(A); SM(None, IMMU(2)); Fz;
-
+
}
break;
case 0x60:
case 0x67:
{
/** 0110 0rba mov %0, %1 */
-#line 671 "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 671 "rl78-decode.opc"
+#line 678 "rl78-decode.opc"
ID(mov); DR(A); SRB(rba);
-
+
}
break;
case 0x61:
case 0x07:
{
/** 0110 0001 0000 0reg add %0, %1 */
-#line 224 "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 224 "rl78-decode.opc"
+#line 231 "rl78-decode.opc"
ID(add); DRB(reg); SR(A); Fzac;
-
+
}
break;
case 0x08:
case 0x0f:
{
/** 0110 0001 0000 1rba add %0, %1 */
-#line 218 "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 218 "rl78-decode.opc"
+#line 225 "rl78-decode.opc"
ID(add); DR(A); SRB(rba); Fzac;
-
+
}
break;
case 0x09:
{
- /** 0110 0001 0000 1001 addw %0, %e1 */
+ /** 0110 0001 0000 1001 addw %0, %ea1 */
if (trace)
{
printf ("\033[33m%s\033[0m %02x %02x\n",
- "/** 0110 0001 0000 1001 addw %0, %e1 */",
+ "/** 0110 0001 0000 1001 addw %0, %ea1 */",
op[0], op[1]);
}
- SYNTAX("addw %0, %e1");
-#line 267 "rl78-decode.opc"
+ SYNTAX("addw %0, %ea1");
+#line 274 "rl78-decode.opc"
ID(add); W(); DR(AX); SM(HL, IMMU(1)); Fzac;
-
+
}
break;
case 0x10:
case 0x17:
{
/** 0110 0001 0001 0reg addc %0, %1 */
-#line 253 "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 253 "rl78-decode.opc"
+#line 260 "rl78-decode.opc"
ID(addc); DRB(reg); SR(A); Fzac;
-
+
}
break;
case 0x18:
case 0x1f:
{
/** 0110 0001 0001 1rba addc %0, %1 */
-#line 250 "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 250 "rl78-decode.opc"
+#line 257 "rl78-decode.opc"
ID(addc); DR(A); SRB(rba); Fzac;
-
+
}
break;
case 0x20:
case 0x27:
{
/** 0110 0001 0010 0reg sub %0, %1 */
-#line 1139 "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 1139 "rl78-decode.opc"
+#line 1149 "rl78-decode.opc"
ID(sub); DRB(reg); SR(A); Fzac;
-
+
}
break;
case 0x28:
case 0x2f:
{
/** 0110 0001 0010 1rba sub %0, %1 */
-#line 1133 "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 1133 "rl78-decode.opc"
+#line 1143 "rl78-decode.opc"
ID(sub); DR(A); SRB(rba); Fzac;
-
+
}
break;
case 0x29:
{
- /** 0110 0001 0010 1001 subw %0, %e1 */
+ /** 0110 0001 0010 1001 subw %0, %ea1 */
if (trace)
{
printf ("\033[33m%s\033[0m %02x %02x\n",
- "/** 0110 0001 0010 1001 subw %0, %e1 */",
+ "/** 0110 0001 0010 1001 subw %0, %ea1 */",
op[0], op[1]);
}
- SYNTAX("subw %0, %e1");
-#line 1182 "rl78-decode.opc"
+ SYNTAX("subw %0, %ea1");
+#line 1192 "rl78-decode.opc"
ID(sub); W(); DR(AX); SM(HL, IMMU(1)); Fzac;
-
+
}
break;
case 0x30:
case 0x37:
{
/** 0110 0001 0011 0reg subc %0, %1 */
-#line 1168 "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 1168 "rl78-decode.opc"
+#line 1178 "rl78-decode.opc"
ID(subc); DRB(reg); SR(A); Fzac;
-
+
}
break;
case 0x38:
case 0x3f:
{
/** 0110 0001 0011 1rba subc %0, %1 */
-#line 1165 "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 1165 "rl78-decode.opc"
+#line 1175 "rl78-decode.opc"
ID(subc); DR(A); SRB(rba); Fzac;
-
+
}
break;
case 0x40:
case 0x47:
{
/** 0110 0001 0100 0reg cmp %0, %1 */
-#line 506 "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 506 "rl78-decode.opc"
+#line 513 "rl78-decode.opc"
ID(cmp); DRB(reg); SR(A); Fzac;
-
+
}
break;
case 0x48:
case 0x4f:
{
/** 0110 0001 0100 1rba cmp %0, %1 */
-#line 503 "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 503 "rl78-decode.opc"
+#line 510 "rl78-decode.opc"
ID(cmp); DR(A); SRB(rba); Fzac;
-
+
}
break;
case 0x49:
{
- /** 0110 0001 0100 1001 cmpw %0, %e1 */
+ /** 0110 0001 0100 1001 cmpw %0, %ea1 */
if (trace)
{
printf ("\033[33m%s\033[0m %02x %02x\n",
- "/** 0110 0001 0100 1001 cmpw %0, %e1 */",
+ "/** 0110 0001 0100 1001 cmpw %0, %ea1 */",
op[0], op[1]);
}
- SYNTAX("cmpw %0, %e1");
-#line 533 "rl78-decode.opc"
+ SYNTAX("cmpw %0, %ea1");
+#line 540 "rl78-decode.opc"
ID(cmp); W(); DR(AX); SM(HL, IMMU(1)); Fzac;
-
+
}
break;
case 0x50:
case 0x57:
{
/** 0110 0001 0101 0reg and %0, %1 */
-#line 305 "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 305 "rl78-decode.opc"
+#line 312 "rl78-decode.opc"
ID(and); DRB(reg); SR(A); Fz;
-
+
}
break;
case 0x58:
case 0x5f:
{
/** 0110 0001 0101 1rba and %0, %1 */
-#line 302 "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 302 "rl78-decode.opc"
+#line 309 "rl78-decode.opc"
ID(and); DR(A); SRB(rba); Fz;
-
+
}
break;
case 0x59:
{
- /** 0110 0001 0101 1001 inc %e0 */
+ /** 0110 0001 0101 1001 inc %ea0 */
if (trace)
{
printf ("\033[33m%s\033[0m %02x %02x\n",
- "/** 0110 0001 0101 1001 inc %e0 */",
+ "/** 0110 0001 0101 1001 inc %ea0 */",
op[0], op[1]);
}
- SYNTAX("inc %e0");
-#line 583 "rl78-decode.opc"
+ SYNTAX("inc %ea0");
+#line 590 "rl78-decode.opc"
ID(add); DM(HL, IMMU(1)); SC(1); Fza;
-
+
}
break;
case 0x60:
case 0x67:
{
/** 0110 0001 0110 0reg or %0, %1 */
-#line 957 "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 957 "rl78-decode.opc"
+#line 967 "rl78-decode.opc"
ID(or); DRB(reg); SR(A); Fz;
-
+
}
break;
case 0x68:
case 0x6f:
{
/** 0110 0001 0110 1rba or %0, %1 */
-#line 954 "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 954 "rl78-decode.opc"
+#line 964 "rl78-decode.opc"
ID(or); DR(A); SRB(rba); Fz;
-
+
}
break;
case 0x69:
{
- /** 0110 0001 0110 1001 dec %e0 */
+ /** 0110 0001 0110 1001 dec %ea0 */
if (trace)
{
printf ("\033[33m%s\033[0m %02x %02x\n",
- "/** 0110 0001 0110 1001 dec %e0 */",
+ "/** 0110 0001 0110 1001 dec %ea0 */",
op[0], op[1]);
}
- SYNTAX("dec %e0");
-#line 550 "rl78-decode.opc"
+ SYNTAX("dec %ea0");
+#line 557 "rl78-decode.opc"
ID(sub); DM(HL, IMMU(1)); SC(1); Fza;
-
+
}
break;
case 0x70:
case 0x77:
{
/** 0110 0001 0111 0reg xor %0, %1 */
-#line 1261 "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 1261 "rl78-decode.opc"
+#line 1271 "rl78-decode.opc"
ID(xor); DRB(reg); SR(A); Fz;
-
+
}
break;
case 0x78:
case 0x7f:
{
/** 0110 0001 0111 1rba xor %0, %1 */
-#line 1258 "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 1258 "rl78-decode.opc"
+#line 1268 "rl78-decode.opc"
ID(xor); DR(A); SRB(rba); Fz;
-
+
}
break;
case 0x79:
{
- /** 0110 0001 0111 1001 incw %e0 */
+ /** 0110 0001 0111 1001 incw %ea0 */
if (trace)
{
printf ("\033[33m%s\033[0m %02x %02x\n",
- "/** 0110 0001 0111 1001 incw %e0 */",
+ "/** 0110 0001 0111 1001 incw %ea0 */",
op[0], op[1]);
}
- SYNTAX("incw %e0");
-#line 597 "rl78-decode.opc"
+ SYNTAX("incw %ea0");
+#line 604 "rl78-decode.opc"
ID(add); W(); DM(HL, IMMU(1)); SC(1);
-
+
}
break;
case 0x80:
op[0], op[1]);
}
SYNTAX("add %0, %e1");
-#line 206 "rl78-decode.opc"
+#line 213 "rl78-decode.opc"
ID(add); DR(A); SM2(HL, B, 0); Fzac;
-
+
}
break;
case 0x82:
op[0], op[1]);
}
SYNTAX("add %0, %e1");
-#line 212 "rl78-decode.opc"
+#line 219 "rl78-decode.opc"
ID(add); DR(A); SM2(HL, C, 0); Fzac;
-
+
}
break;
case 0x84:
case 0xf7:
{
/** 0110 0001 1nnn 01mm callt [%x0] */
-#line 432 "rl78-decode.opc"
+#line 439 "rl78-decode.opc"
int nnn AU = (op[1] >> 4) & 0x07;
-#line 432 "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 432 "rl78-decode.opc"
+#line 439 "rl78-decode.opc"
ID(call); DM(None, 0x80 + mm*16 + nnn*2);
-
+
/*----------------------------------------------------------------------*/
-
+
}
break;
case 0x88:
case 0x8f:
{
/** 0110 0001 1000 1reg xch %0, %1 */
-#line 1220 "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 1220 "rl78-decode.opc"
+#line 1230 "rl78-decode.opc"
/* Note: DECW uses reg == X, so this must follow DECW */
ID(xch); DR(A); SRB(reg);
-
+
}
break;
case 0x89:
{
- /** 0110 0001 1000 1001 decw %e0 */
+ /** 0110 0001 1000 1001 decw %ea0 */
if (trace)
{
printf ("\033[33m%s\033[0m %02x %02x\n",
- "/** 0110 0001 1000 1001 decw %e0 */",
+ "/** 0110 0001 1000 1001 decw %ea0 */",
op[0], op[1]);
}
- SYNTAX("decw %e0");
-#line 564 "rl78-decode.opc"
+ SYNTAX("decw %ea0");
+#line 571 "rl78-decode.opc"
ID(sub); W(); DM(HL, IMMU(1)); SC(1);
-
+
}
break;
case 0x90:
op[0], op[1]);
}
SYNTAX("addc %0, %e1");
-#line 238 "rl78-decode.opc"
+#line 245 "rl78-decode.opc"
ID(addc); DR(A); SM2(HL, B, 0); Fzac;
-
+
}
break;
case 0x92:
op[0], op[1]);
}
SYNTAX("addc %0, %e1");
-#line 241 "rl78-decode.opc"
+#line 248 "rl78-decode.opc"
ID(addc); DR(A); SM2(HL, C, 0); Fzac;
-
+
}
break;
case 0xa0:
op[0], op[1]);
}
SYNTAX("sub %0, %e1");
-#line 1121 "rl78-decode.opc"
+#line 1131 "rl78-decode.opc"
ID(sub); DR(A); SM2(HL, B, 0); Fzac;
-
+
}
break;
case 0xa2:
op[0], op[1]);
}
SYNTAX("sub %0, %e1");
-#line 1127 "rl78-decode.opc"
+#line 1137 "rl78-decode.opc"
ID(sub); DR(A); SM2(HL, C, 0); Fzac;
-
+
}
break;
case 0xa8:
op[0], op[1]);
}
SYNTAX("xch %0, %1");
-#line 1224 "rl78-decode.opc"
+#line 1234 "rl78-decode.opc"
ID(xch); DR(A); SM(None, SADDR);
-
+
}
break;
case 0xa9:
op[0], op[1]);
}
SYNTAX("xch %0, %e1");
-#line 1217 "rl78-decode.opc"
+#line 1227 "rl78-decode.opc"
ID(xch); DR(A); SM2(HL, C, 0);
-
+
}
break;
case 0xaa:
op[0], op[1]);
}
SYNTAX("xch %0, %e!1");
-#line 1199 "rl78-decode.opc"
+#line 1209 "rl78-decode.opc"
ID(xch); DR(A); SM(None, IMMU(2));
-
+
}
break;
case 0xab:
{
- /** 0110 0001 1010 1011 xch %0, %1 */
+ /** 0110 0001 1010 1011 xch %0, %s1 */
if (trace)
{
printf ("\033[33m%s\033[0m %02x %02x\n",
- "/** 0110 0001 1010 1011 xch %0, %1 */",
+ "/** 0110 0001 1010 1011 xch %0, %s1 */",
op[0], op[1]);
}
- SYNTAX("xch %0, %1");
-#line 1227 "rl78-decode.opc"
+ SYNTAX("xch %0, %s1");
+#line 1237 "rl78-decode.opc"
ID(xch); DR(A); SM(None, SFR);
-
+
}
break;
case 0xac:
op[0], op[1]);
}
SYNTAX("xch %0, %e1");
-#line 1208 "rl78-decode.opc"
+#line 1218 "rl78-decode.opc"
ID(xch); DR(A); SM(HL, 0);
-
+
}
break;
case 0xad:
{
- /** 0110 0001 1010 1101 xch %0, %e1 */
+ /** 0110 0001 1010 1101 xch %0, %ea1 */
if (trace)
{
printf ("\033[33m%s\033[0m %02x %02x\n",
- "/** 0110 0001 1010 1101 xch %0, %e1 */",
+ "/** 0110 0001 1010 1101 xch %0, %ea1 */",
op[0], op[1]);
}
- SYNTAX("xch %0, %e1");
-#line 1214 "rl78-decode.opc"
+ SYNTAX("xch %0, %ea1");
+#line 1224 "rl78-decode.opc"
ID(xch); DR(A); SM(HL, IMMU(1));
-
+
}
break;
case 0xae:
op[0], op[1]);
}
SYNTAX("xch %0, %e1");
-#line 1202 "rl78-decode.opc"
+#line 1212 "rl78-decode.opc"
ID(xch); DR(A); SM(DE, 0);
-
+
}
break;
case 0xaf:
{
- /** 0110 0001 1010 1111 xch %0, %e1 */
+ /** 0110 0001 1010 1111 xch %0, %ea1 */
if (trace)
{
printf ("\033[33m%s\033[0m %02x %02x\n",
- "/** 0110 0001 1010 1111 xch %0, %e1 */",
+ "/** 0110 0001 1010 1111 xch %0, %ea1 */",
op[0], op[1]);
}
- SYNTAX("xch %0, %e1");
-#line 1205 "rl78-decode.opc"
+ SYNTAX("xch %0, %ea1");
+#line 1215 "rl78-decode.opc"
ID(xch); DR(A); SM(DE, IMMU(1));
-
+
}
break;
case 0xb0:
op[0], op[1]);
}
SYNTAX("subc %0, %e1");
-#line 1153 "rl78-decode.opc"
+#line 1163 "rl78-decode.opc"
ID(subc); DR(A); SM2(HL, B, 0); Fzac;
-
+
}
break;
case 0xb2:
op[0], op[1]);
}
SYNTAX("subc %0, %e1");
-#line 1156 "rl78-decode.opc"
+#line 1166 "rl78-decode.opc"
ID(subc); DR(A); SM2(HL, C, 0); Fzac;
-
+
}
break;
case 0xb8:
op[0], op[1]);
}
SYNTAX("mov %0, %1");
-#line 722 "rl78-decode.opc"
- ID(mov); DR(ES); SM(None, SADDR);
-
+#line 729 "rl78-decode.opc"
+ ID(mov); DR(ES); SM(None, SADDR);
+
}
break;
case 0xb9:
op[0], op[1]);
}
SYNTAX("xch %0, %e1");
-#line 1211 "rl78-decode.opc"
+#line 1221 "rl78-decode.opc"
ID(xch); DR(A); SM2(HL, B, 0);
-
+
}
break;
case 0xc0:
op[0], op[1]);
}
SYNTAX("cmp %0, %e1");
-#line 491 "rl78-decode.opc"
+#line 498 "rl78-decode.opc"
ID(cmp); DR(A); SM2(HL, B, 0); Fzac;
-
+
}
break;
case 0xc2:
op[0], op[1]);
}
SYNTAX("cmp %0, %e1");
-#line 494 "rl78-decode.opc"
+#line 501 "rl78-decode.opc"
ID(cmp); DR(A); SM2(HL, C, 0); Fzac;
-
+
}
break;
case 0xc3:
op[0], op[1]);
}
SYNTAX("bh $%a0");
-#line 339 "rl78-decode.opc"
+#line 346 "rl78-decode.opc"
ID(branch_cond); DC(pc+IMMS(1)+3); SR(None); COND(H);
-
+
}
break;
case 0xc8:
op[0], op[1]);
}
SYNTAX("sk%c1");
-#line 1090 "rl78-decode.opc"
+#line 1100 "rl78-decode.opc"
ID(skip); COND(C);
-
+
}
break;
case 0xc9:
op[0], op[1]);
}
SYNTAX("mov %0, %e1");
-#line 659 "rl78-decode.opc"
+#line 666 "rl78-decode.opc"
ID(mov); DR(A); SM2(HL, B, 0);
-
+
}
break;
case 0xca:
case 0xfa:
{
/** 0110 0001 11rg 1010 call %0 */
-#line 429 "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 429 "rl78-decode.opc"
+#line 436 "rl78-decode.opc"
ID(call); DRW(rg);
-
+
}
break;
case 0xcb:
op[0], op[1]);
}
SYNTAX("br ax");
-#line 379 "rl78-decode.opc"
+#line 386 "rl78-decode.opc"
ID(branch); DR(AX);
-
+
/*----------------------------------------------------------------------*/
-
+
}
break;
case 0xcc:
op[0], op[1]);
}
SYNTAX("brk");
-#line 387 "rl78-decode.opc"
+#line 394 "rl78-decode.opc"
ID(break);
-
+
/*----------------------------------------------------------------------*/
-
+
}
break;
case 0xcd:
op[0], op[1]);
}
SYNTAX("pop %s0");
-#line 985 "rl78-decode.opc"
+#line 995 "rl78-decode.opc"
ID(mov); W(); DR(PSW); SPOP();
-
+
/*----------------------------------------------------------------------*/
-
+
}
break;
case 0xce:
{
- /** 0110 0001 1100 1110 movs %e0, %1 */
+ /** 0110 0001 1100 1110 movs %ea0, %1 */
if (trace)
{
printf ("\033[33m%s\033[0m %02x %02x\n",
- "/** 0110 0001 1100 1110 movs %e0, %1 */",
+ "/** 0110 0001 1100 1110 movs %ea0, %1 */",
op[0], op[1]);
}
- SYNTAX("movs %e0, %1");
-#line 807 "rl78-decode.opc"
+ SYNTAX("movs %ea0, %1");
+#line 817 "rl78-decode.opc"
ID(mov); DM(HL, IMMU(1)); SR(X); Fzc;
-
+
/*----------------------------------------------------------------------*/
-
+
}
break;
case 0xcf:
case 0xff:
{
/** 0110 0001 11rb 1111 sel rb%1 */
-#line 1037 "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 1037 "rl78-decode.opc"
+#line 1047 "rl78-decode.opc"
ID(sel); SC(rb);
-
+
/*----------------------------------------------------------------------*/
-
+
}
break;
case 0xd0:
op[0], op[1]);
}
SYNTAX("and %0, %e1");
-#line 290 "rl78-decode.opc"
+#line 297 "rl78-decode.opc"
ID(and); DR(A); SM2(HL, B, 0); Fz;
-
+
}
break;
case 0xd2:
op[0], op[1]);
}
SYNTAX("and %0, %e1");
-#line 296 "rl78-decode.opc"
+#line 303 "rl78-decode.opc"
ID(and); DR(A); SM2(HL, C, 0); Fz;
-
+
}
break;
case 0xd3:
op[0], op[1]);
}
SYNTAX("bnh $%a0");
-#line 342 "rl78-decode.opc"
+#line 349 "rl78-decode.opc"
ID(branch_cond); DC(pc+IMMS(1)+3); SR(None); COND(NH);
-
+
}
break;
case 0xd8:
op[0], op[1]);
}
SYNTAX("sk%c1");
-#line 1096 "rl78-decode.opc"
+#line 1106 "rl78-decode.opc"
ID(skip); COND(NC);
-
+
}
break;
case 0xd9:
op[0], op[1]);
}
SYNTAX("mov %e0, %1");
-#line 626 "rl78-decode.opc"
+#line 633 "rl78-decode.opc"
ID(mov); DM2(HL, B, 0); SR(A);
-
+
}
break;
case 0xdb:
op[0], op[1]);
}
SYNTAX("ror %0, %1");
-#line 1018 "rl78-decode.opc"
+#line 1028 "rl78-decode.opc"
ID(ror); DR(A); SC(1);
-
+
}
break;
case 0xdc:
op[0], op[1]);
}
SYNTAX("rolc %0, %1");
-#line 1012 "rl78-decode.opc"
+#line 1022 "rl78-decode.opc"
ID(rolc); DR(A); SC(1);
-
+
}
break;
case 0xdd:
op[0], op[1]);
}
SYNTAX("push %s1");
-#line 993 "rl78-decode.opc"
+#line 1003 "rl78-decode.opc"
ID(mov); W(); DPUSH(); SR(PSW);
-
+
/*----------------------------------------------------------------------*/
-
+
}
break;
case 0xde:
{
- /** 0110 0001 1101 1110 cmps %0, %e1 */
+ /** 0110 0001 1101 1110 cmps %0, %ea1 */
if (trace)
{
printf ("\033[33m%s\033[0m %02x %02x\n",
- "/** 0110 0001 1101 1110 cmps %0, %e1 */",
+ "/** 0110 0001 1101 1110 cmps %0, %ea1 */",
op[0], op[1]);
}
- SYNTAX("cmps %0, %e1");
-#line 525 "rl78-decode.opc"
+ SYNTAX("cmps %0, %ea1");
+#line 532 "rl78-decode.opc"
ID(cmp); DR(X); SM(HL, IMMU(1)); Fzac;
-
+
/*----------------------------------------------------------------------*/
-
+
}
break;
case 0xe0:
op[0], op[1]);
}
SYNTAX("or %0, %e1");
-#line 942 "rl78-decode.opc"
+#line 952 "rl78-decode.opc"
ID(or); DR(A); SM2(HL, B, 0); Fz;
-
+
}
break;
case 0xe2:
op[0], op[1]);
}
SYNTAX("or %0, %e1");
-#line 948 "rl78-decode.opc"
+#line 958 "rl78-decode.opc"
ID(or); DR(A); SM2(HL, C, 0); Fz;
-
+
}
break;
case 0xe3:
op[0], op[1]);
}
SYNTAX("sk%c1");
-#line 1093 "rl78-decode.opc"
+#line 1103 "rl78-decode.opc"
ID(skip); COND(H);
-
+
}
break;
case 0xe8:
op[0], op[1]);
}
SYNTAX("sk%c1");
-#line 1105 "rl78-decode.opc"
+#line 1115 "rl78-decode.opc"
ID(skip); COND(Z);
-
+
/*----------------------------------------------------------------------*/
-
+
}
break;
case 0xe9:
op[0], op[1]);
}
SYNTAX("mov %0, %e1");
-#line 662 "rl78-decode.opc"
+#line 669 "rl78-decode.opc"
ID(mov); DR(A); SM2(HL, C, 0);
-
+
}
break;
case 0xeb:
op[0], op[1]);
}
SYNTAX("rol %0, %1");
-#line 1009 "rl78-decode.opc"
+#line 1019 "rl78-decode.opc"
ID(rol); DR(A); SC(1);
-
+
}
break;
case 0xec:
op[0], op[1]);
}
SYNTAX("retb");
-#line 1004 "rl78-decode.opc"
+#line 1014 "rl78-decode.opc"
ID(reti);
-
+
/*----------------------------------------------------------------------*/
-
+
}
break;
case 0xed:
op[0], op[1]);
}
SYNTAX("halt");
-#line 575 "rl78-decode.opc"
+#line 582 "rl78-decode.opc"
ID(halt);
-
+
/*----------------------------------------------------------------------*/
-
+
}
break;
case 0xee:
case 0xfe:
{
/** 0110 0001 111r 1110 rolwc %0, %1 */
-#line 1015 "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 1015 "rl78-decode.opc"
+#line 1025 "rl78-decode.opc"
ID(rolc); W(); DRW(r); SC(1);
-
+
}
break;
case 0xf0:
op[0], op[1]);
}
SYNTAX("xor %0, %e1");
-#line 1246 "rl78-decode.opc"
+#line 1256 "rl78-decode.opc"
ID(xor); DR(A); SM2(HL, B, 0); Fz;
-
+
}
break;
case 0xf2:
op[0], op[1]);
}
SYNTAX("xor %0, %e1");
-#line 1252 "rl78-decode.opc"
+#line 1262 "rl78-decode.opc"
ID(xor); DR(A); SM2(HL, C, 0); Fz;
-
+
}
break;
case 0xf3:
op[0], op[1]);
}
SYNTAX("sk%c1");
-#line 1099 "rl78-decode.opc"
+#line 1109 "rl78-decode.opc"
ID(skip); COND(NH);
-
+
}
break;
case 0xf8:
op[0], op[1]);
}
SYNTAX("sk%c1");
-#line 1102 "rl78-decode.opc"
+#line 1112 "rl78-decode.opc"
ID(skip); COND(NZ);
-
+
}
break;
case 0xf9:
op[0], op[1]);
}
SYNTAX("mov %e0, %1");
-#line 635 "rl78-decode.opc"
+#line 642 "rl78-decode.opc"
ID(mov); DM2(HL, C, 0); SR(A);
-
+
}
break;
case 0xfb:
op[0], op[1]);
}
SYNTAX("rorc %0, %1");
-#line 1021 "rl78-decode.opc"
+#line 1031 "rl78-decode.opc"
ID(rorc); DR(A); SC(1);
-
+
/*----------------------------------------------------------------------*/
-
+
/* Note that the branch insns need to be listed before the shift
ones, as "shift count of zero" means "branch insn" */
-
+
}
break;
case 0xfc:
op[0], op[1]);
}
SYNTAX("reti");
-#line 1001 "rl78-decode.opc"
+#line 1011 "rl78-decode.opc"
ID(reti);
-
+
}
break;
case 0xfd:
op[0], op[1]);
}
SYNTAX("stop");
-#line 1110 "rl78-decode.opc"
+#line 1120 "rl78-decode.opc"
ID(stop);
-
+
/*----------------------------------------------------------------------*/
-
+
}
break;
default: UNSUPPORTED(); break;
op[0]);
}
SYNTAX("movw %e0, %1");
-#line 870 "rl78-decode.opc"
+#line 880 "rl78-decode.opc"
ID(mov); W(); DM(C, IMMU(2)); SR(AX);
-
+
}
break;
case 0x69:
op[0]);
}
SYNTAX("movw %0, %e1");
-#line 861 "rl78-decode.opc"
+#line 871 "rl78-decode.opc"
ID(mov); W(); DR(AX); SM(C, IMMU(2));
-
+
}
break;
case 0x6a:
op[0]);
}
SYNTAX("or %0, #%1");
-#line 963 "rl78-decode.opc"
+#line 973 "rl78-decode.opc"
ID(or); DM(None, SADDR); SC(IMMU(1)); Fz;
-
+
/*----------------------------------------------------------------------*/
-
+
}
break;
case 0x6b:
op[0]);
}
SYNTAX("or %0, %1");
-#line 960 "rl78-decode.opc"
+#line 970 "rl78-decode.opc"
ID(or); DR(A); SM(None, SADDR); Fz;
-
+
}
break;
case 0x6c:
op[0]);
}
SYNTAX("or %0, #%1");
-#line 951 "rl78-decode.opc"
+#line 961 "rl78-decode.opc"
ID(or); DR(A); SC(IMMU(1)); Fz;
-
+
}
break;
case 0x6d:
op[0]);
}
SYNTAX("or %0, %e1");
-#line 939 "rl78-decode.opc"
+#line 949 "rl78-decode.opc"
ID(or); DR(A); SM(HL, 0); Fz;
-
+
}
break;
case 0x6e:
{
- /** 0110 1110 or %0, %e1 */
+ /** 0110 1110 or %0, %ea1 */
if (trace)
{
printf ("\033[33m%s\033[0m %02x\n",
- "/** 0110 1110 or %0, %e1 */",
+ "/** 0110 1110 or %0, %ea1 */",
op[0]);
}
- SYNTAX("or %0, %e1");
-#line 945 "rl78-decode.opc"
+ SYNTAX("or %0, %ea1");
+#line 955 "rl78-decode.opc"
ID(or); DR(A); SM(HL, IMMU(1)); Fz;
-
+
}
break;
case 0x6f:
op[0]);
}
SYNTAX("or %0, %e!1");
-#line 936 "rl78-decode.opc"
+#line 946 "rl78-decode.opc"
ID(or); DR(A); SM(None, IMMU(2)); Fz;
-
+
}
break;
case 0x70:
case 0x77:
{
/** 0111 0rba mov %0, %1 */
-#line 695 "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 695 "rl78-decode.opc"
+#line 702 "rl78-decode.opc"
ID(mov); DRB(rba); SR(A);
-
+
}
break;
case 0x71:
case 0x70:
{
/** 0111 0001 0bit 0000 set1 %e!0 */
-#line 1042 "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 1042 "rl78-decode.opc"
+#line 1052 "rl78-decode.opc"
ID(mov); DM(None, IMMU(2)); DB(bit); SC(1);
-
+
}
break;
case 0x01:
case 0x71:
{
/** 0111 0001 0bit 0001 mov1 %0, cy */
-#line 799 "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 799 "rl78-decode.opc"
+#line 809 "rl78-decode.opc"
ID(mov); DM(None, SADDR); DB(bit); SCY();
-
+
}
break;
case 0x02:
case 0x72:
{
/** 0111 0001 0bit 0010 set1 %0 */
-#line 1060 "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 1060 "rl78-decode.opc"
+#line 1070 "rl78-decode.opc"
ID(mov); DM(None, SADDR); DB(bit); SC(1);
-
+
/*----------------------------------------------------------------------*/
-
+
}
break;
case 0x03:
case 0x73:
{
/** 0111 0001 0bit 0011 clr1 %0 */
-#line 455 "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 455 "rl78-decode.opc"
+#line 462 "rl78-decode.opc"
ID(mov); DM(None, SADDR); DB(bit); SC(0);
-
+
/*----------------------------------------------------------------------*/
-
+
}
break;
case 0x04:
case 0x74:
{
/** 0111 0001 0bit 0100 mov1 cy, %1 */
-#line 793 "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 793 "rl78-decode.opc"
+#line 803 "rl78-decode.opc"
ID(mov); DCY(); SM(None, SADDR); SB(bit);
-
+
}
break;
case 0x05:
case 0x75:
{
/** 0111 0001 0bit 0101 and1 cy, %s1 */
-#line 325 "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 325 "rl78-decode.opc"
+#line 332 "rl78-decode.opc"
ID(and); DCY(); SM(None, SADDR); SB(bit);
-
+
/*----------------------------------------------------------------------*/
-
+
/* Note that the branch insns need to be listed before the shift
ones, as "shift count of zero" means "branch insn" */
-
+
}
break;
case 0x06:
case 0x76:
{
/** 0111 0001 0bit 0110 or1 cy, %s1 */
-#line 977 "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 977 "rl78-decode.opc"
+#line 987 "rl78-decode.opc"
ID(or); DCY(); SM(None, SADDR); SB(bit);
-
+
/*----------------------------------------------------------------------*/
-
+
}
break;
case 0x07:
case 0x77:
{
/** 0111 0001 0bit 0111 xor1 cy, %s1 */
-#line 1281 "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 1281 "rl78-decode.opc"
+#line 1291 "rl78-decode.opc"
ID(xor); DCY(); SM(None, SADDR); SB(bit);
-
+
/*----------------------------------------------------------------------*/
-
+
}
break;
case 0x08:
case 0x78:
{
/** 0111 0001 0bit 1000 clr1 %e!0 */
-#line 437 "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 437 "rl78-decode.opc"
+#line 444 "rl78-decode.opc"
ID(mov); DM(None, IMMU(2)); DB(bit); SC(0);
-
+
}
break;
case 0x09:
case 0x79:
{
/** 0111 0001 0bit 1001 mov1 %s0, cy */
-#line 802 "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 802 "rl78-decode.opc"
+#line 812 "rl78-decode.opc"
ID(mov); DM(None, SFR); DB(bit); SCY();
-
+
/*----------------------------------------------------------------------*/
-
+
}
break;
case 0x0a:
case 0x7a:
{
/** 0111 0001 0bit 1010 set1 %s0 */
-#line 1054 "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 1054 "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)
rl78->syntax = "ei";
-
+
}
break;
case 0x0b:
case 0x7b:
{
/** 0111 0001 0bit 1011 clr1 %s0 */
-#line 449 "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 449 "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)
rl78->syntax = "di";
-
+
}
break;
case 0x0c:
case 0x7c:
{
/** 0111 0001 0bit 1100 mov1 cy, %s1 */
-#line 796 "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 796 "rl78-decode.opc"
+#line 806 "rl78-decode.opc"
ID(mov); DCY(); SM(None, SFR); SB(bit);
-
+
}
break;
case 0x0d:
case 0x7d:
{
/** 0111 0001 0bit 1101 and1 cy, %s1 */
-#line 322 "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 322 "rl78-decode.opc"
+#line 329 "rl78-decode.opc"
ID(and); DCY(); SM(None, SFR); SB(bit);
-
+
}
break;
case 0x0e:
case 0x7e:
{
/** 0111 0001 0bit 1110 or1 cy, %s1 */
-#line 974 "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 974 "rl78-decode.opc"
+#line 984 "rl78-decode.opc"
ID(or); DCY(); SM(None, SFR); SB(bit);
-
+
}
break;
case 0x0f:
case 0x7f:
{
/** 0111 0001 0bit 1111 xor1 cy, %s1 */
-#line 1278 "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 1278 "rl78-decode.opc"
+#line 1288 "rl78-decode.opc"
ID(xor); DCY(); SM(None, SFR); SB(bit);
-
+
}
break;
case 0x80:
op[0], op[1]);
}
SYNTAX("set1 cy");
-#line 1051 "rl78-decode.opc"
+#line 1061 "rl78-decode.opc"
ID(mov); DCY(); SC(1);
-
+
}
break;
case 0x81:
case 0xf1:
{
/** 0111 0001 1bit 0001 mov1 %e0, cy */
-#line 781 "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 781 "rl78-decode.opc"
+#line 791 "rl78-decode.opc"
ID(mov); DM(HL, 0); DB(bit); SCY();
-
+
}
break;
case 0x82:
case 0xf2:
{
/** 0111 0001 1bit 0010 set1 %e0 */
-#line 1045 "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 1045 "rl78-decode.opc"
+#line 1055 "rl78-decode.opc"
ID(mov); DM(HL, 0); DB(bit); SC(1);
-
+
}
break;
case 0x83:
case 0xf3:
{
/** 0111 0001 1bit 0011 clr1 %e0 */
-#line 440 "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 440 "rl78-decode.opc"
+#line 447 "rl78-decode.opc"
ID(mov); DM(HL, 0); DB(bit); SC(0);
-
+
}
break;
case 0x84:
case 0xf4:
{
/** 0111 0001 1bit 0100 mov1 cy, %e1 */
-#line 787 "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 787 "rl78-decode.opc"
+#line 797 "rl78-decode.opc"
ID(mov); DCY(); SM(HL, 0); SB(bit);
-
+
}
break;
case 0x85:
case 0xf5:
{
/** 0111 0001 1bit 0101 and1 cy, %e1 */
-#line 316 "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 316 "rl78-decode.opc"
+#line 323 "rl78-decode.opc"
ID(and); DCY(); SM(HL, 0); SB(bit);
-
+
}
break;
case 0x86:
case 0xf6:
{
/** 0111 0001 1bit 0110 or1 cy, %e1 */
-#line 968 "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 968 "rl78-decode.opc"
+#line 978 "rl78-decode.opc"
ID(or); DCY(); SM(HL, 0); SB(bit);
-
+
}
break;
case 0x87:
case 0xf7:
{
/** 0111 0001 1bit 0111 xor1 cy, %e1 */
-#line 1272 "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 1272 "rl78-decode.opc"
+#line 1282 "rl78-decode.opc"
ID(xor); DCY(); SM(HL, 0); SB(bit);
-
+
}
break;
case 0x88:
op[0], op[1]);
}
SYNTAX("clr1 cy");
-#line 446 "rl78-decode.opc"
+#line 453 "rl78-decode.opc"
ID(mov); DCY(); SC(0);
-
+
}
break;
case 0x89:
case 0xf9:
{
/** 0111 0001 1bit 1001 mov1 %e0, cy */
-#line 784 "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 784 "rl78-decode.opc"
+#line 794 "rl78-decode.opc"
ID(mov); DR(A); DB(bit); SCY();
-
+
}
break;
case 0x8a:
case 0xfa:
{
/** 0111 0001 1bit 1010 set1 %0 */
-#line 1048 "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 1048 "rl78-decode.opc"
+#line 1058 "rl78-decode.opc"
ID(mov); DR(A); DB(bit); SC(1);
-
+
}
break;
case 0x8b:
case 0xfb:
{
/** 0111 0001 1bit 1011 clr1 %0 */
-#line 443 "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 443 "rl78-decode.opc"
+#line 450 "rl78-decode.opc"
ID(mov); DR(A); DB(bit); SC(0);
-
+
}
break;
case 0x8c:
case 0xfc:
{
/** 0111 0001 1bit 1100 mov1 cy, %e1 */
-#line 790 "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 790 "rl78-decode.opc"
+#line 800 "rl78-decode.opc"
ID(mov); DCY(); SR(A); SB(bit);
-
+
}
break;
case 0x8d:
case 0xfd:
{
/** 0111 0001 1bit 1101 and1 cy, %1 */
-#line 319 "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 319 "rl78-decode.opc"
+#line 326 "rl78-decode.opc"
ID(and); DCY(); SR(A); SB(bit);
-
+
}
break;
case 0x8e:
case 0xfe:
{
/** 0111 0001 1bit 1110 or1 cy, %1 */
-#line 971 "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 971 "rl78-decode.opc"
+#line 981 "rl78-decode.opc"
ID(or); DCY(); SR(A); SB(bit);
-
+
}
break;
case 0x8f:
case 0xff:
{
/** 0111 0001 1bit 1111 xor1 cy, %1 */
-#line 1275 "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 1275 "rl78-decode.opc"
+#line 1285 "rl78-decode.opc"
ID(xor); DCY(); SR(A); SB(bit);
-
+
}
break;
case 0xc0:
op[0], op[1]);
}
SYNTAX("not1 cy");
-#line 912 "rl78-decode.opc"
+#line 922 "rl78-decode.opc"
ID(xor); DCY(); SC(1);
-
+
/*----------------------------------------------------------------------*/
-
+
}
break;
default: UNSUPPORTED(); break;
op[0]);
}
SYNTAX("movw %e0, %1");
-#line 873 "rl78-decode.opc"
+#line 883 "rl78-decode.opc"
ID(mov); W(); DM(BC, IMMU(2)); SR(AX);
-
+
}
break;
case 0x79:
op[0]);
}
SYNTAX("movw %0, %e1");
-#line 864 "rl78-decode.opc"
+#line 874 "rl78-decode.opc"
ID(mov); W(); DR(AX); SM(BC, IMMU(2));
-
+
}
break;
case 0x7a:
op[0]);
}
SYNTAX("xor %0, #%1");
-#line 1267 "rl78-decode.opc"
+#line 1277 "rl78-decode.opc"
ID(xor); DM(None, SADDR); SC(IMMU(1)); Fz;
-
+
/*----------------------------------------------------------------------*/
-
+
}
break;
case 0x7b:
op[0]);
}
SYNTAX("xor %0, %1");
-#line 1264 "rl78-decode.opc"
+#line 1274 "rl78-decode.opc"
ID(xor); DR(A); SM(None, SADDR); Fz;
-
+
}
break;
case 0x7c:
op[0]);
}
SYNTAX("xor %0, #%1");
-#line 1255 "rl78-decode.opc"
+#line 1265 "rl78-decode.opc"
ID(xor); DR(A); SC(IMMU(1)); Fz;
-
+
}
break;
case 0x7d:
op[0]);
}
SYNTAX("xor %0, %e1");
-#line 1243 "rl78-decode.opc"
+#line 1253 "rl78-decode.opc"
ID(xor); DR(A); SM(HL, 0); Fz;
-
+
}
break;
case 0x7e:
{
- /** 0111 1110 xor %0, %e1 */
+ /** 0111 1110 xor %0, %ea1 */
if (trace)
{
printf ("\033[33m%s\033[0m %02x\n",
- "/** 0111 1110 xor %0, %e1 */",
+ "/** 0111 1110 xor %0, %ea1 */",
op[0]);
}
- SYNTAX("xor %0, %e1");
-#line 1249 "rl78-decode.opc"
+ SYNTAX("xor %0, %ea1");
+#line 1259 "rl78-decode.opc"
ID(xor); DR(A); SM(HL, IMMU(1)); Fz;
-
+
}
break;
case 0x7f:
op[0]);
}
SYNTAX("xor %0, %e!1");
-#line 1240 "rl78-decode.opc"
+#line 1250 "rl78-decode.opc"
ID(xor); DR(A); SM(None, IMMU(2)); Fz;
-
+
}
break;
case 0x80:
case 0x87:
{
/** 1000 0reg inc %0 */
-#line 586 "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 586 "rl78-decode.opc"
+#line 593 "rl78-decode.opc"
ID(add); DRB(reg); SC(1); Fza;
-
+
}
break;
case 0x88:
{
- /** 1000 1000 mov %0, %e1 */
+ /** 1000 1000 mov %0, %ea1 */
if (trace)
{
printf ("\033[33m%s\033[0m %02x\n",
- "/** 1000 1000 mov %0, %e1 */",
+ "/** 1000 1000 mov %0, %ea1 */",
op[0]);
}
- SYNTAX("mov %0, %e1");
-#line 665 "rl78-decode.opc"
+ SYNTAX("mov %0, %ea1");
+#line 672 "rl78-decode.opc"
ID(mov); DR(A); SM(SP, IMMU(1));
-
+
}
break;
case 0x89:
op[0]);
}
SYNTAX("mov %0, %e1");
-#line 647 "rl78-decode.opc"
+#line 654 "rl78-decode.opc"
ID(mov); DR(A); SM(DE, 0);
-
+
}
break;
case 0x8a:
{
- /** 1000 1010 mov %0, %e1 */
+ /** 1000 1010 mov %0, %ea1 */
if (trace)
{
printf ("\033[33m%s\033[0m %02x\n",
- "/** 1000 1010 mov %0, %e1 */",
+ "/** 1000 1010 mov %0, %ea1 */",
op[0]);
}
- SYNTAX("mov %0, %e1");
-#line 650 "rl78-decode.opc"
+ SYNTAX("mov %0, %ea1");
+#line 657 "rl78-decode.opc"
ID(mov); DR(A); SM(DE, IMMU(1));
-
+
}
break;
case 0x8b:
op[0]);
}
SYNTAX("mov %0, %e1");
-#line 653 "rl78-decode.opc"
+#line 660 "rl78-decode.opc"
ID(mov); DR(A); SM(HL, 0);
-
+
}
break;
case 0x8c:
{
- /** 1000 1100 mov %0, %e1 */
+ /** 1000 1100 mov %0, %ea1 */
if (trace)
{
printf ("\033[33m%s\033[0m %02x\n",
- "/** 1000 1100 mov %0, %e1 */",
+ "/** 1000 1100 mov %0, %ea1 */",
op[0]);
}
- SYNTAX("mov %0, %e1");
-#line 656 "rl78-decode.opc"
+ SYNTAX("mov %0, %ea1");
+#line 663 "rl78-decode.opc"
ID(mov); DR(A); SM(HL, IMMU(1));
-
+
}
break;
case 0x8d:
op[0]);
}
SYNTAX("mov %0, %1");
-#line 689 "rl78-decode.opc"
+#line 696 "rl78-decode.opc"
ID(mov); DR(A); SM(None, SADDR);
-
+
}
break;
case 0x8e:
op[0]);
}
SYNTAX("mov %0, %s1");
-#line 686 "rl78-decode.opc"
+#line 693 "rl78-decode.opc"
ID(mov); DR(A); SM(None, SFR);
-
+
}
break;
case 0x8f:
op[0]);
}
SYNTAX("mov %0, %e!1");
-#line 644 "rl78-decode.opc"
+#line 651 "rl78-decode.opc"
ID(mov); DR(A); SM(None, IMMU(2));
-
+
}
break;
case 0x90:
case 0x97:
{
/** 1001 0reg dec %0 */
-#line 553 "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 553 "rl78-decode.opc"
+#line 560 "rl78-decode.opc"
ID(sub); DRB(reg); SC(1); Fza;
-
+
}
break;
case 0x98:
{
- /** 1001 1000 mov %0, %1 */
+ /** 1001 1000 mov %a0, %1 */
if (trace)
{
printf ("\033[33m%s\033[0m %02x\n",
- "/** 1001 1000 mov %0, %1 */",
+ "/** 1001 1000 mov %a0, %1 */",
op[0]);
}
- SYNTAX("mov %0, %1");
-#line 641 "rl78-decode.opc"
+ SYNTAX("mov %a0, %1");
+#line 648 "rl78-decode.opc"
ID(mov); DM(SP, IMMU(1)); SR(A);
-
+
}
break;
case 0x99:
{
- /** 1001 1001 mov %e0,%1 */
+ /** 1001 1001 mov %e0, %1 */
if (trace)
{
printf ("\033[33m%s\033[0m %02x\n",
- "/** 1001 1001 mov %e0,%1 */",
+ "/** 1001 1001 mov %e0, %1 */",
op[0]);
}
- SYNTAX("mov %e0,%1");
-#line 614 "rl78-decode.opc"
+ SYNTAX("mov %e0, %1");
+#line 621 "rl78-decode.opc"
ID(mov); DM(DE, 0); SR(A);
-
+
}
break;
case 0x9a:
{
- /** 1001 1010 mov %e0, %1 */
+ /** 1001 1010 mov %ea0, %1 */
if (trace)
{
printf ("\033[33m%s\033[0m %02x\n",
- "/** 1001 1010 mov %e0, %1 */",
+ "/** 1001 1010 mov %ea0, %1 */",
op[0]);
}
- SYNTAX("mov %e0, %1");
-#line 620 "rl78-decode.opc"
+ SYNTAX("mov %ea0, %1");
+#line 627 "rl78-decode.opc"
ID(mov); DM(DE, IMMU(1)); SR(A);
-
+
}
break;
case 0x9b:
{
- /** 1001 1011 mov %e0,%1 */
+ /** 1001 1011 mov %e0, %1 */
if (trace)
{
printf ("\033[33m%s\033[0m %02x\n",
- "/** 1001 1011 mov %e0,%1 */",
+ "/** 1001 1011 mov %e0, %1 */",
op[0]);
}
- SYNTAX("mov %e0,%1");
-#line 623 "rl78-decode.opc"
+ SYNTAX("mov %e0, %1");
+#line 630 "rl78-decode.opc"
ID(mov); DM(HL, 0); SR(A);
-
+
}
break;
case 0x9c:
{
- /** 1001 1100 mov %e0, %1 */
+ /** 1001 1100 mov %ea0, %1 */
if (trace)
{
printf ("\033[33m%s\033[0m %02x\n",
- "/** 1001 1100 mov %e0, %1 */",
+ "/** 1001 1100 mov %ea0, %1 */",
op[0]);
}
- SYNTAX("mov %e0, %1");
-#line 632 "rl78-decode.opc"
+ SYNTAX("mov %ea0, %1");
+#line 639 "rl78-decode.opc"
ID(mov); DM(HL, IMMU(1)); SR(A);
-
+
}
break;
case 0x9d:
op[0]);
}
SYNTAX("mov %0, %1");
-#line 746 "rl78-decode.opc"
+#line 753 "rl78-decode.opc"
ID(mov); DM(None, SADDR); SR(A);
-
+
}
break;
case 0x9e:
{
- /** 1001 1110 mov %0, %1 */
+ /** 1001 1110 mov %s0, %1 */
if (trace)
{
printf ("\033[33m%s\033[0m %02x\n",
- "/** 1001 1110 mov %0, %1 */",
+ "/** 1001 1110 mov %s0, %1 */",
op[0]);
}
- SYNTAX("mov %0, %1");
-#line 776 "rl78-decode.opc"
+ SYNTAX("mov %s0, %1");
+#line 786 "rl78-decode.opc"
ID(mov); DM(None, SFR); SR(A);
-
+
/*----------------------------------------------------------------------*/
-
+
}
break;
case 0x9f:
op[0]);
}
SYNTAX("mov %e!0, %1");
-#line 611 "rl78-decode.opc"
+#line 618 "rl78-decode.opc"
ID(mov); DM(None, IMMU(2)); SR(A);
-
+
}
break;
case 0xa0:
op[0]);
}
SYNTAX("inc %e!0");
-#line 580 "rl78-decode.opc"
+#line 587 "rl78-decode.opc"
ID(add); DM(None, IMMU(2)); SC(1); Fza;
-
+
}
break;
case 0xa1:
case 0xa7:
{
/** 1010 0rg1 incw %0 */
-#line 600 "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 600 "rl78-decode.opc"
+#line 607 "rl78-decode.opc"
ID(add); W(); DRW(rg); SC(1);
-
+
}
break;
case 0xa2:
op[0]);
}
SYNTAX("incw %e!0");
-#line 594 "rl78-decode.opc"
+#line 601 "rl78-decode.opc"
ID(add); W(); DM(None, IMMU(2)); SC(1);
-
+
}
break;
case 0xa4:
op[0]);
}
SYNTAX("inc %0");
-#line 589 "rl78-decode.opc"
+#line 596 "rl78-decode.opc"
ID(add); DM(None, SADDR); SC(1); Fza;
-
+
/*----------------------------------------------------------------------*/
-
+
}
break;
case 0xa6:
op[0]);
}
SYNTAX("incw %0");
-#line 603 "rl78-decode.opc"
+#line 610 "rl78-decode.opc"
ID(add); W(); DM(None, SADDR); SC(1);
-
+
/*----------------------------------------------------------------------*/
-
+
}
break;
case 0xa8:
{
- /** 1010 1000 movw %0, %1 */
+ /** 1010 1000 movw %0, %a1 */
if (trace)
{
printf ("\033[33m%s\033[0m %02x\n",
- "/** 1010 1000 movw %0, %1 */",
+ "/** 1010 1000 movw %0, %a1 */",
op[0]);
}
- SYNTAX("movw %0, %1");
-#line 846 "rl78-decode.opc"
+ SYNTAX("movw %0, %a1");
+#line 856 "rl78-decode.opc"
ID(mov); W(); DR(AX); SM(SP, IMMU(1));
-
+
}
break;
case 0xa9:
op[0]);
}
SYNTAX("movw %0, %e1");
-#line 834 "rl78-decode.opc"
+#line 844 "rl78-decode.opc"
ID(mov); W(); DR(AX); SM(DE, 0);
-
+
}
break;
case 0xaa:
{
- /** 1010 1010 movw %0, %e1 */
+ /** 1010 1010 movw %0, %ea1 */
if (trace)
{
printf ("\033[33m%s\033[0m %02x\n",
- "/** 1010 1010 movw %0, %e1 */",
+ "/** 1010 1010 movw %0, %ea1 */",
op[0]);
}
- SYNTAX("movw %0, %e1");
-#line 837 "rl78-decode.opc"
+ SYNTAX("movw %0, %ea1");
+#line 847 "rl78-decode.opc"
ID(mov); W(); DR(AX); SM(DE, IMMU(1));
-
+
}
break;
case 0xab:
op[0]);
}
SYNTAX("movw %0, %e1");
-#line 840 "rl78-decode.opc"
+#line 850 "rl78-decode.opc"
ID(mov); W(); DR(AX); SM(HL, 0);
-
+
}
break;
case 0xac:
{
- /** 1010 1100 movw %0, %e1 */
+ /** 1010 1100 movw %0, %ea1 */
if (trace)
{
printf ("\033[33m%s\033[0m %02x\n",
- "/** 1010 1100 movw %0, %e1 */",
+ "/** 1010 1100 movw %0, %ea1 */",
op[0]);
}
- SYNTAX("movw %0, %e1");
-#line 843 "rl78-decode.opc"
+ SYNTAX("movw %0, %ea1");
+#line 853 "rl78-decode.opc"
ID(mov); W(); DR(AX); SM(HL, IMMU(1));
-
+
}
break;
case 0xad:
op[0]);
}
SYNTAX("movw %0, %1");
-#line 876 "rl78-decode.opc"
+#line 886 "rl78-decode.opc"
ID(mov); W(); DR(AX); SM(None, SADDR);
-
+
}
break;
case 0xae:
op[0]);
}
SYNTAX("movw %0, %s1");
-#line 879 "rl78-decode.opc"
+#line 889 "rl78-decode.opc"
ID(mov); W(); DR(AX); SM(None, SFR);
-
+
}
break;
case 0xaf:
op[0]);
}
SYNTAX("movw %0, %e!1");
-#line 830 "rl78-decode.opc"
+#line 840 "rl78-decode.opc"
ID(mov); W(); DR(AX); SM(None, IMMU(2));
-
-
+
+
}
break;
case 0xb0:
op[0]);
}
SYNTAX("dec %e!0");
-#line 547 "rl78-decode.opc"
+#line 554 "rl78-decode.opc"
ID(sub); DM(None, IMMU(2)); SC(1); Fza;
-
+
}
break;
case 0xb1:
case 0xb7:
{
/** 1011 0rg1 decw %0 */
-#line 567 "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 567 "rl78-decode.opc"
+#line 574 "rl78-decode.opc"
ID(sub); W(); DRW(rg); SC(1);
-
+
}
break;
case 0xb2:
op[0]);
}
SYNTAX("decw %e!0");
-#line 561 "rl78-decode.opc"
+#line 568 "rl78-decode.opc"
ID(sub); W(); DM(None, IMMU(2)); SC(1);
-
+
}
break;
case 0xb4:
op[0]);
}
SYNTAX("dec %0");
-#line 556 "rl78-decode.opc"
+#line 563 "rl78-decode.opc"
ID(sub); DM(None, SADDR); SC(1); Fza;
-
+
/*----------------------------------------------------------------------*/
-
+
}
break;
case 0xb6:
op[0]);
}
SYNTAX("decw %0");
-#line 570 "rl78-decode.opc"
+#line 577 "rl78-decode.opc"
ID(sub); W(); DM(None, SADDR); SC(1);
-
+
/*----------------------------------------------------------------------*/
-
+
}
break;
case 0xb8:
{
- /** 1011 1000 movw %0, %1 */
+ /** 1011 1000 movw %a0, %1 */
if (trace)
{
printf ("\033[33m%s\033[0m %02x\n",
- "/** 1011 1000 movw %0, %1 */",
+ "/** 1011 1000 movw %a0, %1 */",
op[0]);
}
- SYNTAX("movw %0, %1");
-#line 827 "rl78-decode.opc"
+ SYNTAX("movw %a0, %1");
+#line 837 "rl78-decode.opc"
ID(mov); W(); DM(SP, IMMU(1)); SR(AX);
-
+
}
break;
case 0xb9:
op[0]);
}
SYNTAX("movw %e0, %1");
-#line 815 "rl78-decode.opc"
+#line 825 "rl78-decode.opc"
ID(mov); W(); DM(DE, 0); SR(AX);
-
+
}
break;
case 0xba:
{
- /** 1011 1010 movw %e0, %1 */
+ /** 1011 1010 movw %ea0, %1 */
if (trace)
{
printf ("\033[33m%s\033[0m %02x\n",
- "/** 1011 1010 movw %e0, %1 */",
+ "/** 1011 1010 movw %ea0, %1 */",
op[0]);
}
- SYNTAX("movw %e0, %1");
-#line 818 "rl78-decode.opc"
+ SYNTAX("movw %ea0, %1");
+#line 828 "rl78-decode.opc"
ID(mov); W(); DM(DE, IMMU(1)); SR(AX);
-
+
}
break;
case 0xbb:
op[0]);
}
SYNTAX("movw %e0, %1");
-#line 821 "rl78-decode.opc"
+#line 831 "rl78-decode.opc"
ID(mov); W(); DM(HL, 0); SR(AX);
-
+
}
break;
case 0xbc:
{
- /** 1011 1100 movw %e0, %1 */
+ /** 1011 1100 movw %ea0, %1 */
if (trace)
{
printf ("\033[33m%s\033[0m %02x\n",
- "/** 1011 1100 movw %e0, %1 */",
+ "/** 1011 1100 movw %ea0, %1 */",
op[0]);
}
- SYNTAX("movw %e0, %1");
-#line 824 "rl78-decode.opc"
+ SYNTAX("movw %ea0, %1");
+#line 834 "rl78-decode.opc"
ID(mov); W(); DM(HL, IMMU(1)); SR(AX);
-
+
}
break;
case 0xbd:
op[0]);
}
SYNTAX("movw %0, %1");
-#line 891 "rl78-decode.opc"
+#line 901 "rl78-decode.opc"
ID(mov); W(); DM(None, SADDR); SR(AX);
-
+
}
break;
case 0xbe:
{
- /** 1011 1110 movw %0, %1 */
+ /** 1011 1110 movw %s0, %1 */
if (trace)
{
printf ("\033[33m%s\033[0m %02x\n",
- "/** 1011 1110 movw %0, %1 */",
+ "/** 1011 1110 movw %s0, %1 */",
op[0]);
}
- SYNTAX("movw %0, %1");
-#line 897 "rl78-decode.opc"
+ SYNTAX("movw %s0, %1");
+#line 907 "rl78-decode.opc"
ID(mov); W(); DM(None, SFR); SR(AX);
-
+
/*----------------------------------------------------------------------*/
-
+
}
break;
case 0xbf:
op[0]);
}
SYNTAX("movw %e!0, %1");
-#line 812 "rl78-decode.opc"
+#line 822 "rl78-decode.opc"
ID(mov); W(); DM(None, IMMU(2)); SR(AX);
-
+
}
break;
case 0xc0:
case 0xc6:
{
/** 1100 0rg0 pop %0 */
-#line 982 "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 982 "rl78-decode.opc"
+#line 992 "rl78-decode.opc"
ID(mov); W(); DRW(rg); SPOP();
-
+
}
break;
case 0xc1:
case 0xc7:
{
/** 1100 0rg1 push %1 */
-#line 990 "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 990 "rl78-decode.opc"
+#line 1000 "rl78-decode.opc"
ID(mov); W(); DPUSH(); SRW(rg);
-
+
}
break;
case 0xc8:
{
- /** 1100 1000 mov %0, #%1 */
+ /** 1100 1000 mov %a0, #%1 */
if (trace)
{
printf ("\033[33m%s\033[0m %02x\n",
- "/** 1100 1000 mov %0, #%1 */",
+ "/** 1100 1000 mov %a0, #%1 */",
op[0]);
}
- SYNTAX("mov %0, #%1");
-#line 638 "rl78-decode.opc"
+ SYNTAX("mov %a0, #%1");
+#line 645 "rl78-decode.opc"
ID(mov); DM(SP, IMMU(1)); SC(IMMU(1));
-
+
}
break;
case 0xc9:
op[0]);
}
SYNTAX("movw %0, #%1");
-#line 888 "rl78-decode.opc"
+#line 898 "rl78-decode.opc"
ID(mov); W(); DM(None, SADDR); SC(IMMU(2));
-
+
}
break;
case 0xca:
{
- /** 1100 1010 mov %e0, #%1 */
+ /** 1100 1010 mov %ea0, #%1 */
if (trace)
{
printf ("\033[33m%s\033[0m %02x\n",
- "/** 1100 1010 mov %e0, #%1 */",
+ "/** 1100 1010 mov %ea0, #%1 */",
op[0]);
}
- SYNTAX("mov %e0, #%1");
-#line 617 "rl78-decode.opc"
+ SYNTAX("mov %ea0, #%1");
+#line 624 "rl78-decode.opc"
ID(mov); DM(DE, IMMU(1)); SC(IMMU(1));
-
+
}
break;
case 0xcb:
{
- /** 1100 1011 movw %0, #%1 */
+ /** 1100 1011 movw %s0, #%1 */
if (trace)
{
printf ("\033[33m%s\033[0m %02x\n",
- "/** 1100 1011 movw %0, #%1 */",
+ "/** 1100 1011 movw %s0, #%1 */",
op[0]);
}
- SYNTAX("movw %0, #%1");
-#line 894 "rl78-decode.opc"
+ SYNTAX("movw %s0, #%1");
+#line 904 "rl78-decode.opc"
ID(mov); W(); DM(None, SFR); SC(IMMU(2));
-
+
}
break;
case 0xcc:
{
- /** 1100 1100 mov %e0, #%1 */
+ /** 1100 1100 mov %ea0, #%1 */
if (trace)
{
printf ("\033[33m%s\033[0m %02x\n",
- "/** 1100 1100 mov %e0, #%1 */",
+ "/** 1100 1100 mov %ea0, #%1 */",
op[0]);
}
- SYNTAX("mov %e0, #%1");
-#line 629 "rl78-decode.opc"
+ SYNTAX("mov %ea0, #%1");
+#line 636 "rl78-decode.opc"
ID(mov); DM(HL, IMMU(1)); SC(IMMU(1));
-
+
}
break;
case 0xcd:
op[0]);
}
SYNTAX("mov %0, #%1");
-#line 743 "rl78-decode.opc"
+#line 750 "rl78-decode.opc"
ID(mov); DM(None, SADDR); SC(IMMU(1));
-
+
}
break;
case 0xce:
op[0]);
}
SYNTAX("mov %s0, #%1");
-#line 749 "rl78-decode.opc"
+#line 756 "rl78-decode.opc"
op0 = SFR;
op1 = IMMU(1);
ID(mov); DM(None, op0); SC(op1);
- if (op0 == 0xffffb)
+ if (op0 == 0xffffb && isa == RL78_ISA_G14)
switch (op1)
{
case 0x01:
rl78->syntax = "divwu"; ID(divwu);
break;
}
- }
+
+ }
break;
case 0xcf:
{
op[0]);
}
SYNTAX("mov %e!0, #%1");
-#line 608 "rl78-decode.opc"
+#line 615 "rl78-decode.opc"
ID(mov); DM(None, IMMU(2)); SC(IMMU(1));
-
+
}
break;
case 0xd0:
case 0xd3:
{
/** 1101 00rg cmp0 %0 */
-#line 517 "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 517 "rl78-decode.opc"
+#line 524 "rl78-decode.opc"
ID(cmp); DRB(rg); SC(0); Fzac;
-
+
}
break;
case 0xd4:
op[0]);
}
SYNTAX("cmp0 %0");
-#line 520 "rl78-decode.opc"
+#line 527 "rl78-decode.opc"
ID(cmp); DM(None, SADDR); SC(0); Fzac;
-
+
/*----------------------------------------------------------------------*/
-
+
}
break;
case 0xd5:
op[0]);
}
SYNTAX("cmp0 %e!0");
-#line 514 "rl78-decode.opc"
+#line 521 "rl78-decode.opc"
ID(cmp); DM(None, IMMU(2)); SC(0); Fzac;
-
+
}
break;
case 0xd6:
op[0]);
}
SYNTAX("mulu x");
-#line 902 "rl78-decode.opc"
+#line 912 "rl78-decode.opc"
ID(mulu);
-
+
/*----------------------------------------------------------------------*/
-
+
}
break;
case 0xd7:
op[0]);
}
SYNTAX("ret");
-#line 998 "rl78-decode.opc"
+#line 1008 "rl78-decode.opc"
ID(ret);
-
+
}
break;
case 0xd8:
op[0]);
}
SYNTAX("mov %0, %1");
-#line 710 "rl78-decode.opc"
+#line 717 "rl78-decode.opc"
ID(mov); DR(X); SM(None, SADDR);
-
+
}
break;
case 0xd9:
op[0]);
}
SYNTAX("mov %0, %e!1");
-#line 707 "rl78-decode.opc"
+#line 714 "rl78-decode.opc"
ID(mov); DR(X); SM(None, IMMU(2));
-
+
}
break;
case 0xda:
case 0xfa:
{
/** 11ra 1010 movw %0, %1 */
-#line 885 "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 885 "rl78-decode.opc"
+#line 895 "rl78-decode.opc"
ID(mov); W(); DRW(ra); SM(None, SADDR);
-
+
}
break;
case 0xdb:
case 0xeb:
case 0xfb:
{
- /** 11ra 1011 movw %0, %e!1 */
-#line 882 "rl78-decode.opc"
+ /** 11ra 1011 movw %0, %es!1 */
+#line 892 "rl78-decode.opc"
int ra AU = (op[0] >> 4) & 0x03;
if (trace)
{
printf ("\033[33m%s\033[0m %02x\n",
- "/** 11ra 1011 movw %0, %e!1 */",
+ "/** 11ra 1011 movw %0, %es!1 */",
op[0]);
printf (" ra = 0x%x\n", ra);
}
- SYNTAX("movw %0, %e!1");
-#line 882 "rl78-decode.opc"
+ SYNTAX("movw %0, %es!1");
+#line 892 "rl78-decode.opc"
ID(mov); W(); DRW(ra); SM(None, IMMU(2));
-
+
}
break;
case 0xdc:
op[0]);
}
SYNTAX("bc $%a0");
-#line 333 "rl78-decode.opc"
+#line 340 "rl78-decode.opc"
ID(branch_cond); DC(pc+IMMS(1)+2); SR(None); COND(C);
-
+
}
break;
case 0xdd:
op[0]);
}
SYNTAX("bz $%a0");
-#line 345 "rl78-decode.opc"
+#line 352 "rl78-decode.opc"
ID(branch_cond); DC(pc+IMMS(1)+2); SR(None); COND(Z);
-
+
}
break;
case 0xde:
op[0]);
}
SYNTAX("bnc $%a0");
-#line 336 "rl78-decode.opc"
+#line 343 "rl78-decode.opc"
ID(branch_cond); DC(pc+IMMS(1)+2); SR(None); COND(NC);
-
+
}
break;
case 0xdf:
op[0]);
}
SYNTAX("bnz $%a0");
-#line 348 "rl78-decode.opc"
+#line 355 "rl78-decode.opc"
ID(branch_cond); DC(pc+IMMS(1)+2); SR(None); COND(NZ);
-
+
/*----------------------------------------------------------------------*/
-
+
}
break;
case 0xe0:
case 0xe3:
{
/** 1110 00rg oneb %0 */
-#line 920 "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 920 "rl78-decode.opc"
+#line 930 "rl78-decode.opc"
ID(mov); DRB(rg); SC(1);
-
+
}
break;
case 0xe4:
op[0]);
}
SYNTAX("oneb %0");
-#line 923 "rl78-decode.opc"
+#line 933 "rl78-decode.opc"
ID(mov); DM(None, SADDR); SC(1);
-
+
/*----------------------------------------------------------------------*/
-
+
}
break;
case 0xe5:
op[0]);
}
SYNTAX("oneb %e!0");
-#line 917 "rl78-decode.opc"
+#line 927 "rl78-decode.opc"
ID(mov); DM(None, IMMU(2)); SC(1);
-
+
}
break;
case 0xe6:
op[0]);
}
SYNTAX("onew %0");
-#line 928 "rl78-decode.opc"
+#line 938 "rl78-decode.opc"
ID(mov); DR(AX); SC(1);
-
+
}
break;
case 0xe7:
op[0]);
}
SYNTAX("onew %0");
-#line 931 "rl78-decode.opc"
+#line 941 "rl78-decode.opc"
ID(mov); DR(BC); SC(1);
-
+
/*----------------------------------------------------------------------*/
-
+
}
break;
case 0xe8:
op[0]);
}
SYNTAX("mov %0, %1");
-#line 698 "rl78-decode.opc"
+#line 705 "rl78-decode.opc"
ID(mov); DR(B); SM(None, SADDR);
-
+
}
break;
case 0xe9:
op[0]);
}
SYNTAX("mov %0, %e!1");
-#line 692 "rl78-decode.opc"
+#line 699 "rl78-decode.opc"
ID(mov); DR(B); SM(None, IMMU(2));
-
+
}
break;
case 0xec:
op[0]);
}
SYNTAX("br !%!a0");
-#line 367 "rl78-decode.opc"
+#line 374 "rl78-decode.opc"
ID(branch); DC(IMMU(3));
-
+
}
break;
case 0xed:
op[0]);
}
SYNTAX("br %!a0");
-#line 370 "rl78-decode.opc"
+#line 377 "rl78-decode.opc"
ID(branch); DC(IMMU(2));
-
+
}
break;
case 0xee:
op[0]);
}
SYNTAX("br $%!a0");
-#line 373 "rl78-decode.opc"
+#line 380 "rl78-decode.opc"
ID(branch); DC(pc+IMMS(2)+3);
-
+
}
break;
case 0xef:
op[0]);
}
SYNTAX("br $%a0");
-#line 376 "rl78-decode.opc"
+#line 383 "rl78-decode.opc"
ID(branch); DC(pc+IMMS(1)+2);
-
+
}
break;
case 0xf0:
case 0xf3:
{
/** 1111 00rg clrb %0 */
-#line 463 "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 463 "rl78-decode.opc"
+#line 470 "rl78-decode.opc"
ID(mov); DRB(rg); SC(0);
-
+
}
break;
case 0xf4:
op[0]);
}
SYNTAX("clrb %0");
-#line 466 "rl78-decode.opc"
+#line 473 "rl78-decode.opc"
ID(mov); DM(None, SADDR); SC(0);
-
+
/*----------------------------------------------------------------------*/
-
+
}
break;
case 0xf5:
op[0]);
}
SYNTAX("clrb %e!0");
-#line 460 "rl78-decode.opc"
+#line 467 "rl78-decode.opc"
ID(mov); DM(None, IMMU(2)); SC(0);
-
+
}
break;
case 0xf6:
op[0]);
}
SYNTAX("clrw %0");
-#line 471 "rl78-decode.opc"
+#line 478 "rl78-decode.opc"
ID(mov); DR(AX); SC(0);
-
+
}
break;
case 0xf7:
op[0]);
}
SYNTAX("clrw %0");
-#line 474 "rl78-decode.opc"
+#line 481 "rl78-decode.opc"
ID(mov); DR(BC); SC(0);
-
+
/*----------------------------------------------------------------------*/
-
+
}
break;
case 0xf8:
op[0]);
}
SYNTAX("mov %0, %1");
-#line 704 "rl78-decode.opc"
+#line 711 "rl78-decode.opc"
ID(mov); DR(C); SM(None, SADDR);
-
+
}
break;
case 0xf9:
op[0]);
}
SYNTAX("mov %0, %e!1");
-#line 701 "rl78-decode.opc"
+#line 708 "rl78-decode.opc"
ID(mov); DR(C); SM(None, IMMU(2));
-
+
}
break;
case 0xfc:
op[0]);
}
SYNTAX("call !%!a0");
-#line 420 "rl78-decode.opc"
+#line 427 "rl78-decode.opc"
ID(call); DC(IMMU(3));
-
+
}
break;
case 0xfd:
op[0]);
}
SYNTAX("call %!a0");
-#line 423 "rl78-decode.opc"
+#line 430 "rl78-decode.opc"
ID(call); DC(IMMU(2));
-
+
}
break;
case 0xfe:
op[0]);
}
SYNTAX("call $%!a0");
-#line 426 "rl78-decode.opc"
+#line 433 "rl78-decode.opc"
ID(call); DC(pc+IMMS(2)+3);
-
+
}
break;
case 0xff:
op[0]);
}
SYNTAX("brk1");
-#line 384 "rl78-decode.opc"
+#line 391 "rl78-decode.opc"
ID(break);
-
+
}
break;
}
-#line 1286 "rl78-decode.opc"
+#line 1296 "rl78-decode.opc"
return rl78->n_bytes;
}