Copyright © 2006, 2007, 2008, 2009 Peter Johnson
2009
Abstract
This document is the user manual for the Yasm assembler. It is intended as both an introduction and a general-purpose reference for all Yasm users.
Table of Contents
%0:
Macro Parameter Counter%rotate: Rotating Macro Parameters%ifdef: Testing Single-Line Macro Existence%ifmacro: Testing Multi-Line Macro Existence%ifctx: Testing the Context Stack%if: Testing Arbitrary Numeric Expressions%ifidn and %ifidni: Testing
Exact Text Identity%ifid, %ifnum, %ifstr: Testing Token Types%error: Reporting User-Defined Errors__YASM_MAJOR__, etc: Yasm Version__FILE__ and __LINE__: File
Name and Line Number__YASM_OBJFMT__ and __OUTPUT_FORMAT__: Output Object Format KeywordSTRUC and ENDSTRUC: Declaring
Structure Data TypesISTRUC, AT and IEND: Declaring Instances of StructuresALIGN and ALIGNB: Data
Alignmentbin:
Flat-Form Binary Outputcoff: Common Object File Formatelf32: Executable and Linkable Format 32-bit Object
Fileself64: Executable and Linkable Format 64-bit Object
Fileselfx32: ELF 32-bit Object Files for 64-bit Processorsmacho32: Mach 32-bit Object File Formatmacho64: Mach 64-bit Object File Formatrdf:
Relocatable Dynamic Object File Formatwin32: Microsoft Win32 Object Fileswin64: PE32+ (Microsoft Win64) Object Filesxdf:
Extended Dynamic Object FormatList of Figures
List of Tables
bin Section AttributesCPU
Directive OptionsList of Examples
safeseh Example