Last visit was: Sun Dec 22, 2024 6:06 am
It is currently Sun Dec 22, 2024 6:06 am



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

Joined: Thu Dec 05, 2019 7:53 am
Posts: 18
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
 [ 16 posts ]  Go to page Previous  1, 2

Who is online

Users browsing this forum: claudebot and 0 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

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