Jump to content

MADS listing (-l) nit

Recommended Posts

MADS is a great tool, but while working on reconstructing the Colleen Floating Point routines, I was reminded that I really wish it's listing output (mads -l) would behave a bit more like other assemblers and not drop output values.


Consider the following input to MADS:

    ORG $A000
    LDA $1122

It generates this listing:

     1         ORG $A000
     2 FFFF> A000-A01D> AD 22 +     LDA $1122
     3 A003 41 42 43 44 45 46 +     .BYTE 'ABCDEFGHIJKLMNOPQRSTUVWXYZ',$00

I wish it was more like:

     1 FFFF> A000-A01D> ORG $A000
     2 A000 AD 22 11   LDA $1122
     3 A003 41 42 43 44 45 46    .BYTE 'ABCDEFGHIJKLMNOPQRSTUVWXYZ',$00
     3+A009 47 48 49 4A 4B 4C

Where the location bytes emitted are attached to the ORG line so as not to stomp on the first operation, and long outputs don't get truncated but generate extra lines.


The main idea is that one should be able to see all the bytes output to the object file in the listing.

  • Like 1
Link to comment
Share on other sites

I love the MADS!

And I stumbled over the same thing and would like to suggest a maximum number as a parameter.

But I use the ins command a lot and don't need to have that bytes listed completely


So maybe something like

-l or -l100 or -l+

That would leave the actual -l as it is. More bytes are possible with -l<number of bytes listed> or -l+ (all bytes listed, no matter what)



Another way:

For looking at the generated bytes, I use Altirra. I just open a memory window and put the label in the top edit field

In your example:


Just put the MyDataABC in the top line of a memory window and see the bytes!



This works if you compile with something like

mads main.asm -o:main.xex -t:main.lab -l:main.lst

Now Altirra knows all the labels!

Link to comment
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.

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.


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...