Jump to content
IGNORED

Recommend me an assembler


Recommended Posts

 

Yes, it's supported, but has a different meaning than on most other assemblers. It means "assemble code pretending it's running at location x". But the code itself is placed in the output file at the current location. (See http://cc65.github.io/doc/ca65.html#ss11.78)

Ah. Oh dear. No wonder it doesn't work. Thank you.

 

TBH (I know you can''t change it now) that meaning is so different it shouldn't have the same name IMHO.

 

BugBear

Link to comment
Share on other sites

So - I've now placed the 1-and-only-segment (CODE) at 0c00 (via -S 0x0C00)

and adaded lots of .align $100 and .res $100 so everything ends up at the same

place as it was in XASM style.

 

The small scratch areas have been changed from direct equ of absolute values to the symbols

to a sequence of labelled .res items.

 

I've exported all the symbols that I have messed with in this way, and the main.map

from ld65 shows them all with the same values as the XASM listing.

 

Progress!

 

BugBear

Link to comment
Share on other sites

I eventually declared enough cc65 SEGMENTS (I used a tiny perl script to print them) to fully emulate the load chunks being used in the XASM

source. This meant that each chunk should be identical.

 

A quick binary compare of the chunks chased out a couple of bugs in my xasm->cc65 textual converter,

and a couple more in the cc65 macros I'm using to emulate some of XASM's handy features.

 

IT LIVES!

 

(and my thanks to all who helped, especially sanny)

 

BugBear

Edited by bugbear
Link to comment
Share on other sites

IT LIVES!

 

(and my thanks to all who helped, especially sanny)

 

 

Thanks. Be my guest.

 

 

Now that you've gotten it to work, would you consider publishing the source code (if the original license of the program allows that)?

 

It might be helpful for others which are new to cc65 and try to port a program written for XASM to cc65. Especially your perl script to convert the syntaxes sounds likely be useful for others.

 

And, if you are getting really ambitious, you could create a writeup about what you did, what problems you encountered, and how you solved them. :-)

 

regards,

chris

Link to comment
Share on other sites

  • 3 years later...

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...