Page 1 of 1

[Z88dk-users] Can't inline assembler with zsdcc

Posted: Fri Jan 11, 2019 12:55 pm
by rastersoft
Hi all:

I want to inline some assembler with zsdcc, but it seems to not recognize the #asm and #asmend statements. The same code compiles fine with sccz80. How can I do that?

I want to use zsdcc because the output code is much faster.

Thanks.

Posted: Fri Jan 11, 2019 9:22 pm
by stefano
Inlined assembly can be enclosed in ?#asm? / ?#endasm? for sccz80 or "__asm" / "__endasm;" for sdcc.

Posted: Fri Jan 11, 2019 9:24 pm
by stefano
Inlined assembly can be enclosed in ?#asm? / ?#endasm? when using sccz80 or "__asm" / "__endasm;" when using sdcc.