diff options
author | Frank Kotler <fbkotler@verizon.net> | 2008-06-08 03:06:30 -0400 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2008-06-08 10:48:16 -0700 |
commit | af19b09a2e894b6f7a3e0001020dd267ad77205d (patch) | |
tree | 7f4cc34ebff9187c1d39eaf19fd8447099f5d59c | |
parent | 730e87ba7686086061994f563baf666a80cafec1 (diff) | |
download | nasm-af19b09a2e894b6f7a3e0001020dd267ad77205d.tar.gz |
Document __OUTPUT_FORMAT__
It may be "too late" for this to get into 2.03, but I've been whining
that "__OUTPUT_FORMAT__" ought to be documented. Maybe...
-rw-r--r-- | doc/nasmdoc.src | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/doc/nasmdoc.src b/doc/nasmdoc.src index fd8af522..e6f92c92 100644 --- a/doc/nasmdoc.src +++ b/doc/nasmdoc.src @@ -3269,6 +3269,7 @@ here'. You could then write a macro and then pepper your code with calls to \c{notdeadyet} until you find the crash point. + \S{bitsm} \i\c{__BITS__}: Current BITS Mode The \c{__BITS__} standard macro is updated every time that the BITS mode is @@ -3277,6 +3278,19 @@ number of 16, 32 or 64. \c{__BITS__} receives the specified mode number and makes it globally available. This can be very useful for those who utilize mode-dependent macros. +\S{ofmtm} \i\c{__OUTPUT_FORMAT__}: Current Output Format + +The \c{__OUTPUT_FORMAT__} standard macro holds the current Output Format, +as given by the \c{-f} option or Nasm's default. Type \c{nasm -hf} for a +list. + +\c %ifidn __OUTPUT_FORMAT__, win32 +\c %define NEWLINE 13, 10 +\c %elifidn __OUTPUT_FORMAT__, elf32 +\c %define NEWLINE 10 +\c %endif + + \S{datetime} Assembly Date and Time Macros NASM provides a variety of macros that represent the timestamp of the |