i'm learning assembly and here is my program, no need to explain what it does' but what can i add to the program that will display a letters to the screen to show the program works on each comparison to 10?.
thanx in advance....ROB.
MODEL Small
STACK 100h
.DATA
nta1 db 5
nta2 db 4
nta3 db 7
.CODE
mov ax,@data
mov ds,ax
mov al,nta1
add al,nta2
cmp al,10
je finish
add al,nta3
cmp al,10
je finish
finish: mov ah,4ch
int 21h
END
thanx in advance....ROB.
MODEL Small
STACK 100h
.DATA
nta1 db 5
nta2 db 4
nta3 db 7
.CODE
mov ax,@data
mov ds,ax
mov al,nta1
add al,nta2
cmp al,10
je finish
add al,nta3
cmp al,10
je finish
finish: mov ah,4ch
int 21h
END