From 21abe33a9bdebefa7f917bcc99e946eb464cc67f Mon Sep 17 00:00:00 2001 From: DJ Delorie Date: Wed, 25 Jan 2012 01:40:11 +0000 Subject: [PATCH] * rl78-decode.opc (rl78_decode_opcode): Add NOT1. * rl78-decode.c: Regenerate. * config/rl78-parse.y (NOT1): Add. --- gas/ChangeLog | 4 ++++ gas/config/rl78-parse.y | 8 +++++++- opcodes/ChangeLog | 5 +++++ opcodes/rl78-decode.opc | 5 +++++ 4 files changed, 21 insertions(+), 1 deletion(-) diff --git a/gas/ChangeLog b/gas/ChangeLog index 8e4c127963c..d5de4c5739d 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,7 @@ +2012-01-24 DJ Delorie + + * config/rl78-parse.y (NOT1): Add. + 2012-01-23 Roland McGrath * configure.tgt (i386-*-nacl*): Match it. diff --git a/gas/config/rl78-parse.y b/gas/config/rl78-parse.y index d5f2ec9d264..b487312f5a7 100644 --- a/gas/config/rl78-parse.y +++ b/gas/config/rl78-parse.y @@ -166,7 +166,7 @@ reg_xbc (int reg) %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 @@ -884,6 +884,11 @@ statement : | NOP { B1 (0x00); } +/* ---------------------------------------------------------------------- */ + + | NOT1 CY + { B2 (0x71, 0xc0); } + /* ---------------------------------------------------------------------- */ | POP regw @@ -1291,6 +1296,7 @@ token_table[] = OPC(MULHU), OPC(MULU), OPC(NOP), + OPC(NOT1), OPC(ONEB), OPC(ONEW), OPC(OR), diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog index e3a35b6b72d..adee9ce49e9 100644 --- a/opcodes/ChangeLog +++ b/opcodes/ChangeLog @@ -1,3 +1,8 @@ +2012-01-24 DJ Delorie + + * rl78-decode.opc (rl78_decode_opcode): Add NOT1. + * rl78-decode.c: Regenerate. + 2012-01-17 James Murray PR binutils/10173 diff --git a/opcodes/rl78-decode.opc b/opcodes/rl78-decode.opc index c5cdf296b3d..4af2bf3a7bb 100644 --- a/opcodes/rl78-decode.opc +++ b/opcodes/rl78-decode.opc @@ -888,6 +888,11 @@ rl78_decode_opcode (unsigned long pc AU, /*----------------------------------------------------------------------*/ +/** 0111 0001 1100 0000 not1 cy */ + ID(xor); DCY(); SC(1); + +/*----------------------------------------------------------------------*/ + /** 1110 0101 oneb %e0%!0 */ ID(mov); DM(None, IMMU(2)); SC(1); -- 2.30.2