⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 test.exe.~asm

📁 这是接口课程设计时做的一个控制电机转动的程序
💻 ~ASM
字号:
BASE_ADR_ADC0809 EQU 1400H
BASE_ADR_8255 EQU 1440H
BASE_ADR_8254 EQU 1460H

STACK SEGMENT STACK
	DB 100 DUP(?)
STACK ENDS

DATA SEGMENT PUBLIC
	frequency DB ? 	;the speed of stepping motor and singing
	sequnce DB 05H,0CH,0AH,03H	;the driver of stepping motor
	index DB 1H		;the index of array 
	direction DB 0H	;rotate direction,0 is ShunShiZhen and 1 is NiShiZhen
	counter DB 0H
DATA ENDS

CODE SEGMENT PUBLIC
	ASSUME CS:CODE,DS:DATA,SS:STACK
	
	main PROC FAR
		start:						
			next:
				MOV AL,index	
				MOV SI,WORD PTR index	;输出数据进行转动
				MOV AL,sequnce[SI]	
		
				
				MOV AH,0BH
				INT 21H
				CMP AL,0
				JNE exitMain
				LOOP next
			exitMain:
				NOP
	main ENDP
CODE ENDS 
	END START

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -