mirror of
https://github.com/netwide-assembler/nasm.git
synced 2025-03-31 18:20:22 +08:00
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...
This commit is contained in:
parent
730e87ba76
commit
af19b09a2e
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user