Atari_Ace Posted September 2, 2016 Share Posted September 2, 2016 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 .BYTE 'ABCDEFGHIJKLMNOPQRSTUVWXYZ',$00 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. 1 Quote Link to comment Share on other sites More sharing options...
1NG Posted September 3, 2016 Share Posted September 3, 2016 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: MyDataABC .BYTE 'ABCDEFGHIJKLMNOPQRSTUVWXYZ',$00 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! Quote Link to comment Share on other sites More sharing options...
mgr_inz_rafal Posted September 5, 2016 Share Posted September 5, 2016 I also second the "-l" option upgrade. There are times when you just miss these few bytes... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.