| File Names

Previous | The A68k Assembler | Next

The names of the above files can be explicitly specified. However, `A68k` will generate default file names in the following cases:

- If the '-o' switch is omitted, a default name will be assigned to the object code file.
- If the '-e' switch is specified with no file name, a default name will be assigned to the equate file.
- If the '-l' or '-x' switch is specified with no file name, a default name will be assigned to the listing file.

A default name is generated by deriving a stem name from the source code file name, and appending `'.o'` for an object code file name (`'.s'` if the '-s' switch is specified to produce Motorola S-records), `'.equ'` for an equate file name, or `'.lst'` for a listing file name. The stem name consists of all characters of the source file name up to the last period (or the entire source file name if it contains no period). Here are some examples of default names:

Source file | Object file | Equate file | Listing file
myprog.asm | myprog.o | myprog.equ | myprog.lst
myprog | myprog.o | myprog.equ | myprog.lst
new.prog.asm | new.prog.o | new.prog.equ | new.prog.lst