Professional Documents
Culture Documents
Computer Architectutre Manual 7 2019-Cpe-27 Muhammad Usama Saghar
Computer Architectutre Manual 7 2019-Cpe-27 Muhammad Usama Saghar
Manual Details
Submission Details
2019-cpe-27
Theory:
Given the fact that the assembler knows only numbers We can write the same program using a
single
label. As we know that num? is two ahead of num1, we' can use num1+2 Instead of num2 and
let the
assembler calculate 'he sum during assembly process.
Now we write the program with that the numbers 5, 10, and 15 are stored as single label
instead of
three different labels.
009 ret
010 num1 dw
011 dw 10
012 dw15
013 dw0
The second number" is read from num1+2.Similarly the third number is read from num1+4. And
009 ret
Exercise
Write the above program code for addition of numbers using memory variables in emu8086
and give the information about "Com Symbol" & "Com list" files for each Instruction.