2.2 - Lab Manual 1 - Introduction MOV, ADD Instructions
2.2 - Lab Manual 1 - Introduction MOV, ADD Instructions
http://wetolearn.blogspot.com/2013/09/setting-up-afd-nasm-and-dosbox-for-8086.html
After installations double click “DOSBox 0.74-2 Options.bat” file and at the end of the file paste following
lines:
MOUNT C D://COAL//NASM
C:
(We are mounting C drive to our folder where we have saved AFD and we will save our .asm file in this
directory)
You may follow links given below for Video Tutorial of Setup:
Tutorial part
1: https://drive.google.com/file/d/1N3lWL8hsN0ZbhF3tlNwCWWwjJ_eHQqk6/view?usp=sharing
AFD: https://drive.google.com/file/d/1eXnD3JEwBelFiJT6iIk7gluudV2Fu_iX/view?usp=sharing
NASM: https://drive.google.com/file/d/1ZoeE2MxjNaK7DdJKCacYfAJyn006MI_F/view?usp=sharing
Dosbox: https://drive.google.com/file/d/1DnaDIk4RoGBFDP1y4Dr3q89xwM3gx1d1/view?usp=sharing
Activity 2: Running your First Program
Follow these step in order to run your first program:
mov ax, 5 ; AX = 5
mov bx, 10 ; BX = 10
add ax, bx ; AX = AX + BX
mov bx, 15 ; BX = 15
add ax, bx ; AX = AX + BX
3- Go to NASM installation directory ( e.g. “D:\COAL\NASM”). Double click nasmpath.bat (batch file)
and type following command there. (Your .asm file and nasm should be in one folder)
5- Open DOSBox (by double clicking dosbox.exe), following window will appear: