文件名称: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 The octal show program OUTOCT show its equivalent octal number, call the output a carriage return and line feed 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 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 The octal show program OUTOCT show its equivalent octal number, call the output a carriage return and line feed subroutine.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
8-1.asm
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.