摘要
总结出压缩BCD码与二进制相互转换的4种方法,即逐位调整法、DAA指令法、除十求余法和按权展开法。同时分析了各种方法的适用范围和不同条件下应该使用的最佳方法。最后结合具体程序说明各种方法的使用方法,并且给出注意事项。
Conclude four methods of conversing binary digit to packed BCD format mutually, that is Bit by Bit Adjustment Method, DAA Instruction Method, Divided by Ten to Calculate the Remainder Method and Sum of the Weights Method. Secondly, analyze the application range of each method and point out the best method to be chosen under different conditions. Finally, combined with specific programs to demonstrate the way of using each method and provide the precautions to instruct and inspire the students.
出处
《工程建设与设计》
2010年第5期103-107,共5页
Construction & Design for Engineering
关键词
逐位调整法
DAA指令法
除十求余法
按权展开法
bit by bit adjustment method
daa instruction method
divided by ten to calculate the remainder method
sum of the weights method