Computer Architectutre Manual 8 2019-Cpe-27 Muhammad Usama Saghar
Computer Architectutre Manual 8 2019-Cpe-27 Muhammad Usama Saghar
Computer Architectutre Manual 8 2019-Cpe-27 Muhammad Usama Saghar
Manual Details
Submission Detail
Roll no 2019-cpe-27
Theory:
A last variation using direct addressing shows that we can directly add a memory variable and a
register Instead of adding a register into another that we were doing till now.
Now we write the program such that the numbers 5, 10, and 15 ate stored directly in memory.
009 ret
During execution we observe that the word data as it is read into a register is read in correct
orders-The change in this example is that the destination of addition is memory. Method
memory is direct addressing, whether it is the MOV instruction or the ADD instruction.
The first two instructions of the above program read a number into AX and placed it at another
memory location. A quick thought reveals that the following a possible single instruction to
replace the couple:
EXERCISE
1. Write the above program code for addition of numbers directly in memory in emu8086
and give the information about "Com Symbol" & "Com list" files for each instruction.