COAL Lab Manual 1 FAST NUCES
COAL Lab Manual 1 FAST NUCES
Lab Manual 01
Computer Organization and Assembly Language Lab
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
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)
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
5- Open DOSBox (by double clicking dosbox.exe), following window will appear:
Help: [Approach 1] Can you do this using two registers only? [Approach 2] Can you do this using one
register only if we have add ax, 3 available in our instruction set? Try both of these approaches and
watch the first five entries of table of 3 in AX.