微机原理
CALL SET_POSITION ; 置光标位置
DEC BX
MOV DL,[BX]
CMP DL,20H
JZ LAST1
JMP LAST
LAST1: DEC BX
MOV DL ,[BX]
CMP DL,20H
JZ SHOW
JMP LAST1
NEXT: CALL CLEAR
CALL SET_POSITION
INC BX
MOV DL,[BX]
CMP DL,20H
JZ SHOW
JMP NEXT
KNOW: CALL CLEAR
CALL SET_POSITION
INC CH ;统计记忆单词个数 JMP NL
UNKNOW: CALL CLEAR
CALL SET_POSITION
PUSH BX
UNKNOW1: DEC BX
MOV DL,[BX]
CMP DL,20H
JZ SAVE
JMP UNKNOW1
UNKNOW2: POP BX
INC CL ;统计未记忆单词个数 JMP NL
SAVE: MOV [DI],BX ;记录未记忆单词的偏移地址 ADD DI,2
JMP UNKNOW2
STOP: CALL CLEAR
KS: MOV AH,02 ;调用中断置光标位置 MOV BX,0
MOV DX,0500H
INT 10H