;——————————————–;NAME:F_Div;INPUT:R_opA,R_opB;OUTPUT:R_opRes,R_opMod(余数
;——————————————–
;NAME:F_Div
;INPUT:R_opA,R_opB
;OUTPUT:R_opRes,R_opMod(余数)
;FUN:
;——————————————–
.IFJ_DivOpera
F_Div:
LDA R_opB
BEQ END_DIV
LDA R_opA
STA R_opMod
LDA #00H
STA R_opRes
DIV_LOOP:
%ClearWDT
SEC
LDA R_opMod
SBC R_opB
BCC END_DIV
STA R_opMod
INC R_opRes
JMP DIV_LOOP
END_DIV:
LDAR_opMod
RTS
声明:本文内容来自网络转载或用户投稿,文章版权归原作者和原出处所有。文中观点,不代表本站立场。若有侵权请联系本站删除(kf@86ic.com)https://www.86ic.net/qianrushi/260229.html