For Assistance with other modules
Call or Whatsapp +27682021794
www.myassignments.co.za
COS2621
Assignment 01
Semester 02
2022
Due date
Sunday, 31 July 2022, 8:00 PM
UNIQUE NUMBER: 830821
, QUESTION 1
(a) The following table reflects the contents of a part of memory in a one‐address machine with an
accumulator:
Address Contents
00 20
20 30
30 40
40 50
50 60
60 70
What values do the following instructions load into the accumulator?
LOAD IMMEDIATE 20: Immediate addressing. The value to be used forms part of the instruction. In this
instance, the value 20 will be loaded into the accumulator.
LOAD DIRECT 20: Direct addressing. The instruction contains the address where the value is to found.
Address 20 contains the value 30, thus the value 30 will be loaded into the accumulator.
LOAD INDIRECT 20: Indirect addressing. The instruction contains the address where the address of the value
to be used, is to be found. Address 20 contains the address of the value to be used, ie address 30. Address 30
contains 40, thus the value 40 will be loaded into the accumulator.
(b) Give examples of Intel x86 instructions in which the following addressing modes are
used:
2
Call or Whatsapp +27682021794
www.myassignments.co.za
COS2621
Assignment 01
Semester 02
2022
Due date
Sunday, 31 July 2022, 8:00 PM
UNIQUE NUMBER: 830821
, QUESTION 1
(a) The following table reflects the contents of a part of memory in a one‐address machine with an
accumulator:
Address Contents
00 20
20 30
30 40
40 50
50 60
60 70
What values do the following instructions load into the accumulator?
LOAD IMMEDIATE 20: Immediate addressing. The value to be used forms part of the instruction. In this
instance, the value 20 will be loaded into the accumulator.
LOAD DIRECT 20: Direct addressing. The instruction contains the address where the value is to found.
Address 20 contains the value 30, thus the value 30 will be loaded into the accumulator.
LOAD INDIRECT 20: Indirect addressing. The instruction contains the address where the address of the value
to be used, is to be found. Address 20 contains the address of the value to be used, ie address 30. Address 30
contains 40, thus the value 40 will be loaded into the accumulator.
(b) Give examples of Intel x86 instructions in which the following addressing modes are
used:
2