From 9c5efed7da4716980ca678576bbf994e908c7228 Mon Sep 17 00:00:00 2001 From: Daniel Victor Date: Fri, 28 Feb 2025 17:39:13 -0300 Subject: [PATCH] [ASM] Move `OFF(x)` macro from `asmxtras.inc` to `asm.inc` --- sdk/include/asm/asm.inc | 6 ++++++ subsystems/mvdm/dos/asmxtras.inc | 7 ------- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/sdk/include/asm/asm.inc b/sdk/include/asm/asm.inc index 062b622619b..d5e4bc98818 100644 --- a/sdk/include/asm/asm.inc +++ b/sdk/include/asm/asm.inc @@ -172,6 +172,9 @@ ENDM .skip size, fill ENDM +/* OFFset macro */ +#define OFF(x) offset x + #define lXdtPrefix fword ptr ljmp MACRO segment, offset @@ -324,6 +327,9 @@ ENDM #define REPEAT .rept #define ENDR .endr +/* OFFset macro */ +#define OFF(x) x + #define lXdtPrefix .macro ljmp segment, offset diff --git a/subsystems/mvdm/dos/asmxtras.inc b/subsystems/mvdm/dos/asmxtras.inc index e9b97e9e07c..a02fbc892c8 100644 --- a/subsystems/mvdm/dos/asmxtras.inc +++ b/subsystems/mvdm/dos/asmxtras.inc @@ -27,13 +27,6 @@ #define DWORD long #endif -/* OFFset macro */ -#ifdef _USE_ML - #define OFF(x) offset x -#else - #define OFF(x) x -#endif - /* * Set of macros for defining and using structures: * - STRUCT(name, ...) defines a structure of name 'name'.