XX DB 0AH, 0DH, "Please enter the string: $"
BVF DB 30
DB?
DB 30 DUP(? )
ed
SSEG segment stack
STK DB 100 DUP(? )
End of SSEG
code segment
Suppose CS: code, DS: data, SS:SSEG.
Start:
MOV axe, data
MOV DS,AX
LEA DX,XX
MOV, 9
INT 2 1H
LEA DX of BVF
MOV, 0AH
INT 2 1H
Bvmov city+1
And CX, 0FH
CX MOV·BX
Add BX,1; Determine the value of BX and find the offset position of the last element.
Mark: MOV, 2
MOV DL,BVF[BX]; There must be one of bx, si and di registers in parentheses.
INT 2 1H
BX December; The pointer moves forward.
Loop marking
MOV, 1
INT 2 1H; Pause and look at the output characters. If not, it will flash by.
MOV, 4CH
INT 2 1H
End of code
End start