文件名称:8-1
介绍说明--下载内容均来自于网络,请自行研究使用
编写子程序嵌套结构的程序,把整数分别用二进制和八进制形式显示出来。
主程序BANDO:把整数字变量VAL1存入堆栈,并调用子程序PAIRS
子程序PAIRS:从堆栈中取出VAL1 调用二进制显示程序OUTBIN显示出与其等效的二进制数,输出八个空格;调用八进制显示程序OUTOCT显示出与其等效的八进制数,调用输出回车及换行符的子程序
-Write subroutine nesting structure of the program, and integer, respectively, binary and octal display. Main BANDO: the entire digital variable VAL1 deposited stack and calls the subroutine PAIRS subroutine PAIRS VAL1: removed from the stack call the binary display the program OUTBIN shows its equivalent binary number, the output of eight spaces call octal display program OUTOCT display its equivalent octal number, call the subroutine output a carriage return and line feed
主程序BANDO:把整数字变量VAL1存入堆栈,并调用子程序PAIRS
子程序PAIRS:从堆栈中取出VAL1 调用二进制显示程序OUTBIN显示出与其等效的二进制数,输出八个空格;调用八进制显示程序OUTOCT显示出与其等效的八进制数,调用输出回车及换行符的子程序
-Write subroutine nesting structure of the program, and integer, respectively, binary and octal display. Main BANDO: the entire digital variable VAL1 deposited stack and calls the subroutine PAIRS subroutine PAIRS VAL1: removed from the stack call the binary display the program OUTBIN shows its equivalent binary number, the output of eight spaces call octal display program OUTOCT display its equivalent octal number, call the subroutine output a carriage return and line feed
(系统自动生成,下载前可以参看下载内容)
下载文件列表
8-1.asm