Fix the MSP430 assembler's parsing of register names.
[deliverable/binutils-gdb.git] / gas / testsuite / gas / msp430 / errata_fixes.s
1 .text
2 errata:
3 .cpu msp430
4 # CPU4: PUSH #4/#8 has to be encoded using the long form
5 push #4
6 push #8
7
8 # CPU11: The SR flags can be left in a bogus state after writing to the PC
9 # Instructions that do not set the SR flags are unaffected.
10 bic #1, pc
11 bis #1, pc
12 mov #1, pc
13
14 #CPU12: A CMP or BIT instruction with the PC as the second operand may
15 # not execute the instruction after it - so a NOP must be inserted.
16 cmp &200, PC
17 bit r1, pc
18
19 #CPU19: Instructions that sets CPUOFF must be followed by a NOP
20 bis #0x10, r2
21 mov #0x10, r2
22 xor #0x10, r2
23 nop
24
This page took 0.029546 seconds and 4 git commands to generate.