GNU Binutils with patches for OS216
Revision | 90092e730582d024f621c78c6b5b1e6f2348e77d (tree) |
---|---|
Time | 2015-02-11 23:36:39 |
Author | Nick Clifton <nickc@redh...> |
Commiter | Nick Clifton |
Fixes a problem with the RL78 disassembler which would incorrectly disassemble [HL+0] as [HL].
* rl78-decode.opc: Add 'a' attribute to instructions that support
[HL+0] addressing.
* rl78-decode.c: Regenerate.
* rl78-dis.c (print_insn_rl78): Display the offset in [HL+0]
addresses.
@@ -369,14 +369,14 @@ rl78_decode_opcode (unsigned long pc AU, | ||
369 | 369 | break; |
370 | 370 | case 0x0e: |
371 | 371 | { |
372 | - /** 0000 1110 add %0, %e1 */ | |
372 | + /** 0000 1110 add %0, %ea1 */ | |
373 | 373 | if (trace) |
374 | 374 | { |
375 | 375 | printf ("\033[33m%s\033[0m %02x\n", |
376 | - "/** 0000 1110 add %0, %e1 */", | |
376 | + "/** 0000 1110 add %0, %ea1 */", | |
377 | 377 | op[0]); |
378 | 378 | } |
379 | - SYNTAX("add %0, %e1"); | |
379 | + SYNTAX("add %0, %ea1"); | |
380 | 380 | #line 209 "rl78-decode.opc" |
381 | 381 | ID(add); DR(A); SM(HL, IMMU(1)); Fzac; |
382 | 382 |
@@ -568,14 +568,14 @@ rl78_decode_opcode (unsigned long pc AU, | ||
568 | 568 | break; |
569 | 569 | case 0x1e: |
570 | 570 | { |
571 | - /** 0001 1110 addc %0, %e1 */ | |
571 | + /** 0001 1110 addc %0, %ea1 */ | |
572 | 572 | if (trace) |
573 | 573 | { |
574 | 574 | printf ("\033[33m%s\033[0m %02x\n", |
575 | - "/** 0001 1110 addc %0, %e1 */", | |
575 | + "/** 0001 1110 addc %0, %ea1 */", | |
576 | 576 | op[0]); |
577 | 577 | } |
578 | - SYNTAX("addc %0, %e1"); | |
578 | + SYNTAX("addc %0, %ea1"); | |
579 | 579 | #line 244 "rl78-decode.opc" |
580 | 580 | ID(addc); DR(A); SM(HL, IMMU(1)); Fzac; |
581 | 581 |
@@ -773,14 +773,14 @@ rl78_decode_opcode (unsigned long pc AU, | ||
773 | 773 | break; |
774 | 774 | case 0x2e: |
775 | 775 | { |
776 | - /** 0010 1110 sub %0, %e1 */ | |
776 | + /** 0010 1110 sub %0, %ea1 */ | |
777 | 777 | if (trace) |
778 | 778 | { |
779 | 779 | printf ("\033[33m%s\033[0m %02x\n", |
780 | - "/** 0010 1110 sub %0, %e1 */", | |
780 | + "/** 0010 1110 sub %0, %ea1 */", | |
781 | 781 | op[0]); |
782 | 782 | } |
783 | - SYNTAX("sub %0, %e1"); | |
783 | + SYNTAX("sub %0, %ea1"); | |
784 | 784 | #line 1127 "rl78-decode.opc" |
785 | 785 | ID(sub); DR(A); SM(HL, IMMU(1)); Fzac; |
786 | 786 |
@@ -1339,14 +1339,14 @@ rl78_decode_opcode (unsigned long pc AU, | ||
1339 | 1339 | break; |
1340 | 1340 | case 0x3e: |
1341 | 1341 | { |
1342 | - /** 0011 1110 subc %0, %e1 */ | |
1342 | + /** 0011 1110 subc %0, %ea1 */ | |
1343 | 1343 | if (trace) |
1344 | 1344 | { |
1345 | 1345 | printf ("\033[33m%s\033[0m %02x\n", |
1346 | - "/** 0011 1110 subc %0, %e1 */", | |
1346 | + "/** 0011 1110 subc %0, %ea1 */", | |
1347 | 1347 | op[0]); |
1348 | 1348 | } |
1349 | - SYNTAX("subc %0, %e1"); | |
1349 | + SYNTAX("subc %0, %ea1"); | |
1350 | 1350 | #line 1162 "rl78-decode.opc" |
1351 | 1351 | ID(subc); DR(A); SM(HL, IMMU(1)); Fzac; |
1352 | 1352 |
@@ -1558,14 +1558,14 @@ rl78_decode_opcode (unsigned long pc AU, | ||
1558 | 1558 | break; |
1559 | 1559 | case 0x4e: |
1560 | 1560 | { |
1561 | - /** 0100 1110 cmp %0, %e1 */ | |
1561 | + /** 0100 1110 cmp %0, %ea1 */ | |
1562 | 1562 | if (trace) |
1563 | 1563 | { |
1564 | 1564 | printf ("\033[33m%s\033[0m %02x\n", |
1565 | - "/** 0100 1110 cmp %0, %e1 */", | |
1565 | + "/** 0100 1110 cmp %0, %ea1 */", | |
1566 | 1566 | op[0]); |
1567 | 1567 | } |
1568 | - SYNTAX("cmp %0, %e1"); | |
1568 | + SYNTAX("cmp %0, %ea1"); | |
1569 | 1569 | #line 497 "rl78-decode.opc" |
1570 | 1570 | ID(cmp); DR(A); SM(HL, IMMU(1)); Fzac; |
1571 | 1571 |
@@ -1705,14 +1705,14 @@ rl78_decode_opcode (unsigned long pc AU, | ||
1705 | 1705 | break; |
1706 | 1706 | case 0x5e: |
1707 | 1707 | { |
1708 | - /** 0101 1110 and %0, %e1 */ | |
1708 | + /** 0101 1110 and %0, %ea1 */ | |
1709 | 1709 | if (trace) |
1710 | 1710 | { |
1711 | 1711 | printf ("\033[33m%s\033[0m %02x\n", |
1712 | - "/** 0101 1110 and %0, %e1 */", | |
1712 | + "/** 0101 1110 and %0, %ea1 */", | |
1713 | 1713 | op[0]); |
1714 | 1714 | } |
1715 | - SYNTAX("and %0, %e1"); | |
1715 | + SYNTAX("and %0, %ea1"); | |
1716 | 1716 | #line 293 "rl78-decode.opc" |
1717 | 1717 | ID(and); DR(A); SM(HL, IMMU(1)); Fz; |
1718 | 1718 |
@@ -1812,14 +1812,14 @@ rl78_decode_opcode (unsigned long pc AU, | ||
1812 | 1812 | break; |
1813 | 1813 | case 0x09: |
1814 | 1814 | { |
1815 | - /** 0110 0001 0000 1001 addw %0, %e1 */ | |
1815 | + /** 0110 0001 0000 1001 addw %0, %ea1 */ | |
1816 | 1816 | if (trace) |
1817 | 1817 | { |
1818 | 1818 | printf ("\033[33m%s\033[0m %02x %02x\n", |
1819 | - "/** 0110 0001 0000 1001 addw %0, %e1 */", | |
1819 | + "/** 0110 0001 0000 1001 addw %0, %ea1 */", | |
1820 | 1820 | op[0], op[1]); |
1821 | 1821 | } |
1822 | - SYNTAX("addw %0, %e1"); | |
1822 | + SYNTAX("addw %0, %ea1"); | |
1823 | 1823 | #line 267 "rl78-decode.opc" |
1824 | 1824 | ID(add); W(); DR(AX); SM(HL, IMMU(1)); Fzac; |
1825 | 1825 |
@@ -1925,14 +1925,14 @@ rl78_decode_opcode (unsigned long pc AU, | ||
1925 | 1925 | break; |
1926 | 1926 | case 0x29: |
1927 | 1927 | { |
1928 | - /** 0110 0001 0010 1001 subw %0, %e1 */ | |
1928 | + /** 0110 0001 0010 1001 subw %0, %ea1 */ | |
1929 | 1929 | if (trace) |
1930 | 1930 | { |
1931 | 1931 | printf ("\033[33m%s\033[0m %02x %02x\n", |
1932 | - "/** 0110 0001 0010 1001 subw %0, %e1 */", | |
1932 | + "/** 0110 0001 0010 1001 subw %0, %ea1 */", | |
1933 | 1933 | op[0], op[1]); |
1934 | 1934 | } |
1935 | - SYNTAX("subw %0, %e1"); | |
1935 | + SYNTAX("subw %0, %ea1"); | |
1936 | 1936 | #line 1185 "rl78-decode.opc" |
1937 | 1937 | ID(sub); W(); DR(AX); SM(HL, IMMU(1)); Fzac; |
1938 | 1938 |
@@ -2038,14 +2038,14 @@ rl78_decode_opcode (unsigned long pc AU, | ||
2038 | 2038 | break; |
2039 | 2039 | case 0x49: |
2040 | 2040 | { |
2041 | - /** 0110 0001 0100 1001 cmpw %0, %e1 */ | |
2041 | + /** 0110 0001 0100 1001 cmpw %0, %ea1 */ | |
2042 | 2042 | if (trace) |
2043 | 2043 | { |
2044 | 2044 | printf ("\033[33m%s\033[0m %02x %02x\n", |
2045 | - "/** 0110 0001 0100 1001 cmpw %0, %e1 */", | |
2045 | + "/** 0110 0001 0100 1001 cmpw %0, %ea1 */", | |
2046 | 2046 | op[0], op[1]); |
2047 | 2047 | } |
2048 | - SYNTAX("cmpw %0, %e1"); | |
2048 | + SYNTAX("cmpw %0, %ea1"); | |
2049 | 2049 | #line 533 "rl78-decode.opc" |
2050 | 2050 | ID(cmp); W(); DR(AX); SM(HL, IMMU(1)); Fzac; |
2051 | 2051 |
@@ -2102,14 +2102,14 @@ rl78_decode_opcode (unsigned long pc AU, | ||
2102 | 2102 | break; |
2103 | 2103 | case 0x59: |
2104 | 2104 | { |
2105 | - /** 0110 0001 0101 1001 inc %e0 */ | |
2105 | + /** 0110 0001 0101 1001 inc %ea0 */ | |
2106 | 2106 | if (trace) |
2107 | 2107 | { |
2108 | 2108 | printf ("\033[33m%s\033[0m %02x %02x\n", |
2109 | - "/** 0110 0001 0101 1001 inc %e0 */", | |
2109 | + "/** 0110 0001 0101 1001 inc %ea0 */", | |
2110 | 2110 | op[0], op[1]); |
2111 | 2111 | } |
2112 | - SYNTAX("inc %e0"); | |
2112 | + SYNTAX("inc %ea0"); | |
2113 | 2113 | #line 583 "rl78-decode.opc" |
2114 | 2114 | ID(add); DM(HL, IMMU(1)); SC(1); Fza; |
2115 | 2115 |
@@ -2166,14 +2166,14 @@ rl78_decode_opcode (unsigned long pc AU, | ||
2166 | 2166 | break; |
2167 | 2167 | case 0x69: |
2168 | 2168 | { |
2169 | - /** 0110 0001 0110 1001 dec %e0 */ | |
2169 | + /** 0110 0001 0110 1001 dec %ea0 */ | |
2170 | 2170 | if (trace) |
2171 | 2171 | { |
2172 | 2172 | printf ("\033[33m%s\033[0m %02x %02x\n", |
2173 | - "/** 0110 0001 0110 1001 dec %e0 */", | |
2173 | + "/** 0110 0001 0110 1001 dec %ea0 */", | |
2174 | 2174 | op[0], op[1]); |
2175 | 2175 | } |
2176 | - SYNTAX("dec %e0"); | |
2176 | + SYNTAX("dec %ea0"); | |
2177 | 2177 | #line 550 "rl78-decode.opc" |
2178 | 2178 | ID(sub); DM(HL, IMMU(1)); SC(1); Fza; |
2179 | 2179 |
@@ -2230,14 +2230,14 @@ rl78_decode_opcode (unsigned long pc AU, | ||
2230 | 2230 | break; |
2231 | 2231 | case 0x79: |
2232 | 2232 | { |
2233 | - /** 0110 0001 0111 1001 incw %e0 */ | |
2233 | + /** 0110 0001 0111 1001 incw %ea0 */ | |
2234 | 2234 | if (trace) |
2235 | 2235 | { |
2236 | 2236 | printf ("\033[33m%s\033[0m %02x %02x\n", |
2237 | - "/** 0110 0001 0111 1001 incw %e0 */", | |
2237 | + "/** 0110 0001 0111 1001 incw %ea0 */", | |
2238 | 2238 | op[0], op[1]); |
2239 | 2239 | } |
2240 | - SYNTAX("incw %e0"); | |
2240 | + SYNTAX("incw %ea0"); | |
2241 | 2241 | #line 597 "rl78-decode.opc" |
2242 | 2242 | ID(add); W(); DM(HL, IMMU(1)); SC(1); |
2243 | 2243 |
@@ -2355,14 +2355,14 @@ rl78_decode_opcode (unsigned long pc AU, | ||
2355 | 2355 | break; |
2356 | 2356 | case 0x89: |
2357 | 2357 | { |
2358 | - /** 0110 0001 1000 1001 decw %e0 */ | |
2358 | + /** 0110 0001 1000 1001 decw %ea0 */ | |
2359 | 2359 | if (trace) |
2360 | 2360 | { |
2361 | 2361 | printf ("\033[33m%s\033[0m %02x %02x\n", |
2362 | - "/** 0110 0001 1000 1001 decw %e0 */", | |
2362 | + "/** 0110 0001 1000 1001 decw %ea0 */", | |
2363 | 2363 | op[0], op[1]); |
2364 | 2364 | } |
2365 | - SYNTAX("decw %e0"); | |
2365 | + SYNTAX("decw %ea0"); | |
2366 | 2366 | #line 564 "rl78-decode.opc" |
2367 | 2367 | ID(sub); W(); DM(HL, IMMU(1)); SC(1); |
2368 | 2368 |
@@ -2506,14 +2506,14 @@ rl78_decode_opcode (unsigned long pc AU, | ||
2506 | 2506 | break; |
2507 | 2507 | case 0xad: |
2508 | 2508 | { |
2509 | - /** 0110 0001 1010 1101 xch %0, %e1 */ | |
2509 | + /** 0110 0001 1010 1101 xch %0, %ea1 */ | |
2510 | 2510 | if (trace) |
2511 | 2511 | { |
2512 | 2512 | printf ("\033[33m%s\033[0m %02x %02x\n", |
2513 | - "/** 0110 0001 1010 1101 xch %0, %e1 */", | |
2513 | + "/** 0110 0001 1010 1101 xch %0, %ea1 */", | |
2514 | 2514 | op[0], op[1]); |
2515 | 2515 | } |
2516 | - SYNTAX("xch %0, %e1"); | |
2516 | + SYNTAX("xch %0, %ea1"); | |
2517 | 2517 | #line 1217 "rl78-decode.opc" |
2518 | 2518 | ID(xch); DR(A); SM(HL, IMMU(1)); |
2519 | 2519 |
@@ -2758,14 +2758,14 @@ rl78_decode_opcode (unsigned long pc AU, | ||
2758 | 2758 | break; |
2759 | 2759 | case 0xce: |
2760 | 2760 | { |
2761 | - /** 0110 0001 1100 1110 movs %e0, %1 */ | |
2761 | + /** 0110 0001 1100 1110 movs %ea0, %1 */ | |
2762 | 2762 | if (trace) |
2763 | 2763 | { |
2764 | 2764 | printf ("\033[33m%s\033[0m %02x %02x\n", |
2765 | - "/** 0110 0001 1100 1110 movs %e0, %1 */", | |
2765 | + "/** 0110 0001 1100 1110 movs %ea0, %1 */", | |
2766 | 2766 | op[0], op[1]); |
2767 | 2767 | } |
2768 | - SYNTAX("movs %e0, %1"); | |
2768 | + SYNTAX("movs %ea0, %1"); | |
2769 | 2769 | #line 810 "rl78-decode.opc" |
2770 | 2770 | ID(mov); DM(HL, IMMU(1)); SR(X); Fzc; |
2771 | 2771 |
@@ -2920,14 +2920,14 @@ rl78_decode_opcode (unsigned long pc AU, | ||
2920 | 2920 | break; |
2921 | 2921 | case 0xde: |
2922 | 2922 | { |
2923 | - /** 0110 0001 1101 1110 cmps %0, %e1 */ | |
2923 | + /** 0110 0001 1101 1110 cmps %0, %ea1 */ | |
2924 | 2924 | if (trace) |
2925 | 2925 | { |
2926 | 2926 | printf ("\033[33m%s\033[0m %02x %02x\n", |
2927 | - "/** 0110 0001 1101 1110 cmps %0, %e1 */", | |
2927 | + "/** 0110 0001 1101 1110 cmps %0, %ea1 */", | |
2928 | 2928 | op[0], op[1]); |
2929 | 2929 | } |
2930 | - SYNTAX("cmps %0, %e1"); | |
2930 | + SYNTAX("cmps %0, %ea1"); | |
2931 | 2931 | #line 525 "rl78-decode.opc" |
2932 | 2932 | ID(cmp); DR(X); SM(HL, IMMU(1)); Fzac; |
2933 | 2933 |
@@ -3304,14 +3304,14 @@ rl78_decode_opcode (unsigned long pc AU, | ||
3304 | 3304 | break; |
3305 | 3305 | case 0x6e: |
3306 | 3306 | { |
3307 | - /** 0110 1110 or %0, %e1 */ | |
3307 | + /** 0110 1110 or %0, %ea1 */ | |
3308 | 3308 | if (trace) |
3309 | 3309 | { |
3310 | 3310 | printf ("\033[33m%s\033[0m %02x\n", |
3311 | - "/** 0110 1110 or %0, %e1 */", | |
3311 | + "/** 0110 1110 or %0, %ea1 */", | |
3312 | 3312 | op[0]); |
3313 | 3313 | } |
3314 | - SYNTAX("or %0, %e1"); | |
3314 | + SYNTAX("or %0, %ea1"); | |
3315 | 3315 | #line 948 "rl78-decode.opc" |
3316 | 3316 | ID(or); DR(A); SM(HL, IMMU(1)); Fz; |
3317 | 3317 |
@@ -4275,14 +4275,14 @@ rl78_decode_opcode (unsigned long pc AU, | ||
4275 | 4275 | break; |
4276 | 4276 | case 0x7e: |
4277 | 4277 | { |
4278 | - /** 0111 1110 xor %0, %e1 */ | |
4278 | + /** 0111 1110 xor %0, %ea1 */ | |
4279 | 4279 | if (trace) |
4280 | 4280 | { |
4281 | 4281 | printf ("\033[33m%s\033[0m %02x\n", |
4282 | - "/** 0111 1110 xor %0, %e1 */", | |
4282 | + "/** 0111 1110 xor %0, %ea1 */", | |
4283 | 4283 | op[0]); |
4284 | 4284 | } |
4285 | - SYNTAX("xor %0, %e1"); | |
4285 | + SYNTAX("xor %0, %ea1"); | |
4286 | 4286 | #line 1252 "rl78-decode.opc" |
4287 | 4287 | ID(xor); DR(A); SM(HL, IMMU(1)); Fz; |
4288 | 4288 |
@@ -4390,14 +4390,14 @@ rl78_decode_opcode (unsigned long pc AU, | ||
4390 | 4390 | break; |
4391 | 4391 | case 0x8c: |
4392 | 4392 | { |
4393 | - /** 1000 1100 mov %0, %e1 */ | |
4393 | + /** 1000 1100 mov %0, %ea1 */ | |
4394 | 4394 | if (trace) |
4395 | 4395 | { |
4396 | 4396 | printf ("\033[33m%s\033[0m %02x\n", |
4397 | - "/** 1000 1100 mov %0, %e1 */", | |
4397 | + "/** 1000 1100 mov %0, %ea1 */", | |
4398 | 4398 | op[0]); |
4399 | 4399 | } |
4400 | - SYNTAX("mov %0, %e1"); | |
4400 | + SYNTAX("mov %0, %ea1"); | |
4401 | 4401 | #line 656 "rl78-decode.opc" |
4402 | 4402 | ID(mov); DR(A); SM(HL, IMMU(1)); |
4403 | 4403 |
@@ -4535,14 +4535,14 @@ rl78_decode_opcode (unsigned long pc AU, | ||
4535 | 4535 | break; |
4536 | 4536 | case 0x9c: |
4537 | 4537 | { |
4538 | - /** 1001 1100 mov %e0, %1 */ | |
4538 | + /** 1001 1100 mov %ea0, %1 */ | |
4539 | 4539 | if (trace) |
4540 | 4540 | { |
4541 | 4541 | printf ("\033[33m%s\033[0m %02x\n", |
4542 | - "/** 1001 1100 mov %e0, %1 */", | |
4542 | + "/** 1001 1100 mov %ea0, %1 */", | |
4543 | 4543 | op[0]); |
4544 | 4544 | } |
4545 | - SYNTAX("mov %e0, %1"); | |
4545 | + SYNTAX("mov %ea0, %1"); | |
4546 | 4546 | #line 632 "rl78-decode.opc" |
4547 | 4547 | ID(mov); DM(HL, IMMU(1)); SR(A); |
4548 | 4548 |
@@ -4742,14 +4742,14 @@ rl78_decode_opcode (unsigned long pc AU, | ||
4742 | 4742 | break; |
4743 | 4743 | case 0xac: |
4744 | 4744 | { |
4745 | - /** 1010 1100 movw %0, %e1 */ | |
4745 | + /** 1010 1100 movw %0, %ea1 */ | |
4746 | 4746 | if (trace) |
4747 | 4747 | { |
4748 | 4748 | printf ("\033[33m%s\033[0m %02x\n", |
4749 | - "/** 1010 1100 movw %0, %e1 */", | |
4749 | + "/** 1010 1100 movw %0, %ea1 */", | |
4750 | 4750 | op[0]); |
4751 | 4751 | } |
4752 | - SYNTAX("movw %0, %e1"); | |
4752 | + SYNTAX("movw %0, %ea1"); | |
4753 | 4753 | #line 846 "rl78-decode.opc" |
4754 | 4754 | ID(mov); W(); DR(AX); SM(HL, IMMU(1)); |
4755 | 4755 |
@@ -4948,14 +4948,14 @@ rl78_decode_opcode (unsigned long pc AU, | ||
4948 | 4948 | break; |
4949 | 4949 | case 0xbc: |
4950 | 4950 | { |
4951 | - /** 1011 1100 movw %e0, %1 */ | |
4951 | + /** 1011 1100 movw %ea0, %1 */ | |
4952 | 4952 | if (trace) |
4953 | 4953 | { |
4954 | 4954 | printf ("\033[33m%s\033[0m %02x\n", |
4955 | - "/** 1011 1100 movw %e0, %1 */", | |
4955 | + "/** 1011 1100 movw %ea0, %1 */", | |
4956 | 4956 | op[0]); |
4957 | 4957 | } |
4958 | - SYNTAX("movw %e0, %1"); | |
4958 | + SYNTAX("movw %ea0, %1"); | |
4959 | 4959 | #line 827 "rl78-decode.opc" |
4960 | 4960 | ID(mov); W(); DM(HL, IMMU(1)); SR(AX); |
4961 | 4961 |
@@ -5112,14 +5112,14 @@ rl78_decode_opcode (unsigned long pc AU, | ||
5112 | 5112 | break; |
5113 | 5113 | case 0xcc: |
5114 | 5114 | { |
5115 | - /** 1100 1100 mov %e0, #%1 */ | |
5115 | + /** 1100 1100 mov %ea0, #%1 */ | |
5116 | 5116 | if (trace) |
5117 | 5117 | { |
5118 | 5118 | printf ("\033[33m%s\033[0m %02x\n", |
5119 | - "/** 1100 1100 mov %e0, #%1 */", | |
5119 | + "/** 1100 1100 mov %ea0, #%1 */", | |
5120 | 5120 | op[0]); |
5121 | 5121 | } |
5122 | - SYNTAX("mov %e0, #%1"); | |
5122 | + SYNTAX("mov %ea0, #%1"); | |
5123 | 5123 | #line 629 "rl78-decode.opc" |
5124 | 5124 | ID(mov); DM(HL, IMMU(1)); SC(IMMU(1)); |
5125 | 5125 |
@@ -205,7 +205,7 @@ rl78_decode_opcode (unsigned long pc AU, | ||
205 | 205 | /** 0110 0001 1000 000 add %0, %e1 */ |
206 | 206 | ID(add); DR(A); SM2(HL, B, 0); Fzac; |
207 | 207 | |
208 | -/** 0000 1110 add %0, %e1 */ | |
208 | +/** 0000 1110 add %0, %ea1 */ | |
209 | 209 | ID(add); DR(A); SM(HL, IMMU(1)); Fzac; |
210 | 210 | |
211 | 211 | /** 0110 0001 1000 0010 add %0, %e1 */ |
@@ -240,7 +240,7 @@ rl78_decode_opcode (unsigned long pc AU, | ||
240 | 240 | /** 0110 0001 1001 0010 addc %0, %e1 */ |
241 | 241 | ID(addc); DR(A); SM2(HL, C, 0); Fzac; |
242 | 242 | |
243 | -/** 0001 1110 addc %0, %e1 */ | |
243 | +/** 0001 1110 addc %0, %ea1 */ | |
244 | 244 | ID(addc); DR(A); SM(HL, IMMU(1)); Fzac; |
245 | 245 | |
246 | 246 | /** 0001 1100 addc %0, #%1 */ |
@@ -263,7 +263,7 @@ rl78_decode_opcode (unsigned long pc AU, | ||
263 | 263 | /** 0000 0010 addw %0, %e!1 */ |
264 | 264 | ID(add); W(); DR(AX); SM(None, IMMU(2)); Fzac; |
265 | 265 | |
266 | -/** 0110 0001 0000 1001 addw %0, %e1 */ | |
266 | +/** 0110 0001 0000 1001 addw %0, %ea1 */ | |
267 | 267 | ID(add); W(); DR(AX); SM(HL, IMMU(1)); Fzac; |
268 | 268 | |
269 | 269 | /** 0000 0100 addw %0, #%1 */ |
@@ -289,7 +289,7 @@ rl78_decode_opcode (unsigned long pc AU, | ||
289 | 289 | /** 0110 0001 1101 0000 and %0, %e1 */ |
290 | 290 | ID(and); DR(A); SM2(HL, B, 0); Fz; |
291 | 291 | |
292 | -/** 0101 1110 and %0, %e1 */ | |
292 | +/** 0101 1110 and %0, %ea1 */ | |
293 | 293 | ID(and); DR(A); SM(HL, IMMU(1)); Fz; |
294 | 294 | |
295 | 295 | /** 0110 0001 1101 0010 and %0, %e1 */ |
@@ -493,7 +493,7 @@ rl78_decode_opcode (unsigned long pc AU, | ||
493 | 493 | /** 0110 0001 1100 0010 cmp %0, %e1 */ |
494 | 494 | ID(cmp); DR(A); SM2(HL, C, 0); Fzac; |
495 | 495 | |
496 | -/** 0100 1110 cmp %0, %e1 */ | |
496 | +/** 0100 1110 cmp %0, %ea1 */ | |
497 | 497 | ID(cmp); DR(A); SM(HL, IMMU(1)); Fzac; |
498 | 498 | |
499 | 499 | /** 0100 1100 cmp %0, #%1 */ |
@@ -521,7 +521,7 @@ rl78_decode_opcode (unsigned long pc AU, | ||
521 | 521 | |
522 | 522 | /*----------------------------------------------------------------------*/ |
523 | 523 | |
524 | -/** 0110 0001 1101 1110 cmps %0, %e1 */ | |
524 | +/** 0110 0001 1101 1110 cmps %0, %ea1 */ | |
525 | 525 | ID(cmp); DR(X); SM(HL, IMMU(1)); Fzac; |
526 | 526 | |
527 | 527 | /*----------------------------------------------------------------------*/ |
@@ -529,7 +529,7 @@ rl78_decode_opcode (unsigned long pc AU, | ||
529 | 529 | /** 0100 0010 cmpw %0, %e!1 */ |
530 | 530 | ID(cmp); W(); DR(AX); SM(None, IMMU(2)); Fzac; |
531 | 531 | |
532 | -/** 0110 0001 0100 1001 cmpw %0, %e1 */ | |
532 | +/** 0110 0001 0100 1001 cmpw %0, %ea1 */ | |
533 | 533 | ID(cmp); W(); DR(AX); SM(HL, IMMU(1)); Fzac; |
534 | 534 | |
535 | 535 | /** 0100 0100 cmpw %0, #%1 */ |
@@ -546,7 +546,7 @@ rl78_decode_opcode (unsigned long pc AU, | ||
546 | 546 | /** 1011 0000 dec %e!0 */ |
547 | 547 | ID(sub); DM(None, IMMU(2)); SC(1); Fza; |
548 | 548 | |
549 | -/** 0110 0001 0110 1001 dec %e0 */ | |
549 | +/** 0110 0001 0110 1001 dec %ea0 */ | |
550 | 550 | ID(sub); DM(HL, IMMU(1)); SC(1); Fza; |
551 | 551 | |
552 | 552 | /** 1001 0reg dec %0 */ |
@@ -560,7 +560,7 @@ rl78_decode_opcode (unsigned long pc AU, | ||
560 | 560 | /** 1011 0010 decw %e!0 */ |
561 | 561 | ID(sub); W(); DM(None, IMMU(2)); SC(1); |
562 | 562 | |
563 | -/** 0110 0001 1000 1001 decw %e0 */ | |
563 | +/** 0110 0001 1000 1001 decw %ea0 */ | |
564 | 564 | ID(sub); W(); DM(HL, IMMU(1)); SC(1); |
565 | 565 | |
566 | 566 | /** 1011 0rg1 decw %0 */ |
@@ -579,7 +579,7 @@ rl78_decode_opcode (unsigned long pc AU, | ||
579 | 579 | /** 1010 0000 inc %e!0 */ |
580 | 580 | ID(add); DM(None, IMMU(2)); SC(1); Fza; |
581 | 581 | |
582 | -/** 0110 0001 0101 1001 inc %e0 */ | |
582 | +/** 0110 0001 0101 1001 inc %ea0 */ | |
583 | 583 | ID(add); DM(HL, IMMU(1)); SC(1); Fza; |
584 | 584 | |
585 | 585 | /** 1000 0reg inc %0 */ |
@@ -593,7 +593,7 @@ rl78_decode_opcode (unsigned long pc AU, | ||
593 | 593 | /** 1010 0010 incw %e!0 */ |
594 | 594 | ID(add); W(); DM(None, IMMU(2)); SC(1); |
595 | 595 | |
596 | -/** 0110 0001 0111 1001 incw %e0 */ | |
596 | +/** 0110 0001 0111 1001 incw %ea0 */ | |
597 | 597 | ID(add); W(); DM(HL, IMMU(1)); SC(1); |
598 | 598 | |
599 | 599 | /** 1010 0rg1 incw %0 */ |
@@ -625,10 +625,10 @@ rl78_decode_opcode (unsigned long pc AU, | ||
625 | 625 | /** 0110 0001 1101 1001 mov %e0, %1 */ |
626 | 626 | ID(mov); DM2(HL, B, 0); SR(A); |
627 | 627 | |
628 | -/** 1100 1100 mov %e0, #%1 */ | |
628 | +/** 1100 1100 mov %ea0, #%1 */ | |
629 | 629 | ID(mov); DM(HL, IMMU(1)); SC(IMMU(1)); |
630 | 630 | |
631 | -/** 1001 1100 mov %e0, %1 */ | |
631 | +/** 1001 1100 mov %ea0, %1 */ | |
632 | 632 | ID(mov); DM(HL, IMMU(1)); SR(A); |
633 | 633 | |
634 | 634 | /** 0110 0001 1111 1001 mov %e0, %1 */ |
@@ -652,7 +652,7 @@ rl78_decode_opcode (unsigned long pc AU, | ||
652 | 652 | /** 1000 1011 mov %0, %e1 */ |
653 | 653 | ID(mov); DR(A); SM(HL, 0); |
654 | 654 | |
655 | -/** 1000 1100 mov %0, %e1 */ | |
655 | +/** 1000 1100 mov %0, %ea1 */ | |
656 | 656 | ID(mov); DR(A); SM(HL, IMMU(1)); |
657 | 657 | |
658 | 658 | /** 0110 0001 1100 1001 mov %0, %e1 */ |
@@ -806,7 +806,7 @@ rl78_decode_opcode (unsigned long pc AU, | ||
806 | 806 | |
807 | 807 | /*----------------------------------------------------------------------*/ |
808 | 808 | |
809 | -/** 0110 0001 1100 1110 movs %e0, %1 */ | |
809 | +/** 0110 0001 1100 1110 movs %ea0, %1 */ | |
810 | 810 | ID(mov); DM(HL, IMMU(1)); SR(X); Fzc; |
811 | 811 | |
812 | 812 | /*----------------------------------------------------------------------*/ |
@@ -823,7 +823,7 @@ rl78_decode_opcode (unsigned long pc AU, | ||
823 | 823 | /** 1011 1011 movw %e0, %1 */ |
824 | 824 | ID(mov); W(); DM(HL, 0); SR(AX); |
825 | 825 | |
826 | -/** 1011 1100 movw %e0, %1 */ | |
826 | +/** 1011 1100 movw %ea0, %1 */ | |
827 | 827 | ID(mov); W(); DM(HL, IMMU(1)); SR(AX); |
828 | 828 | |
829 | 829 | /** 1011 1000 movw %0, %1 */ |
@@ -842,7 +842,7 @@ rl78_decode_opcode (unsigned long pc AU, | ||
842 | 842 | /** 1010 1011 movw %0, %e1 */ |
843 | 843 | ID(mov); W(); DR(AX); SM(HL, 0); |
844 | 844 | |
845 | -/** 1010 1100 movw %0, %e1 */ | |
845 | +/** 1010 1100 movw %0, %ea1 */ | |
846 | 846 | ID(mov); W(); DR(AX); SM(HL, IMMU(1)); |
847 | 847 | |
848 | 848 | /** 1010 1000 movw %0, %1 */ |
@@ -944,7 +944,7 @@ rl78_decode_opcode (unsigned long pc AU, | ||
944 | 944 | /** 0110 0001 1110 0000 or %0, %e1 */ |
945 | 945 | ID(or); DR(A); SM2(HL, B, 0); Fz; |
946 | 946 | |
947 | -/** 0110 1110 or %0, %e1 */ | |
947 | +/** 0110 1110 or %0, %ea1 */ | |
948 | 948 | ID(or); DR(A); SM(HL, IMMU(1)); Fz; |
949 | 949 | |
950 | 950 | /** 0110 0001 1110 0010 or %0, %e1 */ |
@@ -1123,7 +1123,7 @@ rl78_decode_opcode (unsigned long pc AU, | ||
1123 | 1123 | /** 0110 0001 1010 000 sub %0, %e1 */ |
1124 | 1124 | ID(sub); DR(A); SM2(HL, B, 0); Fzac; |
1125 | 1125 | |
1126 | -/** 0010 1110 sub %0, %e1 */ | |
1126 | +/** 0010 1110 sub %0, %ea1 */ | |
1127 | 1127 | ID(sub); DR(A); SM(HL, IMMU(1)); Fzac; |
1128 | 1128 | |
1129 | 1129 | /** 0110 0001 1010 0010 sub %0, %e1 */ |
@@ -1158,7 +1158,7 @@ rl78_decode_opcode (unsigned long pc AU, | ||
1158 | 1158 | /** 0110 0001 1011 0010 subc %0, %e1 */ |
1159 | 1159 | ID(subc); DR(A); SM2(HL, C, 0); Fzac; |
1160 | 1160 | |
1161 | -/** 0011 1110 subc %0, %e1 */ | |
1161 | +/** 0011 1110 subc %0, %ea1 */ | |
1162 | 1162 | ID(subc); DR(A); SM(HL, IMMU(1)); Fzac; |
1163 | 1163 | |
1164 | 1164 | /** 0011 1100 subc %0, #%1 */ |
@@ -1181,7 +1181,7 @@ rl78_decode_opcode (unsigned long pc AU, | ||
1181 | 1181 | /** 0010 0010 subw %0, %e!1 */ |
1182 | 1182 | ID(sub); W(); DR(AX); SM(None, IMMU(2)); Fzac; |
1183 | 1183 | |
1184 | -/** 0110 0001 0010 1001 subw %0, %e1 */ | |
1184 | +/** 0110 0001 0010 1001 subw %0, %ea1 */ | |
1185 | 1185 | ID(sub); W(); DR(AX); SM(HL, IMMU(1)); Fzac; |
1186 | 1186 | |
1187 | 1187 | /** 0010 0100 subw %0, #%1 */ |
@@ -1213,7 +1213,7 @@ rl78_decode_opcode (unsigned long pc AU, | ||
1213 | 1213 | /** 0110 0001 1011 1001 xch %0, %e1 */ |
1214 | 1214 | ID(xch); DR(A); SM2(HL, B, 0); |
1215 | 1215 | |
1216 | -/** 0110 0001 1010 1101 xch %0, %e1 */ | |
1216 | +/** 0110 0001 1010 1101 xch %0, %ea1 */ | |
1217 | 1217 | ID(xch); DR(A); SM(HL, IMMU(1)); |
1218 | 1218 | |
1219 | 1219 | /** 0110 0001 1010 1001 xch %0, %e1 */ |
@@ -1248,7 +1248,7 @@ rl78_decode_opcode (unsigned long pc AU, | ||
1248 | 1248 | /** 0110 0001 1111 0000 xor %0, %e1 */ |
1249 | 1249 | ID(xor); DR(A); SM2(HL, B, 0); Fz; |
1250 | 1250 | |
1251 | -/** 0111 1110 xor %0, %e1 */ | |
1251 | +/** 0111 1110 xor %0, %ea1 */ | |
1252 | 1252 | ID(xor); DR(A); SM(HL, IMMU(1)); Fz; |
1253 | 1253 | |
1254 | 1254 | /** 0110 0001 1111 0010 xor %0, %e1 */ |
@@ -284,7 +284,7 @@ print_insn_rl78 (bfd_vma addr, disassemble_info * dis) | ||
284 | 284 | PR (PS, "[%s", register_names[oper->reg]); |
285 | 285 | if (oper->reg2 != RL78_Reg_None) |
286 | 286 | PR (PS, "+%s", register_names[oper->reg2]); |
287 | - if (oper->addend) | |
287 | + if (oper->addend || do_addr) | |
288 | 288 | PR (PS, "+%d", oper->addend); |
289 | 289 | PC (']'); |
290 | 290 | break; |