I need to find an interrupt that can receive from a user a number with more than 1 digit. ;code
mov [0],0
mov si,0
lop:
mov ah,1
int 21h
cmp al,'q'
je finishedInput
xor ah,ah
add [word ptr si], ax
jmp lop
finishedInput:
I have already tried to do an endless loop that each time uses the
mov ah,1
int 21h
combination. When the user press 'q' the endless loop stops. However, I am almost convinced that I have seen a code that do the same thing with interrupt instead.
I want to stop using this block and use short interrupt that does the work better