In order to assemble or compile programs for the BSVC simulator with the gcc tools, you will need to download and save in your working directory the startup object file crt0.o and the linker script bsvc-unix.ld These two files together with the assembly program should all be in the same directory.
(Note: If you are doing this under MS WINDOWS at home you may use the Windows version of the linker script bsvc-win.ld).
Assemble the program in a terminal window as follows:
m68k-coff-as clab70s.s -o clab70s.o -m68000 -ahls=clab70s.lstThis will produce an object file clab70s.o and a listing file clab70s.lst
m68k-coff-ld clab70s.o -o clab70s.s19 -L. -Tbsvc-unix.ldThis will produce a Motorola s-record clab70s.s19 which can be read by the BSVC simulator. This linking process links in the startup routine and any other required routines from the standard C libraries.
Exercise.
ANU Engineering - ENGN3213