资源描述:
《RC充放电测温》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、/*-----------------------------------------------------------------------Ë«×ֽڵij˷¨(R22:R23)*(R24:R25)-->(R20:R21:R22:R23)counter:r26-----------------------------------------------------------------------*/mul_sub:clrr20clrr21mova,@16movr26,abcpsw,crrcr22rrcr23mul_r1:jb
2、spsw,cjmpmul_r2mova,r25addr21,ajbcpsw,cincr20jbcpsw,cjmpmul_r0mova,r24addr20,ajmpmul_r2mul_r0:mova,r24addr20,abspsw,cmul_r2:rrcr20rrcr21rrcr22rrcr23djzr26jmpmul_r1ret/*------------------------------------------------------------------------¶à×Ö½Ú³ý·¨×Ó³ÌÐòR20R21R22R23/R24
3、R25=R22R23...R20R21counter:r26------------------------------------------------------------------------*/div_sub:mova,r24suba,r20jbspsw,cjmpdiv_beginjbspsw,zjmpdiv_overflowmova,r25suba,r21jbspsw,cjmpdiv_begindiv_overflow:bsflag_cal,div_flowretdiv_begin:mova,@16movr26,adiv_
4、loop:bcpsw,crlcr23rlcr22rlcr21rlcr20jbcpsw,cjmpdiv_r3mova,r24suba,r20jbspsw,zjmpdiv_r2div_r1:mova,r25suba,r21jbcpsw,zjmpdiv_r3div_r2:jbspsw,cjmpdiv_enddiv_r3:bsr23,0mova,r24subr20,amova,r25subr21,ajbspsw,cdecr20div_end:djzr26jmpdiv_loopret