Gain Immediate access to our Essays
FREE access exchanged for your work, or pay £4.99
Words: | Submitted: Wed Jan 07 2004
... location keyin1 in to the accumulator mult val1 Multiplies the accumulator by the store location val1 store display Stores value in accumulator in the store location display read keyin2 Reads data inputted by keyboard and stores in the store location keyin2 load keyin2 Loads data from the store location keyin2 in to the accumulator mult val2 Multiplies the accumulator by the store location val2 add display Adds the store location display to the accumulator store total Stores value in accumulator in the store location total print total Displays contents of the store location total on the screen stop Stops program execution val1 data 2 Initialises a store location val1 with the value 2 in it val2 data 3 Initialises a store location val2 with the value 3 in it keyin1 data 0 Initialises a store location keyin1 with the value 0 in it keyin2 data 0 Initialises a store location keyin2 with the value 0 in it display data 0 Initialises a store location display with the value 0 in it total data 0 Initialises a store location total with the value 0 in it 3. Write a TOM program that displays two numbers, entered from the keyboard, in descending numerical ...
FREE access exchanged for your work, or pay £4.99