xref: /openbsd-src/gnu/usr.bin/binutils/include/opcode/avr.h (revision d2201f2f89f0be1a0be6f7568000ed297414a06d)
15f210c2aSfgsch /* Opcode table for the Atmel AVR micro controllers.
25f210c2aSfgsch 
35f210c2aSfgsch    Copyright 2000 Free Software Foundation, Inc.
45f210c2aSfgsch    Contributed by Denis Chertykov <denisc@overta.ru>
55f210c2aSfgsch 
65f210c2aSfgsch    This program is free software; you can redistribute it and/or modify
75f210c2aSfgsch    it under the terms of the GNU General Public License as published by
85f210c2aSfgsch    the Free Software Foundation; either version 2, or (at your option)
95f210c2aSfgsch    any later version.
105f210c2aSfgsch 
115f210c2aSfgsch    This program is distributed in the hope that it will be useful,
125f210c2aSfgsch    but WITHOUT ANY WARRANTY; without even the implied warranty of
135f210c2aSfgsch    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
145f210c2aSfgsch    GNU General Public License for more details.
155f210c2aSfgsch 
165f210c2aSfgsch    You should have received a copy of the GNU General Public License
175f210c2aSfgsch    along with this program; if not, write to the Free Software
185f210c2aSfgsch    Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
195f210c2aSfgsch 
205f210c2aSfgsch #define AVR_ISA_1200  0x0001 /* in the beginning there was ... */
215f210c2aSfgsch #define AVR_ISA_LPM   0x0002 /* device has LPM */
225f210c2aSfgsch #define AVR_ISA_LPMX  0x0004 /* device has LPM Rd,Z[+] */
235f210c2aSfgsch #define AVR_ISA_SRAM  0x0008 /* device has SRAM (LD, ST, PUSH, POP, ...) */
245f210c2aSfgsch #define AVR_ISA_MEGA  0x0020 /* device has >8K program memory (JMP and CALL
255f210c2aSfgsch 				supported, no 8K wrap on RJMP and RCALL) */
265f210c2aSfgsch #define AVR_ISA_MUL   0x0040 /* device has new core (MUL, MOVW, ...) */
275f210c2aSfgsch #define AVR_ISA_ELPM  0x0080 /* device has >64K program memory (ELPM) */
28*d2201f2fSdrahn #define AVR_ISA_ELPMX 0x0100 /* device has ELPM Rd,Z[+] */
295f210c2aSfgsch #define AVR_ISA_SPM   0x0200 /* device can program itself */
30*d2201f2fSdrahn #define AVR_ISA_BRK   0x0400 /* device has BREAK (on-chip debug) */
315f210c2aSfgsch #define AVR_ISA_EIND  0x0800 /* device has >128K program memory (none yet) */
325f210c2aSfgsch 
335f210c2aSfgsch #define AVR_ISA_TINY1 (AVR_ISA_1200 | AVR_ISA_LPM)
345f210c2aSfgsch #define AVR_ISA_2xxx (AVR_ISA_TINY1 | AVR_ISA_SRAM)
35*d2201f2fSdrahn #define AVR_ISA_M8   (AVR_ISA_2xxx | AVR_ISA_MUL | AVR_ISA_LPMX | AVR_ISA_SPM)
365f210c2aSfgsch #define AVR_ISA_M603 (AVR_ISA_2xxx | AVR_ISA_MEGA)
375f210c2aSfgsch #define AVR_ISA_M103 (AVR_ISA_M603 | AVR_ISA_ELPM)
385f210c2aSfgsch #define AVR_ISA_M161 (AVR_ISA_M603 | AVR_ISA_MUL | AVR_ISA_LPMX | AVR_ISA_SPM)
395f210c2aSfgsch #define AVR_ISA_94K  (AVR_ISA_M603 | AVR_ISA_MUL | AVR_ISA_LPMX)
40*d2201f2fSdrahn #define AVR_ISA_M323 (AVR_ISA_M161 | AVR_ISA_BRK)
41*d2201f2fSdrahn #define AVR_ISA_M128 (AVR_ISA_M323 | AVR_ISA_ELPM | AVR_ISA_ELPMX)
425f210c2aSfgsch 
435f210c2aSfgsch #define AVR_ISA_ALL   0xFFFF
445f210c2aSfgsch 
455f210c2aSfgsch #define REGISTER_P(x) ((x) == 'r'		\
465f210c2aSfgsch 		       || (x) == 'd'		\
475f210c2aSfgsch 		       || (x) == 'w'		\
485f210c2aSfgsch 		       || (x) == 'a'		\
495f210c2aSfgsch 		       || (x) == 'v')
505f210c2aSfgsch 
515f210c2aSfgsch /* Undefined combination of operands - does the register
525f210c2aSfgsch    operand overlap with pre-decremented or post-incremented
535f210c2aSfgsch    pointer register (like ld r31,Z+)?  */
545f210c2aSfgsch #define AVR_UNDEF_P(x) (((x) & 0xFFED) == 0x91E5 ||		\
555f210c2aSfgsch   ((x) & 0xFDEF) == 0x91AD || ((x) & 0xFDEF) == 0x91AE ||	\
565f210c2aSfgsch   ((x) & 0xFDEF) == 0x91C9 || ((x) & 0xFDEF) == 0x91CA ||	\
575f210c2aSfgsch   ((x) & 0xFDEF) == 0x91E1 || ((x) & 0xFDEF) == 0x91E2)
585f210c2aSfgsch 
595f210c2aSfgsch /* Is this a skip instruction {cpse,sbic,sbis,sbrc,sbrs}?  */
605f210c2aSfgsch #define AVR_SKIP_P(x) (((x) & 0xFC00) == 0x1000 ||		\
615f210c2aSfgsch   ((x) & 0xFD00) == 0x9900 || ((x) & 0xFC08) == 0xFC00)
625f210c2aSfgsch 
635f210c2aSfgsch /* Is this `ldd r,b+0' or `std b+0,r' (b={Y,Z}, disassembled as
645f210c2aSfgsch    `ld r,b' or `st b,r' respectively - next opcode entry)?  */
655f210c2aSfgsch #define AVR_DISP0_P(x) (((x) & 0xFC07) == 0x8000)
665f210c2aSfgsch 
675f210c2aSfgsch /* constraint letters
685f210c2aSfgsch    r - any register
695f210c2aSfgsch    d - `ldi' register (r16-r31)
705f210c2aSfgsch    v - `movw' even register (r0, r2, ..., r28, r30)
715f210c2aSfgsch    a - `fmul' register (r16-r23)
725f210c2aSfgsch    w - `adiw' register (r24,r26,r28,r30)
735f210c2aSfgsch    e - pointer registers (X,Y,Z)
745f210c2aSfgsch    b - base pointer register and displacement ([YZ]+disp)
755f210c2aSfgsch    z - Z pointer register (for [e]lpm Rd,Z[+])
765f210c2aSfgsch    M - immediate value from 0 to 255
775f210c2aSfgsch    n - immediate value from 0 to 255 ( n = ~M ). Relocation impossible
785f210c2aSfgsch    s - immediate value from 0 to 7
795f210c2aSfgsch    P - Port address value from 0 to 63. (in, out)
805f210c2aSfgsch    p - Port address value from 0 to 31. (cbi, sbi, sbic, sbis)
815f210c2aSfgsch    K - immediate value from 0 to 63 (used in `adiw', `sbiw')
825f210c2aSfgsch    i - immediate value
835f210c2aSfgsch    l - signed pc relative offset from -64 to 63
845f210c2aSfgsch    L - signed pc relative offset from -2048 to 2047
855f210c2aSfgsch    h - absolute code address (call, jmp)
865f210c2aSfgsch    S - immediate value from 0 to 7 (S = s << 4)
875f210c2aSfgsch    ? - use this opcode entry if no parameters, else use next opcode entry
885f210c2aSfgsch 
895f210c2aSfgsch    Order is important - some binary opcodes have more than one name,
905f210c2aSfgsch    the disassembler will only see the first match.
915f210c2aSfgsch 
92*d2201f2fSdrahn    Remaining undefined opcodes (1699 total - some of them might work
935f210c2aSfgsch    as normal instructions if not all of the bits are decoded):
945f210c2aSfgsch 
955f210c2aSfgsch     0x0001...0x00ff    (255) (known to be decoded as `nop' by the old core)
965f210c2aSfgsch    "100100xxxxxxx011"  (128) 0x9[0-3][0-9a-f][3b]
975f210c2aSfgsch    "100100xxxxxx1000"   (64) 0x9[0-3][0-9a-f]8
985f210c2aSfgsch    "1001001xxxxx01xx"  (128) 0x9[23][0-9a-f][4-7]
995f210c2aSfgsch    "1001010xxxxx0100"   (32) 0x9[45][0-9a-f]4
1005f210c2aSfgsch    "1001010x001x1001"    (4) 0x9[45][23]9
1015f210c2aSfgsch    "1001010x01xx1001"    (8) 0x9[45][4-7]9
1025f210c2aSfgsch    "1001010x1xxx1001"   (16) 0x9[45][8-9a-f]9
1035f210c2aSfgsch    "1001010xxxxx1011"   (32) 0x9[45][0-9a-f]b
1045f210c2aSfgsch    "10010101001x1000"    (2) 0x95[23]8
1055f210c2aSfgsch    "1001010101xx1000"    (4) 0x95[4-7]8
106*d2201f2fSdrahn    "1001010110111000"    (1) 0x95b8
1075f210c2aSfgsch    "1001010111111000"    (1) 0x95f8 (`espm' removed in databook update)
1085f210c2aSfgsch    "11111xxxxxxx1xxx" (1024) 0xf[8-9a-f][0-9a-f][8-9a-f]
1095f210c2aSfgsch  */
1105f210c2aSfgsch 
1115f210c2aSfgsch AVR_INSN (clc,  "",    "1001010010001000", 1, AVR_ISA_1200, 0x9488)
1125f210c2aSfgsch AVR_INSN (clh,  "",    "1001010011011000", 1, AVR_ISA_1200, 0x94d8)
1135f210c2aSfgsch AVR_INSN (cli,  "",    "1001010011111000", 1, AVR_ISA_1200, 0x94f8)
1145f210c2aSfgsch AVR_INSN (cln,  "",    "1001010010101000", 1, AVR_ISA_1200, 0x94a8)
1155f210c2aSfgsch AVR_INSN (cls,  "",    "1001010011001000", 1, AVR_ISA_1200, 0x94c8)
1165f210c2aSfgsch AVR_INSN (clt,  "",    "1001010011101000", 1, AVR_ISA_1200, 0x94e8)
1175f210c2aSfgsch AVR_INSN (clv,  "",    "1001010010111000", 1, AVR_ISA_1200, 0x94b8)
1185f210c2aSfgsch AVR_INSN (clz,  "",    "1001010010011000", 1, AVR_ISA_1200, 0x9498)
1195f210c2aSfgsch 
1205f210c2aSfgsch AVR_INSN (sec,  "",    "1001010000001000", 1, AVR_ISA_1200, 0x9408)
1215f210c2aSfgsch AVR_INSN (seh,  "",    "1001010001011000", 1, AVR_ISA_1200, 0x9458)
1225f210c2aSfgsch AVR_INSN (sei,  "",    "1001010001111000", 1, AVR_ISA_1200, 0x9478)
1235f210c2aSfgsch AVR_INSN (sen,  "",    "1001010000101000", 1, AVR_ISA_1200, 0x9428)
1245f210c2aSfgsch AVR_INSN (ses,  "",    "1001010001001000", 1, AVR_ISA_1200, 0x9448)
1255f210c2aSfgsch AVR_INSN (set,  "",    "1001010001101000", 1, AVR_ISA_1200, 0x9468)
1265f210c2aSfgsch AVR_INSN (sev,  "",    "1001010000111000", 1, AVR_ISA_1200, 0x9438)
1275f210c2aSfgsch AVR_INSN (sez,  "",    "1001010000011000", 1, AVR_ISA_1200, 0x9418)
1285f210c2aSfgsch 
1295f210c2aSfgsch    /* Same as {cl,se}[chinstvz] above.  */
1305f210c2aSfgsch AVR_INSN (bclr, "S",   "100101001SSS1000", 1, AVR_ISA_1200, 0x9488)
1315f210c2aSfgsch AVR_INSN (bset, "S",   "100101000SSS1000", 1, AVR_ISA_1200, 0x9408)
1325f210c2aSfgsch 
1335f210c2aSfgsch AVR_INSN (icall,"",    "1001010100001001", 1, AVR_ISA_2xxx, 0x9509)
1345f210c2aSfgsch AVR_INSN (ijmp, "",    "1001010000001001", 1, AVR_ISA_2xxx, 0x9409)
1355f210c2aSfgsch 
1365f210c2aSfgsch AVR_INSN (lpm,  "?",   "1001010111001000", 1, AVR_ISA_TINY1,0x95c8)
1375f210c2aSfgsch AVR_INSN (lpm,  "r,z", "1001000ddddd010+", 1, AVR_ISA_LPMX, 0x9004)
1385f210c2aSfgsch AVR_INSN (elpm, "?",   "1001010111011000", 1, AVR_ISA_ELPM, 0x95d8)
1395f210c2aSfgsch AVR_INSN (elpm, "r,z", "1001000ddddd011+", 1, AVR_ISA_ELPMX,0x9006)
1405f210c2aSfgsch 
1415f210c2aSfgsch AVR_INSN (nop,  "",    "0000000000000000", 1, AVR_ISA_1200, 0x0000)
1425f210c2aSfgsch AVR_INSN (ret,  "",    "1001010100001000", 1, AVR_ISA_1200, 0x9508)
1435f210c2aSfgsch AVR_INSN (reti, "",    "1001010100011000", 1, AVR_ISA_1200, 0x9518)
1445f210c2aSfgsch AVR_INSN (sleep,"",    "1001010110001000", 1, AVR_ISA_1200, 0x9588)
145*d2201f2fSdrahn AVR_INSN (break,"",    "1001010110011000", 1, AVR_ISA_BRK,  0x9598)
1465f210c2aSfgsch AVR_INSN (wdr,  "",    "1001010110101000", 1, AVR_ISA_1200, 0x95a8)
1475f210c2aSfgsch AVR_INSN (spm,  "",    "1001010111101000", 1, AVR_ISA_SPM,  0x95e8)
1485f210c2aSfgsch 
1495f210c2aSfgsch AVR_INSN (adc,  "r,r", "000111rdddddrrrr", 1, AVR_ISA_1200, 0x1c00)
1505f210c2aSfgsch AVR_INSN (add,  "r,r", "000011rdddddrrrr", 1, AVR_ISA_1200, 0x0c00)
1515f210c2aSfgsch AVR_INSN (and,  "r,r", "001000rdddddrrrr", 1, AVR_ISA_1200, 0x2000)
1525f210c2aSfgsch AVR_INSN (cp,   "r,r", "000101rdddddrrrr", 1, AVR_ISA_1200, 0x1400)
1535f210c2aSfgsch AVR_INSN (cpc,  "r,r", "000001rdddddrrrr", 1, AVR_ISA_1200, 0x0400)
1545f210c2aSfgsch AVR_INSN (cpse, "r,r", "000100rdddddrrrr", 1, AVR_ISA_1200, 0x1000)
1555f210c2aSfgsch AVR_INSN (eor,  "r,r", "001001rdddddrrrr", 1, AVR_ISA_1200, 0x2400)
1565f210c2aSfgsch AVR_INSN (mov,  "r,r", "001011rdddddrrrr", 1, AVR_ISA_1200, 0x2c00)
1575f210c2aSfgsch AVR_INSN (mul,  "r,r", "100111rdddddrrrr", 1, AVR_ISA_MUL,  0x9c00)
1585f210c2aSfgsch AVR_INSN (or,   "r,r", "001010rdddddrrrr", 1, AVR_ISA_1200, 0x2800)
1595f210c2aSfgsch AVR_INSN (sbc,  "r,r", "000010rdddddrrrr", 1, AVR_ISA_1200, 0x0800)
1605f210c2aSfgsch AVR_INSN (sub,  "r,r", "000110rdddddrrrr", 1, AVR_ISA_1200, 0x1800)
1615f210c2aSfgsch 
1625f210c2aSfgsch    /* Shorthand for {eor,add,adc,and} r,r above.  */
1635f210c2aSfgsch AVR_INSN (clr,  "r=r", "001001rdddddrrrr", 1, AVR_ISA_1200, 0x2400)
1645f210c2aSfgsch AVR_INSN (lsl,  "r=r", "000011rdddddrrrr", 1, AVR_ISA_1200, 0x0c00)
1655f210c2aSfgsch AVR_INSN (rol,  "r=r", "000111rdddddrrrr", 1, AVR_ISA_1200, 0x1c00)
1665f210c2aSfgsch AVR_INSN (tst,  "r=r", "001000rdddddrrrr", 1, AVR_ISA_1200, 0x2000)
1675f210c2aSfgsch 
1685f210c2aSfgsch AVR_INSN (andi, "d,M", "0111KKKKddddKKKK", 1, AVR_ISA_1200, 0x7000)
1695f210c2aSfgsch   /*XXX special case*/
1705f210c2aSfgsch AVR_INSN (cbr,  "d,n", "0111KKKKddddKKKK", 1, AVR_ISA_1200, 0x7000)
1715f210c2aSfgsch 
1725f210c2aSfgsch AVR_INSN (ldi,  "d,M", "1110KKKKddddKKKK", 1, AVR_ISA_1200, 0xe000)
1735f210c2aSfgsch AVR_INSN (ser,  "d",   "11101111dddd1111", 1, AVR_ISA_1200, 0xef0f)
1745f210c2aSfgsch 
1755f210c2aSfgsch AVR_INSN (ori,  "d,M", "0110KKKKddddKKKK", 1, AVR_ISA_1200, 0x6000)
1765f210c2aSfgsch AVR_INSN (sbr,  "d,M", "0110KKKKddddKKKK", 1, AVR_ISA_1200, 0x6000)
1775f210c2aSfgsch 
1785f210c2aSfgsch AVR_INSN (cpi,  "d,M", "0011KKKKddddKKKK", 1, AVR_ISA_1200, 0x3000)
1795f210c2aSfgsch AVR_INSN (sbci, "d,M", "0100KKKKddddKKKK", 1, AVR_ISA_1200, 0x4000)
1805f210c2aSfgsch AVR_INSN (subi, "d,M", "0101KKKKddddKKKK", 1, AVR_ISA_1200, 0x5000)
1815f210c2aSfgsch 
1825f210c2aSfgsch AVR_INSN (sbrc, "r,s", "1111110rrrrr0sss", 1, AVR_ISA_1200, 0xfc00)
1835f210c2aSfgsch AVR_INSN (sbrs, "r,s", "1111111rrrrr0sss", 1, AVR_ISA_1200, 0xfe00)
1845f210c2aSfgsch AVR_INSN (bld,  "r,s", "1111100ddddd0sss", 1, AVR_ISA_1200, 0xf800)
1855f210c2aSfgsch AVR_INSN (bst,  "r,s", "1111101ddddd0sss", 1, AVR_ISA_1200, 0xfa00)
1865f210c2aSfgsch 
1875f210c2aSfgsch AVR_INSN (in,   "r,P", "10110PPdddddPPPP", 1, AVR_ISA_1200, 0xb000)
1885f210c2aSfgsch AVR_INSN (out,  "P,r", "10111PPrrrrrPPPP", 1, AVR_ISA_1200, 0xb800)
1895f210c2aSfgsch 
1905f210c2aSfgsch AVR_INSN (adiw, "w,K", "10010110KKddKKKK", 1, AVR_ISA_2xxx, 0x9600)
1915f210c2aSfgsch AVR_INSN (sbiw, "w,K", "10010111KKddKKKK", 1, AVR_ISA_2xxx, 0x9700)
1925f210c2aSfgsch 
1935f210c2aSfgsch AVR_INSN (cbi,  "p,s", "10011000pppppsss", 1, AVR_ISA_1200, 0x9800)
1945f210c2aSfgsch AVR_INSN (sbi,  "p,s", "10011010pppppsss", 1, AVR_ISA_1200, 0x9a00)
1955f210c2aSfgsch AVR_INSN (sbic, "p,s", "10011001pppppsss", 1, AVR_ISA_1200, 0x9900)
1965f210c2aSfgsch AVR_INSN (sbis, "p,s", "10011011pppppsss", 1, AVR_ISA_1200, 0x9b00)
1975f210c2aSfgsch 
1985f210c2aSfgsch AVR_INSN (brcc, "l",   "111101lllllll000", 1, AVR_ISA_1200, 0xf400)
1995f210c2aSfgsch AVR_INSN (brcs, "l",   "111100lllllll000", 1, AVR_ISA_1200, 0xf000)
2005f210c2aSfgsch AVR_INSN (breq, "l",   "111100lllllll001", 1, AVR_ISA_1200, 0xf001)
2015f210c2aSfgsch AVR_INSN (brge, "l",   "111101lllllll100", 1, AVR_ISA_1200, 0xf404)
2025f210c2aSfgsch AVR_INSN (brhc, "l",   "111101lllllll101", 1, AVR_ISA_1200, 0xf405)
2035f210c2aSfgsch AVR_INSN (brhs, "l",   "111100lllllll101", 1, AVR_ISA_1200, 0xf005)
2045f210c2aSfgsch AVR_INSN (brid, "l",   "111101lllllll111", 1, AVR_ISA_1200, 0xf407)
2055f210c2aSfgsch AVR_INSN (brie, "l",   "111100lllllll111", 1, AVR_ISA_1200, 0xf007)
2065f210c2aSfgsch AVR_INSN (brlo, "l",   "111100lllllll000", 1, AVR_ISA_1200, 0xf000)
2075f210c2aSfgsch AVR_INSN (brlt, "l",   "111100lllllll100", 1, AVR_ISA_1200, 0xf004)
2085f210c2aSfgsch AVR_INSN (brmi, "l",   "111100lllllll010", 1, AVR_ISA_1200, 0xf002)
2095f210c2aSfgsch AVR_INSN (brne, "l",   "111101lllllll001", 1, AVR_ISA_1200, 0xf401)
2105f210c2aSfgsch AVR_INSN (brpl, "l",   "111101lllllll010", 1, AVR_ISA_1200, 0xf402)
2115f210c2aSfgsch AVR_INSN (brsh, "l",   "111101lllllll000", 1, AVR_ISA_1200, 0xf400)
2125f210c2aSfgsch AVR_INSN (brtc, "l",   "111101lllllll110", 1, AVR_ISA_1200, 0xf406)
2135f210c2aSfgsch AVR_INSN (brts, "l",   "111100lllllll110", 1, AVR_ISA_1200, 0xf006)
2145f210c2aSfgsch AVR_INSN (brvc, "l",   "111101lllllll011", 1, AVR_ISA_1200, 0xf403)
2155f210c2aSfgsch AVR_INSN (brvs, "l",   "111100lllllll011", 1, AVR_ISA_1200, 0xf003)
2165f210c2aSfgsch 
2175f210c2aSfgsch    /* Same as br?? above.  */
2185f210c2aSfgsch AVR_INSN (brbc, "s,l", "111101lllllllsss", 1, AVR_ISA_1200, 0xf400)
2195f210c2aSfgsch AVR_INSN (brbs, "s,l", "111100lllllllsss", 1, AVR_ISA_1200, 0xf000)
2205f210c2aSfgsch 
2215f210c2aSfgsch AVR_INSN (rcall, "L",  "1101LLLLLLLLLLLL", 1, AVR_ISA_1200, 0xd000)
2225f210c2aSfgsch AVR_INSN (rjmp,  "L",  "1100LLLLLLLLLLLL", 1, AVR_ISA_1200, 0xc000)
2235f210c2aSfgsch 
2245f210c2aSfgsch AVR_INSN (call, "h",   "1001010hhhhh111h", 2, AVR_ISA_MEGA, 0x940e)
2255f210c2aSfgsch AVR_INSN (jmp,  "h",   "1001010hhhhh110h", 2, AVR_ISA_MEGA, 0x940c)
2265f210c2aSfgsch 
2275f210c2aSfgsch AVR_INSN (asr,  "r",   "1001010rrrrr0101", 1, AVR_ISA_1200, 0x9405)
2285f210c2aSfgsch AVR_INSN (com,  "r",   "1001010rrrrr0000", 1, AVR_ISA_1200, 0x9400)
2295f210c2aSfgsch AVR_INSN (dec,  "r",   "1001010rrrrr1010", 1, AVR_ISA_1200, 0x940a)
2305f210c2aSfgsch AVR_INSN (inc,  "r",   "1001010rrrrr0011", 1, AVR_ISA_1200, 0x9403)
2315f210c2aSfgsch AVR_INSN (lsr,  "r",   "1001010rrrrr0110", 1, AVR_ISA_1200, 0x9406)
2325f210c2aSfgsch AVR_INSN (neg,  "r",   "1001010rrrrr0001", 1, AVR_ISA_1200, 0x9401)
2335f210c2aSfgsch AVR_INSN (pop,  "r",   "1001000rrrrr1111", 1, AVR_ISA_2xxx, 0x900f)
2345f210c2aSfgsch AVR_INSN (push, "r",   "1001001rrrrr1111", 1, AVR_ISA_2xxx, 0x920f)
2355f210c2aSfgsch AVR_INSN (ror,  "r",   "1001010rrrrr0111", 1, AVR_ISA_1200, 0x9407)
2365f210c2aSfgsch AVR_INSN (swap, "r",   "1001010rrrrr0010", 1, AVR_ISA_1200, 0x9402)
2375f210c2aSfgsch 
2385f210c2aSfgsch    /* Known to be decoded as `nop' by the old core.  */
2395f210c2aSfgsch AVR_INSN (movw, "v,v", "00000001ddddrrrr", 1, AVR_ISA_MUL,  0x0100)
2405f210c2aSfgsch AVR_INSN (muls, "d,d", "00000010ddddrrrr", 1, AVR_ISA_MUL,  0x0200)
2415f210c2aSfgsch AVR_INSN (mulsu,"a,a", "000000110ddd0rrr", 1, AVR_ISA_MUL,  0x0300)
2425f210c2aSfgsch AVR_INSN (fmul, "a,a", "000000110ddd1rrr", 1, AVR_ISA_MUL,  0x0308)
2435f210c2aSfgsch AVR_INSN (fmuls,"a,a", "000000111ddd0rrr", 1, AVR_ISA_MUL,  0x0380)
2445f210c2aSfgsch AVR_INSN (fmulsu,"a,a","000000111ddd1rrr", 1, AVR_ISA_MUL,  0x0388)
2455f210c2aSfgsch 
2465f210c2aSfgsch AVR_INSN (sts,  "i,r", "1001001ddddd0000", 2, AVR_ISA_2xxx, 0x9200)
2475f210c2aSfgsch AVR_INSN (lds,  "r,i", "1001000ddddd0000", 2, AVR_ISA_2xxx, 0x9000)
2485f210c2aSfgsch 
2495f210c2aSfgsch    /* Special case for b+0, `e' must be next entry after `b',
2505f210c2aSfgsch       b={Y=1,Z=0}, ee={X=11,Y=10,Z=00}, !=1 if -e or e+ or X.  */
2515f210c2aSfgsch AVR_INSN (ldd,  "r,b", "10o0oo0dddddbooo", 1, AVR_ISA_2xxx, 0x8000)
2525f210c2aSfgsch AVR_INSN (ld,   "r,e", "100!000dddddee-+", 1, AVR_ISA_1200, 0x8000)
2535f210c2aSfgsch AVR_INSN (std,  "b,r", "10o0oo1rrrrrbooo", 1, AVR_ISA_2xxx, 0x8200)
2545f210c2aSfgsch AVR_INSN (st,   "e,r", "100!001rrrrree-+", 1, AVR_ISA_1200, 0x8200)
2555f210c2aSfgsch 
2565f210c2aSfgsch    /* These are for devices that don't exist yet
2575f210c2aSfgsch       (>128K program memory, PC = EIND:Z).  */
2585f210c2aSfgsch AVR_INSN (eicall, "",  "1001010100011001", 1, AVR_ISA_EIND, 0x9519)
2595f210c2aSfgsch AVR_INSN (eijmp, "",   "1001010000011001", 1, AVR_ISA_EIND, 0x9419)
2605f210c2aSfgsch 
261