View unanswered posts | View active topics It is currently Thu Mar 28, 2024 2:37 pm



Reply to topic  [ 16 posts ]  Go to page Previous  1, 2
 Assembling other people's sources 
Author Message

Joined: Thu Dec 05, 2019 7:53 am
Posts: 13
Location: Tokyo, Japan
Vladimir wrote:
...and took the AS V1.42 (macro assembler by Alfred Arnold). The errors number did not decrease, but they appeared in other places.
What is the correct approach to solving the problem? Manually fix all the places in the source that Easy68k doesn't like?

Macro Assembler AS accepts a wide variety of syntax, so the first step I would take is to switch to using that and then start looking at what options you'll need to set to make the existing source assemble with as few errors as possible. You'll want to start with a CPU 68000 directive (or similar) at the top of the file and then look at the errors. If you're getting errors about the hexadecimal number format because your code is, e.g. using $ABCD and the standard syntax for the CPU wants 0ABCDh, RELAXED ON will usually fix that. If the code isn't using DC[.Size] and DS[.Size], you can define macros for whatever your source code happens to use. And so on. Most labeling systems should work just fine; it supports most of the common forms of implicit local labels (.foo, +, --, etc.) and has a [url]=http://john.ccac.rwth-aachen.de:8000/as/as_EN.html#index_SECTION_1SECTION[/url] directive for explicit local scopes.

The only thing that AS really insists upon is that only labels start in the first column and that instructions and assembler directives never start in the first column. So some assembly formats that have indented labels (with the label always followed by a colon) and the like will need manual editing.

_________________
Curt J. Sampson - github.com/0cjs


Sat May 06, 2023 4:54 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 16 posts ]  Go to page Previous  1, 2

Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group
Designed by ST Software