武汉理工大学华夏学院《微机原理与接口技术》课程设计
START: MOV AX,DATA................................................................................................................... 11
MOV DS,AX................................................................................................................................... 11
MOV AL,99H................................................................................................................................. 11
OUT 63H,AL.................................................................................................................................. 11
LOOP1: MOV CX,08H..................................................................................................................... 11
MOV BL,0FEH ;左移子程序........................................................................................................... 11
ZY: MOV AL,BL.............................................................................................................................. 11
OUT 61H,AL.................................................................................................................................. 11
CALL DELAY ;调延时程序,启动...................................................................................................... 11
ROL BL,1....................................................................................................................................... 11
LOOP ZY........................................................................................................................................ 11
LOOP2: IN AL,62H.......................................................................................................................... 11
TEST AL,40H.................................................................................................................................. 11
JE LOOP3...................................................................................................................................... 11
MOV CX,04H................................................................................................................................. 11
MOV BL,0FEH ;偶数子程序........................................................................................................... 11
YY: MOV AL,BL.............................................................................................................................. 11
OUT 61H,AL.................................................................................................................................. 11
CALL DELAY ;调延时程序.............................................................................................................. 11
ROL BL,2....................................................................................................................................... 11
LOOP YY....................................................................................................................................... 11
LOOP3: IN AL,62H.......................................................................................................................... 11
TEST AL,20H.................................................................................................................................. 11
JE LOOP4...................................................................................................................................... 11
MOV CX,04H................................................................................................................................. 11
MOV BL,0FDH ;奇数子程序........................................................................................................... 11
XY: MOV AL,BL.............................................................................................................................. 11
OUT 61H,AL.................................................................................................................................. 11
CALL DELAY ;调延时程序.............................................................................................................. 12
ROL BL,2....................................................................................................................................... 12