[nasm:master] outdbg: add macro to emulate .bin format ORG directive

nasm-bot for H. Peter Anvin (Intel) hpa at zytor.com
Tue Aug 25 16:18:07 PDT 2020


Commit-ID:  abcbe0ea3889b86c11d0833fe3dd9662d2891136
Gitweb:     http://repo.or.cz/w/nasm.git?a=commitdiff;h=abcbe0ea3889b86c11d0833fe3dd9662d2891136
Author:     H. Peter Anvin (Intel) <hpa at zytor.com>
AuthorDate: Tue, 25 Aug 2020 15:50:11 -0700
Committer:  H. Peter Anvin (Intel) <hpa at zytor.com>
CommitDate: Tue, 25 Aug 2020 15:50:11 -0700

outdbg: add macro to emulate .bin format ORG directive

Just stub out "org" as a macro to be able to read source files that
are designed for the .bin format.

Signed-off-by: H. Peter Anvin (Intel) <hpa at zytor.com>


---
 output/outdbg.mac | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/output/outdbg.mac b/output/outdbg.mac
index af7d274c..44cd11c8 100644
--- a/output/outdbg.mac
+++ b/output/outdbg.mac
@@ -33,7 +33,7 @@
 
 ;
 ; Define a few macros which lets the dbg format process files intended
-; for the .obj format.
+; for the .obj and .bin formats.
 ;
 OUT: dbg
 %define __?SECT?__ [section .text]
@@ -49,5 +49,8 @@ OUT: dbg
 %imacro import 1+.nolist
  %pragma dbg import %1
 %endmacro
+%imacro org 1+.nolist
+ %pragma dbg org %1
+%endmacro
 %macro __?NASM_CDecl?__ 1
 %endmacro


More information about the Nasm-commits mailing list