Mapua Institute of Tehnology School of Information Technology CS 108L – AT1 7:30 – 12pm /Monday/104
Practical Exam
Submitted by: Nassiri, Nima Bibat 2005380020 IT / 3
Submitted To: Engr. Niño E. Merencilla 02/18/2008
Nbn_pr1: .model small .stack .data .code start: mov ah,02h mov cx,14h nima:
mov dl,"N" int 21h mov dl,"A" int 21h mov dl,"S" int 21h mov dl,"S" int 21h mov dl,"I" int 21h mov dl,"R" int 21h mov dl,"I" int 21h mov dl,"," int 21h mov dl," " int 21h mov dl,"N" int 21h mov dl,"I" int 21h mov dl,"M" int 21h mov dl,"A" int 21h mov dl," " int 21h mov dl,"B" int 21h mov dl,"." int 21h mov dl,0ah int 21h mov dl,0dh int 21h loop nima mov ah,4ch int 21h end start Nbn_pr2: .Model Small .Stack .data .code nima: mov DL,BH int 21h mov DL,BL int 21h mov DL,0AH int 21H mov DL,0DH int 21H dec BL loop nima ret endp
start: mov mov mov mov
AH, CX, BH, BL,
02H 0AH 39H 39H
call nima dec mov mov MOV INT MOV INT
BH CX, BL, AH, 21H AH, 21H
0AH 39H 01H 02H
call nima dec mov mov MOV INT MOV INT
BH CX, BL, AH, 21H AH, 21H
0AH 39H 01H 02H
call nima dec mov mov MOV INT MOV INT
BH CX, BL, AH, 21H AH, 21H
0AH 39H 01H 02H
call nima dec mov mov MOV INT MOV INT
BH CX, BL, AH, 21H AH, 21H
0AH 39H 01H 02H
call nima dec mov mov MOV INT MOV INT
BH CX, BL, AH, 21H AH, 21H
0AH 39H 01H 02H
call nima dec mov mov MOV INT MOV INT
BH CX, BL, AH, 21H AH, 21H
0AH 39H 01H 02H
call nima dec mov mov MOV INT MOV INT
BH CX, BL, AH, 21H AH, 21H
0AH 39H 01H 02H
call nima dec mov mov MOV INT MOV INT
BH CX, BL, AH, 21H AH, 21H
0AH 39H 01H 02H
call nima dec mov mov MOV INT MOV INT
BH CX, BL, AH, 21H AH, 21H
0AH 39H 01H 02H
call nima mov AH, 4CH int 21H end start nbn_pr3: .model small .stack .data .code start: mov mov mov mov
ah,02h cx,1ah bh,5ah bl,61h
nima: mov dl,bh int 21h mov dl,bl int 21h mov dl," " int 21h dec bh inc bl loop nima mov ah,4ch int 21h end start
Output_pr1:
Output_pr2:
Output_pr3: