微型计算机课程设计
微型计算机控制技术设计课程设计报告
附录A 程序清单
STACK SEGMENT STACK
DW 256 DUP(?)
STACK ENDS
DATA SEGMENT
TABLE DB 01H,03H,02H,06H,04H,0CH,08H,09H ; TABLE1 DB 01H,09H,08H,0CH,04H,06H,02H,03H DATA ENDS
CODE SEGMENT
ASSUME CS:CODE,DS:DATA
START: MOV AX,DATA
MOV DS,AX
MAIN: MOV AL,90H
OUT 63H,AL
MOV CX,000CH
MOV BX,OFFSET TABLE A0: A1:
PUSH CX MOV CX,0008H MOV AL,[BX] OUT INC 61H,AL BX CX CALL DALLY LOOP A2 A2: POP LOOP A1