Jump to content

Photo

Mad Pascal


278 replies to this topic

#276 tebe OFFLINE  

tebe

    Dragonstomper

  • Topic Starter
  • 712 posts
  • Location:Poznań - Poland

Posted Wed May 16, 2018 3:14 PM

thx DMSC, you are right, it's BUG



#277 Lastic OFFLINE  

Lastic

    Space Invader

  • 16 posts

Posted Wed May 16, 2018 11:11 PM

Hi!
 
.

The provided mp.pas source has an error, I don't know if the posted EXE cames from the same source. In line 16945, changes the "j" inside the function call to "i", so the line changes from:

j := CompileConstFactor(j, ConstVal, ConstValType);
to read:
j := CompileConstFactor(i, ConstVal, ConstValType);
.

Without this, the program fails depending on the uninitialized value of "j". Also, another error on line 23193, change "i" to "j" on the Error call, the line must read:
         Error(j, 'Unresolved forward declaration of ' + Ident[j].Name);
.

After that, compile with " fpc -MDelphi -Os -Xi -Xs -XX mp-155.fix.pas " to get a working executable.

 

 

 

Thanks a lot for the quick reply, it works now.

 

Now I'm stuck with the workflow on how to create an Atari executable.

 

I compile the Pascal source with mp sourcename.pas, this creates an sourcename.a65 , which is Mads assembler if I'm correct.

 

Then I should create the executable with : mads source name.a65 , correct ?

 

I'll have another look at the mads documentation also.



#278 tebe OFFLINE  

tebe

    Dragonstomper

  • Topic Starter
  • 712 posts
  • Location:Poznań - Poland

Posted Thu May 17, 2018 12:24 AM

mads filename.a65 -x -i:base

 

\base\ is MP folder



#279 Lastic OFFLINE  

Lastic

    Space Invader

  • 16 posts

Posted Thu May 17, 2018 8:53 AM

mads filename.a65 -x -i:base

\base\ is MP folder

 

 

 

Thanks, it kept failing until I figured out that you have to give the absolute filepath to the base folder.

Mads & Mad Pascal is absolutely fabulous, all the examples included will provide me with a lot of learning material , loving it.






1 user(s) are browsing this forum

0 members, 1 guests, 0 anonymous users