单字节乘法 MCU:SONIX

来源:互联网 发布:gis软件平台 编辑:程序博客网 时间:2024/06/06 05:42
;**********************************************;Name:hex_1B_mul_1B;Function:;单字节乘法;Input  :temp0,temp1;Output:temp2,temp3;Register Used:temp4;**********************************************hex_1B_mul_1B:clrtemp2clrtemp3mova,#8b0movtemp4,amul_loop:rlcmtemp0b0bts1fcjmpmul_loop_next1b0mova,temp1addtemp2,amova,#0adctemp3,amul_loop_next1:decmstemp4jmpmul_loop_next2jmpmul_loop_endmul_loop_next2:b0bclrfcrlcmtemp2rlcmtemp3jmpmul_loopmul_loop_end:ret

原创粉丝点击