摘要
本文分析了多字节二进制小数转换为BCD码的子程序,并给出改进后快速转换的子程序,使二进制小数的两个字节,所需BCD码结果字节数为4(或8)时转换时间缩短为原程序的60%(或44%)。而且程序也从原来的47行简化为40行。
This paper analyze the subprogram that multibyte binary decimal shift BCD code and give improved subprogram that can quickly shift. It reduce the shift time when two bytes of binary decimal need the result byte number of BCD code is 4 (or 8) to 60%(or 44%) of previous and the program lines become 40 lines from previous 47 lines.
出处
《电子质量》
2002年第10期158-158,168,共2页
Electronics Quality