Pages created and updated by Terry Sturtevant Date Posted: January 16, 2018

CP316: Microprocessor Systems and Interfacing

Constants in program memory

Modify your version of test.asm so that the values for num1 and num2 are originally defined as constants in program memory which are loaded into variables at the beginning of the program.
Hint: Use different names for the constants than you use for the variables to indicate that once they are copied into data memory they no longer have to remain constant. Make sure the case used for the names is different in the different areas of memory.

You will have to do this later. Doing it now will make that easier.

Creative Commons License

Information on this site which is produced by Terry Sturtevant is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 2.5 Canada License.


To view pdf documents, you can download Adobe Acrobat Reader .
get Acrobat Reader
If you need to update a browser, you might try Firefox which is Get Firefox!
Since this page uses cascading style sheets for its layout, it will look best with a browser which supports the specifications as fully as possible.

If you are looking for an office package, with a word processor, spreadsheet, etc., you might try LibreOffice which is Get LibreOffice!

Go to the main page for the Department of Physics and Computer Science.

Valid XHTML 1.1

Valid CSS!

(Level AA)

Wilfrid Laurier University