描述 | Test Probes VOLTAGE DETECTOR NON |
---|
mov r2,#20h mov r3,#34h mov a,#99h lcall bhd lcall hbd nop nop;三字节除以单字节子程序;入口条件:被除数在r3、r4、r5中,除数在r7中。;出口信息:ov=0 时,双字节商在r4、r5中,ov=1 时溢出。;影响资源:psw、a、b、r2~r7 堆栈需求: 2字节dv31: clr c mov a,r3 subb a,r7 jc dv30 setb ov ;商溢出 retdv30: mov r2,#10h;求r3r4r5/r7-→r4r5dm23: clr c mov a,r5 rlc a mov r5,a mov a,r4 rlc a mov r4,a mov a,r3 rlc a mov r3,a mov f0,c clr c subb a,r7 anl c,/f0 jc dm24 ...
k三字节二进制无符号数除以单字节二进制数入口条件:被除数在r3、r4、r5中,除数在r7中。出口信息:ov=0 时,双字节商在r4、r5中,ov=1 时溢出。影响资源:psw、a、b、r2~r7 堆栈需求: 2字节dv31: clr c mov a,r3 subb a,r7 jc dv30 setb ov ;商溢出 retdv30: mov r2,#10h ;求r3r4r5/r7-→r4r5dm23: clr c mov a,r5 rlc a mov r5,a mov a,r4 rlc a mov r4,a mov a,r3 rlc a mov r3,a mov f0,c clr c subb a,r7 anl c,/f0 jc dm24 mov r3,a ...