问题描述
- 接口与汇编。我有如下几个简单的程序,我想是实现如图功能,8255多分支
以下有几个小程序CODE SEGMENTASSUME CS:CODESTART:MOV AL89H MOV DX0073H OUT DXALS: MOV DX0072H IN ALDX MOV DX0071H OUT DXAL JMP S CODE ENDS END START相反CODE SEGMENTASSUME CS:CODESTART:MOV AL89H MOV DX0073H OUT DXALS: MOV DX0072H IN ALDX NOT AL MOV DX0071H OUT DXAL JMP S CODE ENDS END START左CODE SEGMENTASSUME CS:CODESTART:MOV AL89H MOV DX0073H OUT DXAL MOV AL0FEHS: MOV DX0071H OUT DXAL ROL AL1 MOV CX0FFFFH DELAY:LOOP DELAY JMP S CODE ENDS END START右CODE SEGMENTASSUME CS:CODESTART:MOV AL89H MOV DX0073H OUT DXAL MOV AL0FEHS: MOV DX0071H OUT DXAL ROR AL1 MOV CX0FFFFH DELAY:LOOP DELAY JMP S CODE ENDS END START+1:CODE SEGMENTASSUME CS:CODESTART:MOV AL89H MOV DX0073H OUT DXAL MOV AL0FEHS: MOV DX0071H OUT DXAL DEC AL MOV CX0FFFFH DELAY:LOOP DELAY JMP S CODE ENDS END START-1:CODE SEGMENTASSUME CS:CODESTART:MOV AL89H MOV DX0073H OUT DXAL MOV AL0FEHS: MOV DX0071H OUT DXAL INC AL MOV CX0FFFFH DELAY:LOOP DELAY JMP S CODE ENDS END START
解决方案
http://wenku.baidu.com/link?url=F17EErj0iNuAWM3UpOne385uwPqV2ItF7rywSSkgSl7ewtnwf5PxDhtNF9bFwPpnCYlYkGGox0uHSBXKcdW1HIXKGWPulBt8_vpqWZ4cLTS
http://www.docin.com/p-686994948.html
时间: 2024-12-11 16:08:59