Amiga.org

The "Not Quite Amiga but still computer related category" => Amiga Emulation => Topic started by: DamageX on June 12, 2012, 09:05:17 AM

Title: assembling Amiga programs under Windows
Post by: DamageX on June 12, 2012, 09:05:17 AM
I want to assemble 68k programs for Amiga under Windows. I can test under winuae, but I do not want do editing/building under winuae because it is a battery-life killer (and it doesn`t agree with Japanese keyboard layout, and I can`t remember how to make batch files for Amiga DOS).

Problem: I think Amiga DOS executables need a relocation table, but I can`t find a cross-assembler that generates one. There is a win32 version of a68k, and it targets Amiga DOS, but where is the linker that goes with it?
Title: Re: assembling Amiga programs under Windows
Post by: Foul on June 12, 2012, 09:10:04 AM
http://sun.hasenbraten.de/vasm/ ?
Title: Re: assembling Amiga programs under Windows
Post by: carls on June 12, 2012, 09:46:45 AM
Quote from: DamageX;696133
I want to assemble 68k programs for Amiga under Windows. I can test under winuae, but I do not want do editing/building under winuae because it is a battery-life killer (and it doesn`t agree with Japanese keyboard layout, and I can`t remember how to make batch files for Amiga DOS).

Problem: I think Amiga DOS executables need a relocation table, but I can`t find a cross-assembler that generates one. There is a win32 version of a68k, and it targets Amiga DOS, but where is the linker that goes with it?


Perhaps this is what you're looking for:
http://ada.untergrund.net/forum/index.php?action=vthread&forum=4&topic=666

Another link:
http://www.pouet.net/prod.php?which=58703
Title: Re: assembling Amiga programs under Windows
Post by: Heinz on June 12, 2012, 11:55:01 AM
Quote from: DamageX;696133
I want to assemble 68k programs for Amiga under Windows. I can test under winuae, but I do not want do editing/building under winuae because it is a battery-life killer (and it doesn`t agree with Japanese keyboard layout, and I can`t remember how to make batch files for Amiga DOS).

Problem: I think Amiga DOS executables need a relocation table, but I can`t find a cross-assembler that generates one. There is a win32 version of a68k, and it targets Amiga DOS, but where is the linker that goes with it?


Have you tried http://amidevcpp.amiga-world.de/ ?

It should contain the gnu assembler as.
Title: Re: assembling Amiga programs under Windows
Post by: Leffmann on June 12, 2012, 06:15:48 PM
Quote from: DamageX;696133
I want to assemble 68k programs for Amiga under Windows. I can test under winuae, but I do not want do editing/building under winuae because it is a battery-life killer (and it doesn`t agree with Japanese keyboard layout, and I can`t remember how to make batch files for Amiga DOS).

Problem: I think Amiga DOS executables need a relocation table, but I can`t find a cross-assembler that generates one. There is a win32 version of a68k, and it targets Amiga DOS, but where is the linker that goes with it?


They just need to be AmigaDOS executables (with or without relocation tables). I also recommend Vasm which Foul linked to (and Vlink if you want to link multiple files).

Also check out Lallafa's various Amiga cross-development tools for running simple AmigaDOS executables and master disk images etc:  http://lallafa.de/blog/
Title: Re: assembling Amiga programs under Windows
Post by: DamageX on June 15, 2012, 08:39:24 PM
I was confused at first because I didn`t see vasm windows binaries on the site but I see that they are included in the archives linked by carls. Got it working, thanks to all