I've got some problems with Assembly Language.
The user have to enter some number from keyboard and then i'm going to do some operations with that number.
Is it ok to use this:
LEA DX ,SIZE;before in SEGMENT "DATA": SIZE DB 7
MOV AH,9
INT 21H
So,answer me,please,will this work,if not give an example,please.And where this number will be stored? In AX?
Thanks.
P.S.
I'm writting on emu8086.
Best Answer
According to your sample code you need the answer for the old DOS. As mentioned in a comment of Robert Harvey, the function 09 of interrupt 21h is for the output. The function 0Ah is responsible for the input. Here's a sample code taken from my other recent answer: