sdcc compile mangles defm
Posted: Fri Mar 04, 2016 11:34 pm
Bit of a corner case that came up when I was playing with one of the z88 apps:
results in:
The trigger seems to be the colon in assembly defm, I'm guessing it's tripping up over one of the sdcc peephole rules.
Code: Select all
#include <stdio.h>
int main()
{
puts("Contact: xyz@da");
#asm
defm "Contact: xyz@dd"
#endasm
}
Code: Select all
defm "Contact:
xyz@dd"
ret
___str_0:
DEFM "Contact: xyz@da"
DEFB 0x00