* [patch] rl78 - add not1 opcode
@ 2012-01-25 1:40 DJ Delorie
0 siblings, 0 replies; only message in thread
From: DJ Delorie @ 2012-01-25 1:40 UTC (permalink / raw)
To: binutils
Committed.
* rl78-decode.opc (rl78_decode_opcode): Add NOT1.
* rl78-decode.c: Regenerate.
* config/rl78-parse.y (NOT1): Add.
Index: opcodes/rl78-decode.opc
===================================================================
RCS file: /cvs/src/src/opcodes/rl78-decode.opc,v
retrieving revision 1.1
diff -p -U5 -r1.1 rl78-decode.opc
--- opcodes/rl78-decode.opc 2 Nov 2011 03:09:11 -0000 1.1
+++ opcodes/rl78-decode.opc 25 Jan 2012 01:34:19 -0000
@@ -886,10 +886,15 @@ rl78_decode_opcode (unsigned long pc AU,
/** 0000 0000 nop */
ID(nop);
/*----------------------------------------------------------------------*/
+/** 0111 0001 1100 0000 not1 cy */
+ ID(xor); DCY(); SC(1);
+
+/*----------------------------------------------------------------------*/
+
/** 1110 0101 oneb %e0%!0 */
ID(mov); DM(None, IMMU(2)); SC(1);
/** 1110 00rg oneb %0 */
ID(mov); DRB(rg); SC(1);
Index: gas/config/rl78-parse.y
===================================================================
RCS file: /cvs/src/src/gas/config/rl78-parse.y,v
retrieving revision 1.3
diff -p -U5 -r1.3 rl78-parse.y
--- gas/config/rl78-parse.y 23 Dec 2011 01:49:37 -0000 1.3
+++ gas/config/rl78-parse.y 25 Jan 2012 01:34:19 -0000
@@ -164,11 +164,11 @@ reg_xbc (int reg)
%token DEC DECW DI DIVHU DIVWU
%token EI
%token HALT
%token INC INCW
%token MACH MACHU MOV MOV1 MOVS MOVW MULH MULHU MULU
-%token NOP
+%token NOP NOT1
%token ONEB ONEW OR OR1
%token POP PUSH
%token RET RETI RETB ROL ROLC ROLWC ROR RORC
%token SAR SARW SEL SET1 SHL SHLW SHR SHRW
%token SKC SKH SKNC SKNH SKNZ SKZ STOP SUB SUBC SUBW
@@ -884,10 +884,15 @@ statement :
| NOP
{ B1 (0x00); }
/* ---------------------------------------------------------------------- */
+ | NOT1 CY
+ { B2 (0x71, 0xc0); }
+
+/* ---------------------------------------------------------------------- */
+
| POP regw
{ B1 (0xc0); F ($2, 5, 2); }
| POP PSW
{ B2 (0x61, 0xcd); };
@@ -1289,10 +1294,11 @@ token_table[] =
OPC(MOVW),
OPC(MULH),
OPC(MULHU),
OPC(MULU),
OPC(NOP),
+ OPC(NOT1),
OPC(ONEB),
OPC(ONEW),
OPC(OR),
OPC(OR1),
OPC(POP),
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2012-01-25 1:40 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-01-25 1:40 [patch] rl78 - add not1 opcode DJ Delorie
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).