微机原理实验带答案.doc
《微机原理实验带答案.doc》由会员分享,可在线阅读,更多相关《微机原理实验带答案.doc(13页珍藏版)》请在淘文阁 - 分享文档赚钱的网站上搜索。
1、#make_COM#; COM file is loaded at CS:0100hORG 100h; arrayJMP STARTARRAY DB 80H,03H,5AH,0FFH,97H,64H,0BBH,7FH,0FH,0D8HCHANGE: MOV AL,ARRAYBX INC BX DEC CX JMP COMPASTART: MOV BX,0 MOV AL,ARRAYBX MOV CX,5COMPA: CMP AL,ARRAYBX JL CHANGE INC BX LOOP COMPAE1: MOV BL,AL MOV CX,2 AND AL,0F0H SHR AL,4 DEC C
2、X CMP AL,9 JLE SHU JA ZIE2: MOV AL,BL AND AL,0FH DEC CX CMP AL,9 JLE SHU JA ZI CMP AL,9 DEC CX JLE SHU JA ZISHU: ADD AL,30H JMP PRINT ZI: ADD AL,37H JMP PRINTPRINT: MOV DL,AL MOV AH,2 INT 21H JCXZ E3 JMP E2E3: MOV DL,H MOV AH,2 INT 21H MOV AH,4CH INT 21H END START#make_COM#; COM file is loaded at CS
3、:0100hORG 100hJMP STARTSTRING DB 500H的BCD码是: $NUM1 EQU 500HSTART: MOV AX,NUM1 MOV CX,1000 DIV CX XCHG AX,DX SHL DX,4 MOV CL,100 DIV CL ADD DL,AL SHL DX,4 SHR AX,8 MOV CL,10 DIV CL ADD DL,AL SHL DX,4 ADD DL,AH LEA DX,STRING MOV AH,9 INT 21H MOV AH,4CH INT 21H END START #make_COM#; COM file is loaded
4、at CS:0100hORG 100hJMP STARTSTRING DB THE ASCII OF BCD 7693 IS: ,$NUM DB 4 DUP(?)START: LEA DX,STRING MOV AH,9 INT 21H MOV AX,7693 MOV CX,10 MOV BX,0ACT: MOV DX,0 DIV CX PUSH AX MOV NUMBX,DL CMP NUMBX,9 JBE A1 ADD NUMBX,37HCHA: INC BX CMP BX,4 JAE ACT2 JMP ACT A1: ADD NUMBX,30H JMP CHAACT2: MOV BX,3
5、A2: MOV CL,16 MOV AL,NUMBX MOV AH,0 DIV CL DEC BX CMP BX,0FFFEH JE EXIT JMP SHOW SHOW: PUSH AX ADD AL,30H MOV DL,AL MOV AH,2 INT 21H POP AX ADD AH,30H MOV DL,AH MOV AH,2 INT 21H MOV DL,H INT 21H MOV DL, INT 21H JMP A2EXIT: MOV AH,4CH INT 21H END START #make_COM#; COM file is loaded at CS:0100hORG 10
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 微机 原理 实验 答案
限制150内