Uploaded image for project: 'Embedded Software & Tools'
  1. Embedded Software & Tools
  2. EXT_EP-10081

TI MSP430 assembler accepts rrc assembly instruction

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Low Low

      Use the attached file. It contains four instructions that may not be valid. Build it ...

      % cl430 test.s
      "test.s", ERROR!   at line 3: [E0002] Illegal mnemonic specified
                      swpb.b  r5
      
      "test.s", ERROR!   at line 6: [E0002] Illegal mnemonic specified
                      sxt.b   r6
      
      2 Assembly Errors, No Assembly Warnings
      
      Errors in Source - Assembler Aborted
      
      >> Compilation failure
      

      Those error diagnostics appear to be correct. But should the other two instructions also get error diagnostics?

      The GCC assembler does not have similar results.

      % msp430-elf-gcc -o test.o test.s
      test.s: Assembler messages:
      test.s:11: Error: rrc: attempt to rotate the PC register
      

      Since the two assemblers disagree, one of them must be wrong. Maybe they are both wrong.

            syncuser TI User
            syncuser TI User
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: