News:

Download Pelles C here: http://www.smorgasbordet.com/pellesc/

Main Menu

ARM assembler comments bug

Started by Getorix, August 22, 2006, 08:13:25 AM

Previous topic - Next topic

Getorix

   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.

Pelle

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