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

Bridge to the z88dk-users mailing list
Post Reply
rastersoft
New member
Posts: 1
Joined: Fri Jan 11, 2019 12:49 pm

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

Post 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.
stefano
Well known member
Posts: 1534
Joined: Mon Jul 16, 2007 7:39 pm

Post by stefano »

Inlined assembly can be enclosed in ?#asm? / ?#endasm? for sccz80 or "__asm" / "__endasm;" for sdcc.
stefano
Well known member
Posts: 1534
Joined: Mon Jul 16, 2007 7:39 pm

Post by stefano »

Inlined assembly can be enclosed in ?#asm? / ?#endasm? when using sccz80 or "__asm" / "__endasm;" when using sdcc.
Post Reply