Laboratory 1 -- Using the SDS 68K simulator

The first task was one to add together the values stored at two memory locations and store the result at a third memory location. In the HVZ notation this is expressed as

           C <- [A] + [B]

During this laboratory, we shall discuss how to take the original HVZ code (Chapter 2, figure 2.26, page 67) for performing this summation and convert it into a format that can be used with the SDS 68K simulator. The coding standard used in the examples of later Laboratories will be introduced.

As discussed earlier the SDS 68K DEMO kit is a powerful tool, with capabilities far and above what we need to have for an introductory computer organization course. We shall therefore use of HIW, the Hope It Works process. This involves identifying the absolute minimum number of things we need to change and to know. Fortunately the number of must do things are small and many can be automated.


Do rather than just watch

It can get rather boring just reading through this laboratory. It is recommended that you actually perform the exercises before the various results are discussed. This is best handled with

To cut down on some of the typing, it is possible to use the web browser to download the files. They should be accessed via the standard hyperlink approach, e.g. click on the link to bring up the file e1v0.s which can then be downloaded directly into your working directory. You can then do the exercise using the HTML information as a guide when you get stuck.


A Choice

You now have a choice of the way you want to proceed through Laboratory task 1.


HIW process steps

The first time through, follow all the steps involved in the Hope It Works process.

  1. Generating the SDS assembly language source and object files
  2. Specifying the memory locations for the program code and data
  3. Generating a 68K executable file
  4. Running the SDS 68K simulator
  5. The What if section of Laboratory 1
  6. There are a number of exercises you can try after you have completed Laboratory 1 to test your understanding of the ideas introduced during Laboratory 1.

If you have completed all the six steps in the HIW process, you are now ready to move onto Laboratory 2.



Last modified: July 14, 1996 06:40 PM by M. Smith. Copyright -- M. R. Smith