Assembly Language Practice Questions
Assembly Language Practice Questions
Assembly Language Practice Questions
Question # 1:
Write a program that copies unsigned numbers from one array to another but it copies
numbers that are in range of >10 to <101. Write chkRange procedure first, this procedure is
called by the main procedure.
Code:
.model small inc si
.data dec cx
JL No mov ah,4ch
int 21h
JG No end main
Question # 2:
Write a program that copies signed numbers from one array to another but it copies
numbers that are in range of -10 and -100
Code:
.model small inc si
.data dec cx
Jg No mov ah,4ch
mov [di],bh
Question # 3:
Write a procedure that coverts a mixed alphabetic string to all Capital letters and displays it
Code:
.data printString:
jg printString
Question # 4:
Write a program that replaces all capital letters of a string to #, test this program logic
thoroughly with test sets.
Code:
model small jle printString
.stack 100h
.data printString:
int 21h
main proc
jnz l1
mov cx,8
int 21h
l1:
jge printString
cmp dl,90