This is the interrupt I use to input a number, however it does not allow me to input numbers greater than 9:
mov AH, 08h
int 21h
Is there a different interrupt which will allow me to input a 2-digit number as well?
This is the interrupt I use to input a number, however it does not allow me to input numbers greater than 9:
mov AH, 08h
int 21h
Is there a different interrupt which will allow me to input a 2-digit number as well?
With 08h
you are requesting a single character input, see documentation e.g. here or a tutorial here. Reading two digits will then take two int 21h
s. Alternatively, you may take a look at using 0ah
buffered input, but considering it's only two characters:
mov ah, 08h
int 21h
mov dl, al
int 21h
; now dl contains the first character, al the second