test.exe.~asm
来自「这是接口课程设计时做的一个控制电机转动的程序」· ~ASM 代码 · 共 38 行
~ASM
38 行
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 + =
减小字号Ctrl + -
显示快捷键?