📄 motorprocess.s
字号:
.module motorprocess.c
.area text(rom, con, rel)
.dbfile D:\NEWWOR~1\motor\motorprocess.c
.dbfunc e ActionMoneyDrive _ActionMoneyDrive fV
; ucSeg -> R1
; ucData -> R0
.even
_ActionMoneyDrive::
.dbline -1
.dbline 5
; #include <iom64v.h>
; #include <macros.h>
; #include "head.h"
; void ActionMoneyDrive(U8 ucData,U8 ucSeg)
; {
.dbline -2
L1:
.dbline 0 ; func end
ret
.dbsym l ucSeg 2 c
.dbsym l ucData 0 c
.dbend
.dbfunc e ActionMotorDrive _ActionMotorDrive fV
; ucSeg -> R1
; ucData -> R0
.even
_ActionMotorDrive::
.dbline -1
.dbline 13
; //控制电机
; //do something
; //电机是否正确动作
; //return something
; //return true;
; }
; void ActionMotorDrive(U8 ucData,U8 ucSeg)
; {
.dbline -2
L2:
.dbline 0 ; func end
ret
.dbsym l ucSeg 2 c
.dbsym l ucData 0 c
.dbend
.dbfunc e ProcessMoneyDrive _ProcessMoneyDrive fV
; ucSeg -> R16
; ucData -> R16
.even
_ProcessMoneyDrive::
.dbline -1
.dbline 23
;
; //控制电机
; //do something
; //电机是否正确动作
; //return something
; //return true;
; }
;
; void ProcessMoneyDrive()
; {
.dbline 26
; U8 ucData;
; U8 ucSeg;
; ucData=ucSeg=0;
clr R16
.dbline -2
L3:
.dbline 0 ; func end
ret
.dbsym r ucSeg 16 c
.dbsym r ucData 16 c
.dbend
.dbfunc e ProcessMotorDrive _ProcessMotorDrive fV
; ucSeg -> R16
; ucData -> R16
.even
_ProcessMotorDrive::
.dbline -1
.dbline 33
; ///1.第一步
; ///2.第二步
; ///
; //return true;
; }
; void ProcessMotorDrive()
; {
.dbline 36
; U8 ucData;
; U8 ucSeg;
; ucData=ucSeg=0;
clr R16
.dbline -2
L4:
.dbline 0 ; func end
ret
.dbsym r ucSeg 16 c
.dbsym r ucData 16 c
.dbend
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -