Jump to content
Gury

Mad-Assembler (MADS)

Recommended Posts

it seems there is a missing entry in config file for 64bit platform

Quote

/etc/fpc.cfg

 

add entry in the correct line

 

Quote

#ifdef cpux86_64
-Fl/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/10.0.0/lib/darwin18.2.0
-XR/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib/
#endif

 

  • Like 1

Share this post


Link to post
Share on other sites

Hi all,

 

I am passing a program from MAC65 to MADS, but I did not understand what the equivalent of the following lines is :

BASE = $5000

; MAC65
SETVEC = *-BASE
BUFFLEN = *+1
ERRNUM * = *+24

 * = *+49
  .SB +$80," START "

regards

Share this post


Link to post
Share on other sites
1 hour ago, ascrnet said:

Hi all,

 

I am passing a program from MAC65 to MADS, but I did not understand what the equivalent of the following lines is :

BASE = $5000

; MAC65
SETVEC = *-BASE
BUFFLEN = *+1
ERRNUM * = *+24

 * = *+49
  .SB +$80," START "

regards

 

I would try with something like:

 

BASE = $5000

SETVEC = *-BASE

BUFFLEN = *+1

ERRNUM

   org *+24

   org *+49

   .sb +128, " START "

 

(untested!)

 

  • Thanks 1

Share this post


Link to post
Share on other sites

This is missing the initial assigment to the orgin.

Something like

 

* =$8000 in MAC which is ORG $8000 in MADS.

 

SETVEC = *-BASE ;OK

BUFFLEN = *+1 ;OK

ERRNUM .ds 24

 

 .ds 49

  .SB +$80," START " ;Not sure, please check the MADS docs , probably something lke .byte +$80 ' START '

 

  • Thanks 1

Share this post


Link to post
Share on other sites
1 hour ago, NRV said:

 

I would try with something like:

 

BASE = $5000

SETVEC = *-BASE

BUFFLEN = *+1

ERRNUM

   org *+24

   org *+49

   .sb +128, " START "

 

(untested!)

 

Thanks for the help.

1 hour ago, JAC! said:

This is missing the initial assigment to the orgin.

Something like

 

* =$8000 in MAC which is ORG $8000 in MADS.

 

SETVEC = *-BASE ;OK

BUFFLEN = *+1 ;OK

ERRNUM .ds 24

 

 .ds 49

  .SB +$80," START " ;Not sure, please check the MADS docs , probably something lke .byte +$80 ' START '

 

Thanks for the indications I will try them, I just put the lines that I had doubts about how they were.

 

The program is MICRODOS XL always caught my attention as they did. I already assembled it but it has some strange behaviors.😅

   

 

Share this post


Link to post
Share on other sites

hello,

one issue I came across...

I got used to anonymous labels lately... but found unwanted behavior when used in macros.

When anonymous label is used within macro, then the label is counted however not accessible (because all macro labels are local).

I would expect the anon.label in macro should not be counted from outside.

 

Example:

image.png.b450c765fdc29a00e6a81133f80f7ef7.png

 

this one works ok (but one needs to know that test macro contains anon.label @, so +1 has to be added) => I think this is bug:

image.png.6167fa93bb1b5ce0aff317d5a10eebb0.png

 

...maybe it is not very cool to use anon.labels in macros... what it your opinion?

Share this post


Link to post
Share on other sites

Hard to answer. On the one hand macros are not really scopes, but only text replacements. On the other hand the have local labels and then the expectation is, that nesting works.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...