单词记忆测试器程序设计

发布时间:2021-06-11

微机原理

STACK SEGMENT STACK

DB 50 DUP(0)

STACK ENDS

DATA SEGMENT

WORD1 DB 300 DUP(0)

WORD2 DB 20 DUP(0)

MSG0 DB 'THE NUMBER OF WORD YOU HAVE REMEBERED : $' MSG1 DB 'THE NUMBER OF WORD YOU HAVE NOT REMEBER :$ '

MSG2 DB 'PLEASE INPUT WORDS,END WITH END.PRESS ENTER TO

END INPUT AND START TEST!',0AH,0DH,'$'

MSG3 DB 'THE WORD YOU HAVE NOT REMEBERED:$'

MSG4 DB 'THE SOURCE WORD:$'

STR1 DB 0AH,'PERSS K OR U TO JUDGE IF YOU KNOW THIS

WORD!YOU CAN PRESS N OR L TO DISPLAY THE NEXT WORD!',0AH,'$'

STR2 DB 0AH,'PERSS N OR L TO CHOOSE THE NEXT WORD,PERSS O

IS JUMP OUT THE GAME!',0AH,'$'

RATE0 DB 'THE RIGHT RATE IS:$'

DATA ENDS

CODE SEGMENT

ASSUME CS:CODE , DS:DATA, SS:STACK

START: MOV AX,DATA ;取数据段地址

MOV DS,AX

MOV CX,0

MOV DI,OFFSET WORD2

PUSH DI

MOV DX,OFFSET MSG2 ;调用中断显示字符串

MOV AH,09H

INT 21H

LEA SI,WORD1

INPUT: INC SI

MOV AH,01H ;输入单词

MOV DL,0FFH

INT 21H

MOV [SI],AL

CMP AL,0DH

JZ FIRST

JMP INPUT

FIRST: CALL CLEAR

单词记忆测试器程序设计.doc 将本文的Word文档下载到电脑

精彩图片

热门精选

大家正在看

× 游客快捷下载通道(下载后可以自由复制和排版)

限时特价:7 元/份 原价:20元

支付方式:

开通VIP包月会员 特价:29元/月

注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信:fanwen365 QQ:370150219