Project

General

Profile

Actions

Bug #782

closed

Bsave transpiles improperly. (%end is improperly embedded)

Added by Brian Flanagan over 3 years ago. Updated about 3 years ago.

Status:
Rejected
Priority:
Normal
Target version:
Start date:
06/13/2021
Due date:
% Done:

0%

Estimated time:
Affected version:

Description

For example:

// Enter your magic spell here!
Reserve As Data 15,50000
Print "Reserved 15"
Print Length(15) ' Length works by itself.
' ...but not in an expression on bSave:
Bsave "Bank15.bin",Start(15),Start(15)+Length(15)-1
Print "Done!"
End

The resulting improper traspilation of the Bsave is:

        // Bsave "Bank15.bin",Start(15),Start(15)+Length(15)-1
        aoz.sourcePos="0:5:0";
        return{type:12,waitThis:aoz.moduleFilesystem,callFunction:"bSave",waitFunction:"load_wait",args:["Bank15.bin",aoz.banks.getStart(15),aoz.banks.getStart(15)+%end]};

The %end should not be there.

Actions

Also available in: Atom PDF