I have to extract digit stored in si register. here is my code
lea si, userInput
inc si
mov bx, [si]
mov dx, [si+bx]
add dx, 30h
mov ah, 2h
int 21h
So i think code works fine if i put hard value in dx register like mov dx, [si+2]
but if try to use mov dx, [si+bx]
it does not work and does not give ouput as expected