Lab#04: Adressing Modes: To Study and Examine The NASM and Addressing Modes
Lab#04: Adressing Modes: To Study and Examine The NASM and Addressing Modes
1
21395
Microcontroller and Microprocessor lab 4
2
21395
Microcontroller and Microprocessor lab 4
3
21395
Microcontroller and Microprocessor lab 4
IN DIRECT ADDRESING
4
21395
Microcontroller and Microprocessor lab 4
5
21395
Microcontroller and Microprocessor lab 4
6
21395
Microcontroller and Microprocessor lab 4
1.7 Procedure
To work in NASM ,we should have following software which is easily download by
google
We must have cmd prompt, afd debugger,NASM and linker
Write the code in notepad and save it by .asm esxtention
Open the cmd prompt
Write the command as describe above in cmd
To load file write saved file name i-e u1.asm
And load object file and listing file by extention as .com and .lst respectively
Now to view listing file write edit u1.lst the listing file window will open which shows the
program list and steps
Examine carefully so if any error occur then you can easily change it
Then to view object file write afd u1.com
By executing .com afd debugger will open which show the brief explanation
By executing each command the register status changing correspondingly
Also observe the IP status which is loading automatically
There are two memory windows in afd ,both showing the same value of register
Value can also be change in this window on typing in cmd line area.
1.8 NOTES:
Save the notepad file by .asm extention and then retrieve it in cmd by same extention
1-adressing modes
Problem Number
2-examine NASM
Working
Lab Performance
Viva
Instructor's Verification
7
21395
Microcontroller and Microprocessor lab 4
8
21395