NO

Author Topic: ARM assembler comments bug  (Read 2729 times)

Getorix

  • Guest
ARM assembler comments bug
« on: August 22, 2006, 08:13:25 AM »
Code: [Select]
   EXPORT   start
    AREA .text, CODE
start
    mov    R12, SP     ; я
    stmfd  SP!, {R4-R7,R11,R12,LR}
    eor    R0, R0, R0    
    ldmdb  R11, {R4-R7,R11,SP,PC}
    END

This code compiles successfuly, but in obj and exe files we have only opcode of the first command (up to the coments). All other commands (after this comment) are ignored by compiler.
BUG: we have this bug only if comments includes letter "я". It's the last letter in russan alphabet. It has code "0xFF" in ANSI (Win1251) and I think this is a reason of this bug.
Please check this.

Offline Pelle

  • Administrator
  • Member
  • *****
  • Posts: 2266
    • http://www.smorgasbordet.com
ARM assembler comments bug
« Reply #1 on: August 22, 2006, 03:23:44 PM »
Yes, a stupid signed/unsigned bug - EOF is -1, and *sign*-extending the character code 0xff will -of course- give the same result...

Will be fixed in the next beta...
/Pelle