model small stack 100h data num db code main proc mov ax dat

-model small stack 100h data num db? ,code main proc mov ax, @data mov ds, ax call clrscr MOV NUM, 40H LOOP1 INC NUM CALL CHRd CALL CA CMP NUM 7Ah JNZ LOOP1 mov ax, 4C00h int 21h chrd proc mov ah, 6 mov dl, num int 21h RET chrd endp CA PROC CMP NUM, SAH JNZ SKIP ADD NUM 6 RET SKIP: RET What is the output of t explain it?

Solution

7ah

JNZ Loop1....>means move to loop1 using with conditional jump

mov ax,400h....>useful to assign 400h to ax

chrd proc....>means define procedure

move 6 to ah

move num to dl

intilized 21h

chrd ebdproc....>end the procedure

NUM Asign 5h

Add 6 to num

rrest and skip

 -model small stack 100h data num db? ,code main proc mov ax, @data mov ds, ax call clrscr MOV NUM, 40H LOOP1 INC NUM CALL CHRd CALL CA CMP NUM 7Ah JNZ LOOP1 mo

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site