Task 1 -- C <- [A] + [B]

The first task tackled is to add together the values stored at two memory locations and store the result at a third memory location. Using the HVZ notation, this operation is denoted as

   C <- [A] + [B]

Later we shall explore this operation in terms of the "C"-language.


Task 1 as a "real-life" problem

This task represents the solution for a wide range of problems. For example, the final variable C might represent any of the following

The contents of the initial memory locations A and B could also have been obtained in a variety of different ways

As we shall see in later exercises, where these variables will reside (exist) in memory has an effect on how we construct the source files.


Demonstration of this code

We will use this addition example to demonstrate how to take exercises from HVZ and run them using the SDS software and simulator.



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