论文部分内容阅读
单板机用于实的控制时,由于其内存容量一般都不大,因此如何节省内存单元是在编制程序时必须考虑的问题。一、写程序指令的应用在计算机执行程序时,时常会遇到这样的情况:主程序通过判断当前的条件来调用不同的子程序、或者不同的主程序需要调用不同的子程序,而这些子程序只有对应的一条或很少几条指令不同。对于这样的情况,我们可以应用写指令程序来节省子程序,将那些子程序合并成一个。图1是采用写指令程序示意
Slicer for real control, because of its memory capacity is generally not large, so how to save memory cells in the preparation of the program must consider the issue. First, the application of the write program instructions In computer execution, often encounter such a situation: the main program by calling the current conditions to call different subroutines, or different main program needs to call a different subroutine, and these sub The program only one or a few instructions corresponding to different. For such a situation, we can save the subroutine by using the write instruction program and combine the subroutines into one. Figure 1 is the use of write instructions program instructions