📄 as_en.doc
字号:
Alfred Arnold, Stefan Hilse, Stephan Kanthak, Oliver Sellke, Vittorio
De Tomasi
Macro Assembler AS V1.42
--------------------------------------------
User's Manual
Edition August 2003
IBM, PPC403Gx, OS/2, and PowerPC are registered trademarks of IBM Cor-
poration.
Intel, MCS-48, MCS-51, MCS-251, MCS-96, MCS-196 und MCS-296 are regis-
tered trademarks of Intel Corp. .
Motorola and ColdFire are registered trademarks of Motorola Inc. .
PicoBlaze is a registered trademark of Xilinx Inc.
UNIX is a registered trademark of the The Open Group.
Linux is a registered trademark of Linus Thorvalds.
Microsoft, Windows, and MS-DOS are registered trademarks of Microsoft
Corporation.
All other trademarks not explicitly mentioned in this section and
used in this manual are properties of their respective owners.
This document has been processed with the LaTeX typesetting system,
using the Linux operating system.
Contents
1. Introduction
1.1. License Agreement
1.2. General Capabilities of the Assembler
1.3. Supported Platforms
2. Assembler Usage
2.1. Hardware Requirements
2.2. Delivery
2.3. Installation
2.4. Start-Up Command, Parameters
2.5. Format of the Input Files
2.6. Format of the Listing
2.7. Symbol Conventions
2.8. Temporary Symbols
2.9. Named Temporary Symbols
2.9.1. Nameless Temporary Symbols
2.10. Formula Expressions
2.10.1. Integer Constants
2.10.2. Floating Point Constants
2.10.3. String Constants
2.10.4. Evaluation
2.10.5. Operators
2.10.6. Functions
2.11. Forward References and Other Disasters
2.12. Register Symbols
2.13. Sharefile
2.14. Processor Aliases
3. Pseudo Instructions
3.1. Definitions
3.1.1. SET, EQU, and CONSTANT
3.1.2. SFR and SFRB
3.1.3. XSFR and YSFR
3.1.4. LABEL
3.1.5. BIT
3.1.6. DBIT
3.1.7. PORT
3.1.8. REG and NAMEREG
3.1.9. LIV and RIV
3.1.10. CHARSET
3.1.11. CODEPAGE
3.1.12. ENUM
3.1.13. PUSHV and POPV
3.2. Code Modification
3.2.1. ORG
3.2.2. CPU
3.2.3. SUPMODE, FPU, PMMU
3.2.4. FULLPMMU
3.2.5. PADDING
3.2.6. PACKING
3.2.7. MAXMODE
3.2.8. EXTMODE and LWORDMODE
3.2.9. SRCMODE
3.2.10. BIGENDIAN
3.2.11. WRAPMODE
3.2.12. SEGMENT
3.2.13. PHASE and DEPHASE
3.2.14. SAVE and RESTORE
3.2.15. ASSUME
3.2.16. EMULATED
3.2.17. BRANCHEXT
3.3. Data Definitions
3.3.1. DC[.Size]
3.3.2. DS[.Size]
3.3.3. DB,DW,DD,DQ, and DT
3.3.4. DS, DS8
3.3.5. BYT or FCB
3.3.6. BYTE
3.3.7. DC8
3.3.8. ADR or FDB
3.3.9. WORD
3.3.10. DW16
3.3.11. LONG
3.3.12. SINGLE, DOUBLE, and EXTENDED
3.3.13. FLOAT and DOUBLE
3.3.14. EFLOAT, BFLOAT, and TFLOAT
3.3.15. Qxx and LQxx
3.3.16. DATA
3.3.17. ZERO
3.3.18. FB and FW
3.3.19. ASCII and ASCIZ
3.3.20. STRING and RSTRING
3.3.21. FCC
3.3.22. DFS or RMB
3.3.23. BLOCK
3.3.24. SPACE
3.3.25. RES
3.3.26. BSS
3.3.27. DSB and DSW
3.3.28. DS16
3.3.29. ALIGN
3.3.30. LTORG
3.4. Macro Instructions
3.4.1. MACRO
3.4.2. IRP
3.4.3. IRPC
3.4.4. REPT
3.4.5. WHILE
3.4.6. EXITM
3.4.7. SHIFT
3.4.8. MAXNEST
3.4.9. FUNCTION
3.5. Structures
3.5.1. Definition
3.5.2. Usage
3.5.3. Nested Structures
3.5.4. Unions
3.5.5. Structures and Sections
3.6. Conditional Assembly
3.6.1. IF / ELSEIF / ENDIF
3.6.2. SWITCH / CASE / ELSECASE / ENDCASE
3.7. Listing Control
3.7.1. PAGE
3.7.2. NEWPAGE
3.7.3. MACEXP
3.7.4. LISTING
3.7.5. PRTINIT and PRTEXIT
3.7.6. TITLE
3.7.7. RADIX
3.7.8. OUTRADIX
3.8. Local Symbols
3.8.1. Basic Definition (SECTION/ENDSECTION)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -