Make your own free website on Tripod.com

Homework #3

(a)   Translate the following sequence of SRC Assembly language statements
        into Hex and write a bin file.  The format for a bin file is that each line
        contains the 8 Hex digit address followed by 4 spaces followed by the
        instruction in Hex.  The first line contains a number only in the leftmost
        column. It is the address to which the PC should be initialized. Use
        Notepad
in the Accessories folder to write the file and name it Parta.bin. 
        Load the file
into the simulator and check to see if it is correct. If it is, single
        step through
the program to make sure that it runs correctly by first storing
        a positive and
then a negative value into the memory location associated
        with X. (See page
58 of your text).

        To display the memory area associated with X, type the number
         000003e0 into the space for the address of the first memory cell in the
         simulator and press enter.  X is at location 1000 decimal or
         000003e8 Hex.

Note:  It is very easy for you to cheat by using the assembler to translate the  source code.  If you do, the only one that you’ll be cheating is yourself.

           Hand in printouts of Parta.bin and the Simulator window with the bin file
           loaded.

 

(b)      Translate the following statement to SRC Assembly language
           and test the program to make sure that the values are
           stored correctly in the array "ndigit".  Be sure to put a "stop" in
            the assimbly code as the last statement to be executed.

            Hand in a printout of the "lst" file and a picture of the simulator
            window.

Nedstat Counter