南邮微机原理试验一二 下载本文

内容发布更新时间 : 2024/11/2 20:17:55星期一 下面是文章的全部内容请认真阅读。

DATA ENDS

CODE SEGMENT USE16

ASSUME CS:CODE,DS:DATA,ES:DATA BEG: MOV AX,DATA MOV DS,AX MOV ES,AX MOV AH,00H MOV AL,3 INT 10H LAST1:LEA SI,BUF1 LEA DI,BUF2 MOV BX,OFFSET BUF2 MOV CX,6 MOV AH,09H LEA DX,BUF3 INT 21H LAST: MOV AH,07H INT 21H

MOV BYTE PTR [BX],AL INC BX MOV AH,09H MOV DX,OFFSET OUT3 INT 21H LOOP LAST MOV AH,09H

精选

LEA DX,OUT4 INT 21H MOV CX,6 CLD REPE CMPSB JZ EXIT MOV AH,09H LEA DX,OUT1 INT 21H DEC BUF4 JZ LAST2 JMP LAST1 EXIT: MOV AH,09H LEA DX,OUT2 INT 21H LAST2:MOV AH,4CH INT 21H CODE ENDS END BEG

精选