mirror of
https://github.com/reactos/reactos.git
synced 2025-02-28 19:32:59 +00:00
[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
This commit is contained in:
parent
07ce196d8e
commit
bab23a250b
1 changed files with 2 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue