Skip to content

Commit e1b9b52

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

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
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

subsystems/mvdm/dos/asmxtras.inc

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,6 @@
2727
#define DWORD long
2828
#endif
2929

30-
/* OFFset macro */
31-
#ifdef _USE_ML
32-
#define OFF(x) offset x
33-
#else
34-
#define OFF(x) x
35-
#endif
36-
3730
/*
3831
* Set of macros for defining and using structures:
3932
* - STRUCT(name, ...) defines a structure of name 'name'.

0 commit comments

Comments
 (0)