v0.8.0.0 vs. 0.7.1.2C Inline Assembler Labels

Discuss the Firewing language

v0.8.0.0 vs. 0.7.1.2C Inline Assembler Labels

Postby zoof » Thu Apr 04, 2013 7:55 pm

Hi David,

A change in the parsing has occurred in v0.8.0.0.

The following code snippet in an embedded assembler section:

holdingon:
btsc OSCCONL, #0
bra holdingon
End Asm

Compiled properly in version 0.7.1.2C into the .c file fed to gcc as:

asm volatile("holdingon:");
asm volatile("btsc OSCCONL, #0");
asm volatile("bra holdingon");

But v0.8.0.0 parses the colon character improperly as:

asm volatile("holdingon" : );
asm volatile("btsc OSCCONL, #0");
asm volatile("bra holdingon");

Giving a compilation error by gcc:

[GCC] Invalid mnemonic: 'holdingon'

--- Misplaced : not included within the quotes along with the line label.
User avatar
zoof
 
Posts: 5
Joined: Thu Nov 08, 2012 3:02 pm

Re: v0.8.0.0 vs. 0.7.1.2C Inline Assembler Labels

Postby David John Barker » Fri Apr 05, 2013 9:03 am

I've posted an update (0.8.0.1) which should correct the problem - please let me know if it works for you...
User avatar
David John Barker
 
Posts: 491
Joined: Thu Nov 08, 2012 12:21 pm

Re: v0.8.0.0 vs. 0.7.1.2C Inline Assembler Labels

Postby zoof » Fri Apr 05, 2013 12:10 pm

0.8.0.1 works...compiled,programmed and verified operation, :D !
Thank You!

ZOOF!!
User avatar
zoof
 
Posts: 5
Joined: Thu Nov 08, 2012 3:02 pm


Return to Language

Who is online

Users browsing this forum: No registered users and 1 guest

x