neilsf / xc-basic3

A BASIC cross compiler for MOS 6502-based machines
MIT License
45 stars 5 forks source link

Fatal assembly error #254

Closed orlof closed 9 months ago

orlof commented 11 months ago
TYPE MyType
    SUB F(Title AS String*20) STATIC
        PRINT LEFT$(Title, 2)
    END SUB
END TYPE

DIM My AS MyType
CALL My.F("test")

PRINT STR$(1d)

Even if optimizer it disabled it produces:

string/_fn.asm (87): error: Label mismatch...
 --> 29.loop 08e3                  
string/_fn.asm (351): error: Label mismatch...
 --> 29.loop 08d1                  

Fatal assembly error: Source is not resolvable.
neilsf commented 11 months ago

Thanks for reporting, @orlof. It will be fixed in the next release.

orlof commented 11 months ago

Thank you for xc-basic!

orlof commented 11 months ago

Sorry, accidentally pressed the close button.