From bab23a250bfbbd185b50a64335e5ccf6ec3be6bb Mon Sep 17 00:00:00 2001 From: Timo Kreuzer Date: Thu, 23 Jan 2025 12:45:45 +0200 Subject: [PATCH] [ASM] Use macros instead of defines Defines can cause problems, like previously with the end define, which caused a jump to label ".end" to be interpreted as a jump to ".", which is the current address, resulting in an infinite loop. Remove obsolete CODESEG --- sdk/include/asm/asm.inc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/sdk/include/asm/asm.inc b/sdk/include/asm/asm.inc index 9af3d164ac9..062b622619b 100644 --- a/sdk/include/asm/asm.inc +++ b/sdk/include/asm/asm.inc @@ -319,7 +319,6 @@ ENDM .macro align x .align x .endm -#define ALIGN align /* MASM compatible REPEAT, additional ENDR */ #define REPEAT .rept @@ -353,8 +352,8 @@ ENDM .endm /* MASM needs an END tag */ -#define END -#define end +.macro END +.endm .macro .MODEL model .endm @@ -362,7 +361,6 @@ ENDM .macro .code .text .endm -#define CODESEG .code .macro .const .section .rdata