Home > other >  8086 from the keyboard input a character why I input enter the next instruction directly?
8086 from the keyboard input a character why I input enter the next instruction directly?

Time:11-20

Beginning 8086, want to input from the keyboard one character at a time, using 21 is interrupted, AH set to 1, then int 21 h, then I direct input a 2 to the next instruction, before I enter the enter?
The code below
Lea dx, MES1 '; 'Input first Number, 0 ah, 0 dh,' $'
Mov ah, 9
Int 21 h
Mov ah, 1
Int 21 h

Lea dx, MES2; Ah 'Input the second Number', 0, 0 dh, '$'
Mov ah, 9
Int 21 h

Running effect

CodePudding user response:

Key is detected, the interrupt return, return is also a button
  • Related