Menu

#4 Merlin formatting introduces erroneous spaces

v1.0_(example)
open
nobody
None
5
2015-06-30
2015-06-30
No

Merlin source formatting and exporting introduces spaces before ';' within macro parameters.
This causes failures when trying to assemble the files in Merlin32.

e.g.
'Converted Text' view of Merlin source file
This is fine - no additional white space

~PPToPort #:LOCINFO;#:SRCRECT;#0;#0;#0
~EndUpdate WINDPORT
PLD
PLB
RTL

:LOCINFO DA $80
:PICPTR ADRL 0
DA $A0
:SRCRECT RECTAT 0;0;200;640

'Merlin Assembler' view of Merlin source file
Notice additional white spaces

     ~PPToPort #:LOCINFO ;#:SRCRECT;#0;#0;#0    <-----
     ~EndUpdate WINDPORT
     PLD
     PLB
     RTL

:LOCINFO DA $80
:PICPTR ADRL 0
DA $A0
:SRCRECT RECTAT 0 ;0;200;640 <-----

When exporting the files using the Auto-detect & convert file with Tex option, the additional spaces are also being introduced.

Merlin 32 treats the rest of the line as a comment instead of as parameters for the macro.
I believe Merlin 16 would as well.

Rule: Never introduce a space into the line if there is not already a space.

Discussion

  • Andrew Roughan

    Andrew Roughan - 2015-06-30

    There does not appear to be a workaround because conversion needs to be performed to strip high bits, and the text file conversion options all have the same result.

     
  • Andrew Roughan

    Andrew Roughan - 2015-06-30

    Migrated to GitHub
    https://github.com/fadden/ciderpress/issues/9

    Sorry, I should have put it there in the first place.

     

Log in to post a comment.

MongoDB Logo MongoDB