基于汇编语言的代码块装载程序
摘 要
汇编语言(Assembly Language)是面向机器的程序设计语言.汇编语言是一种功能很强的程序设计语言,也是利用计算机所有硬件特性并能直接控制硬件的语言。汇编语言”作为一门语言,对应于高级语言的编译器,需要一个“汇编器”来把汇编语言原文件汇编成机器可执行的代码。高级的汇编器如MASM, TASM等等为我们写汇编程序提供了很多类似于高级语言的特征,比如结构化、抽象等。在这样的环境中编写的汇编程序,有很大一部分是面向汇编器的伪指令,已经类同于高级语言。现在的汇编环境已经如此高级,即使全部用汇编语言来编写windows的应用程序也是可行的,但这不是汇编语言的长处。汇编语言的长处在于编写高效且需要对机器硬件精确控制的程序。本文将利用汇编语言和C语言完成程序装载。
关键词:汇编语言;C语言;代码块;装载程序
Abstract
Assembly Language (Assembly Language) is a machine-oriented programming language. Assembly language is a highly functional programming language , but also the use of a computer all hardware features and can directly control the hardware language. Assembly language " as a language , corresponding to the high-level language compiler requires a " assembler " to the compilation of the original document assembly language into machine executable code. Senior assembler such as MASM, TASM and so for us to write assembler program offers many features similar to high-level languages , such as structural , abstract , etc. In such an environment to write assembler , a large part is facing the assembler directive , similar to the high-level language has now compiled environment has such a high , even if all the windows in assembly language to write applications that are possible, but this is not the assembly language strengths. written in assembly language 's strengths lie in the need for efficient and precise control of the machine hardware programs . article will use assembly language and C language program loading is completed .
Keywords : assembly language ; C language ; code blocks ; loader
目 录
摘 要 1
Abstract 2
第1章 汇编语言概述 3
1.1 编辑源程序 3
1.2 汇编源程序 4
1.3 连接目标程序 5
1.4 运行程序 5
1.5 DEBUG调试程序 6
第2章 汇编语言和C语言混合编程介绍 8
2.1 C语言和汇编语言混合编程中参数传递和寄存器使用 8
2.2 C55x DSP C语言和汇编语言混合编程实验 10
第3章 汇编语言和C语言实现代码块程序装载 14
3.1 概述 14
3.2 程序装载需求分析 15
3.3 程序装载设计概要 15
3.4 程序装载详细设计 18
3.5 测试 20
总 结 22
致 谢 23
参考文献 24