Simulation (Stage 3) -- Final coding solutions for Task 1 |
On this web page we are going to look at solving the following problems
Making all of the above changes to the file e1v3.s gives us the final source file e1final.s. You might like to call this file 68kfinal.s in order to distinguish it from the final source code in the PowerPC version of this laboratory.
Those of you that have been following some of the side links in the web pages, here are all the various "final" files and other issues we have examined
You need to have the following files in your Laboratory 1 directory before proceeding
To maximize the information brought in by the source file into the simulation program it is necessary to use the -f option with the assembler as68000.
as68000 -V 68020 -f -L -m -e1final.s
This option is automatically set if you use the SDS assembler GUI interface.
With the -f assembler flag set, using the Mixed option in the simulator Source window will display
All this information can be very useful when debugging your code. As we shall see later, it is unfortunate that the PowerPC assembler does not support this option, although the PowerPC "C" compiler does.
Note that the meaning of the as68000 -f option is different than the linker -f option. The latter option controls memory location usage specification.
![]() |
Last modified: July 14, 1996 06:40 PM by M. Smith.
Copyright -- M. R. Smith