output format : target-format/F ; ~check the manual of GNU AS to see how the "format" of the output is specified~.
--target-format bin = just the compiled instruction, no header or other things like relocation table ; **this is the default format
--target-format tos = generate an executable program for the Atari ST Operating System (TOS) ; if executable supporting parameters (*.TTP extension, as Tos Takes Parameters) is different, there will be a tos-ttp format.
--target-format elf generates an ELF program
output file name : output, by default, a.out
Step 1.a -- compile the two lines of code
When invoking m68k_as justquit.s
Then the resulting a.out MUST be the same as compiling the program with vasm with the command : vasmm68k_mot -Fbin justquit.s.
When invoking m68k_as --output justquit.prg --target-format tos justquit.s
Then the resulting file justquit.prg MUST be the same as compiling the program with vasm with the command : vasmm68k_mot -Ftos -o justquit.tos justquit.s
Step 1 -- Compile and generate a minimal program for Atari ST
The smallest valid program (
*.PRG
file) is a call to the GEMDOS functionPterm0
Save this program in to a file named
justquit.s
.TO BE DEFINED -- command line interface
m68k_as
target-format
/F
; ~check the manual of GNU AS to see how the "format" of the output is specified~.--target-format bin
= just the compiled instruction, no header or other things like relocation table ; **this is the default format--target-format tos
= generate an executable program for the Atari ST Operating System (TOS) ; if executable supporting parameters (*.TTP
extension, asTos Takes Parameters
) is different, there will be atos-ttp
format.--target-format elf
generates an ELF programoutput
, by default,a.out
Step 1.a -- compile the two lines of code
When invoking
m68k_as justquit.s
Then the resulting
a.out
MUST be the same as compiling the program withvasm
with the command :vasmm68k_mot -Fbin justquit.s
.This step requires :
move
with a size suffix.m
, andtrap
#<number>
, predecrement address mode, and alternate namesp
fora7
Step 1.b -- generate an executable program
When invoking
m68k_as --output justquit.prg --target-format tos justquit.s
Then the resulting file
justquit.prg
MUST be the same as compiling the program withvasm
with the command :vasmm68k_mot -Ftos -o justquit.tos justquit.s