Add include guards to asm.inc and comment out broken ljmp macro

svn path=/trunk/; revision=50438
This commit is contained in:
Timo Kreuzer 2011-01-19 16:58:58 +00:00
parent b1d121930a
commit 2ea57bf789

View file

@ -5,6 +5,8 @@
* PURPOSE: ASM macros for for GAS and MASM/ML64 * PURPOSE: ASM macros for for GAS and MASM/ML64
* PROGRAMMERS: Timo Kreuzer (timo.kreuzer@reactos.org) * PROGRAMMERS: Timo Kreuzer (timo.kreuzer@reactos.org)
*/ */
#ifndef _ASM_INC_
#define _ASM_INC_
#ifdef _USE_ML #ifdef _USE_ML
@ -53,10 +55,6 @@ ENDM
#define lidt lidt fword ptr ds: #define lidt lidt fword ptr ds:
ljmp MACRO segment, offset
DB 0
ENDM
.code64 MACRO .code64 MACRO
.code .code
ENDM ENDM
@ -115,9 +113,9 @@ ENDM
// FIXME // FIXME
ENDM ENDM
ljmp MACRO segment, offset //ljmp MACRO segment, offset
// FIXME // FIXME
ENDM //ENDM
UNIMPLEMENTED MACRO name UNIMPLEMENTED MACRO name
ENDM ENDM
@ -176,9 +174,9 @@ ENDM
#define REPEAT .rept #define REPEAT .rept
#define ENDR .endr #define ENDR .endr
.macro ljmp segment, offset //.macro ljmp segment, offset
jmp far ptr \segment:\offset // jmp far ptr \segment:\offset
.endm //.endm
/* MASM compatible EXTERN */ /* MASM compatible EXTERN */
.macro EXTERN name .macro EXTERN name
@ -260,3 +258,5 @@ code = 1
#define elseif .elseif #define elseif .elseif
#endif #endif
#endif /* _ASM_INC_ */