【转贴】16 bits to packed BCD, 51 ASM. 61周期/80字节
TEST_NUMEQU65432ORG000HMOVR2,#LOW(TEST_NUM);#11111111BMOVR3,#HIGH(TEST_NUM);#11111111B;65535CALLBIN2BCDSJMP$;==============================BIN2BCD:;--------------------------------------*;Input:R3:R2---16bitsb