AnyCPU
http://anycpu.org/forum/

Assembling other people's sources
http://anycpu.org/forum/viewtopic.php?f=25&t=864
Page 2 of 2

Author:  cjs [ Sat May 06, 2023 4:54 pm ]
Post subject:  Re: Assembling other people's sources

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.

Page 2 of 2 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/