0. Contents

Asmc Macro Assembler

0. Contents

1. About
2. Commandline Options
Options -0, -1, -2, ..., -10
Option -bin
Option -coff
Option -djgpp
Option -e
Option -elf
Option -elf64
Option -eq
Option -Fd
Option -FPi
Option -Fw
Options -Gc, -Gd, -Gr, -Gz
Option -m
Option -mz
Option -nc
Options -nd, -nt
Option -nm
Option -pe
Option -win64
Option -zc
Option -Zd
Option -zf
Option -Zg
Option -Zi
Options -zlc and -zld
Options -zlf, -zlp and zls
Option -Zm
Option -Zne
Option -zt
Option -Zv8
Option -zze
Option -zzs
3. Syntax Extensions
3.1 Directive INCBIN
3.2 FASTCALL Register Calling Convention
3.3 IDs enclosed in Back Quotes
3.4 Floating-Point Immediates in Instructions
3.5 Directive OPTION FIELDALIGN
3.6 Directive OPTION PROCALIGN
3.7 Directive OPTION MZ
3.8 Directive OPTION ELF
3.9 Directive OPTION WIN64
3.10 Directive OPTION FRAME
3.11 Directive OPTION RENAMEKEYWORD
3.12 Directive OPTION DLLIMPORT
3.13 Directive OPTION CODEVIEW
3.14 Directive OPTION STACKBASE
3.15 Directives PUSHCONTEXT / POPCONTEXT ALIGNMENT
3.16 Directives .X64 and .X64p
3.17 Attribute LABEL for first Macro Parameter
3.18 Member Argument for IF[N]DEF and .ERR[N]DEF
3.19 Initialization of Data Items of Type MMWORD/XMMWORD
3.20 Optional Array Size for LABEL Directive
3.21 Optional Name Argument for Simplified Segment Directives
3.22 Segment Attribute COMDAT
3.23 Attribute VARARGML for last Macro Parameter
3.24 Miscellaneous
3.24.1 Numeric constant __JWASM__
3.24.2 Operating System Argument for .MODEL
3.24.3 Accepted Parameters for IF[N]DEF Directive
3.24.4 Visibility of Procedures
3.24.5 Non-RIP-Relative Addressing in 64-Bit
4. Instruction Sets
5. Code Generation Differences
5.1 Forward References in Macro Expressions
6. Output Formats
6.1 OMF Output Format
6.2 COFF Output Format
6.3 Win64 Output Format
6.4 Binary Output Format
6.5 PE Output Format
7. Masm Bugs fixed in JWasm
8. Optional Features
9. Known Bugs and missing Features
10. License
Appendix A. Reserved Words
Appendix B. Source Samples
Appendix C. Errors and Warnings
Appendix D. Differences between Masm 6 and Masm 8
Appendix E. Restrictions of precommpiled 16-bit Binary JWASMR.EXE
Appendix F. Additional Features of JWasm's Debug Version