Skip to content

Commit 8cfc170

Browse files
committed
[ASM] Add OFF(x) macro for both GAS and ML
Same from `subsystems/mvdm/dos/asmxtras.inc`
1 parent 9a55c93 commit 8cfc170

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

sdk/include/asm/asm.inc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,9 @@ ENDM
172172
.skip size, fill
173173
ENDM
174174

175+
/* OFFset macro */
176+
#define OFF(x) offset x
177+
175178
#define lXdtPrefix fword ptr
176179

177180
ljmp MACRO segment, offset
@@ -324,6 +327,9 @@ ENDM
324327
#define REPEAT .rept
325328
#define ENDR .endr
326329

330+
/* OFFset macro */
331+
#define OFF(x) x
332+
327333
#define lXdtPrefix
328334

329335
.macro ljmp segment, offset

0 commit comments

Comments
 (0)