Article View: comp.sys.amiga.tech
Article #10209Problems with Manx AS and LN
From: Klaus Kaempf
Date: Sat, 05 Nov 1988 12:26
Date: Sat, 05 Nov 1988 12:26
61 lines
1654 bytes
1654 bytes
What's wrong with the following program ??
--
far code
far data
AbsExecBase equ $4
move.l $4,a6
movea.l $00000004,a6
move.l ExecBase,a6
movea.l ExecBase,a6
move.l AbsExecBase,a6
movea.l AbsExecBase,a6
bra.s Label
bra Label
ds.b 10
Label
section ,data
ExecBase equ $4
section ,code
end
--
Nothing you say ? Well, let's look what Manx's AS 3.6a has to say:
--
> as bautz.asm
Aztec 68000 Assembler 3.6a 12-18-87
Label
^
File bautz.asm; Line 17 # Label mismatch - Pc=0026 Label=002a,sdi=4
FATAL ERROR - Ending PC's differ: Pass 1=2a Pass2=26
--
Ha ! That's the assembler trying to optimize ON THE SECOND PASS ONLY !
Ok, then I try it without optimization and set the -n option.
> as -n bautz.asm
And voila! No assembly errors. Fine, let's start the linker:
>ln bautz.o
Aztec C68K Linker 3.6a 12-18-87
Base: 000000 Code: 00002c Data: 000000 Udata: 000000 Total: 00002c
Relocation table invalid from 0 to 252, of -8!!
So what am I doing wrong ????
Thanks for any help!
Klaus
P.S: For those of you out there with the Manx Assembler at hand, have
a look at the listing file the assembler generates. Or the symbol dump
the linker produces or even the 'final' program. Very interesting.
Technical Details
Message-ID:
<1197@rmi.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!attcan!uunet!mcvax!unido!rmi!kkaempfShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!mcvax!unido!rmi!kkaempf From: kkaempf@rmi.UUCP (Klaus Kaempf) Newsgroups: comp.sys.amiga.tech Subject: Problems with Manx AS and LN Summary: I can't even call exec with the manx assembler Message-ID: <1197@rmi.UUCP> Date: 5 Nov 88 12:26:24 GMT Reply-To: kkaempf@rmi.de (Klaus Kaempf) Organization: RMI Net, Aachen, W.Germany Lines: 61