文件名称: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 call the subroutine PAIRS
Subroutine PAIRS: from the stack the VAL1 call binary display program OUTBIN display its equivalent binary number, the output of eight spaces call octal display program OUTOCT display its equivalent octal number, call the output a carriage return and exchange line character of the subroutine.
主程序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 call the subroutine PAIRS
Subroutine PAIRS: from the stack the VAL1 call binary display program OUTBIN display its equivalent binary number, the output of eight spaces call octal display program OUTOCT display its equivalent octal number, call the output a carriage return and exchange line character of the subroutine.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
8-1.asm