From b6c02c651f634668c0879dfe6b07755556d6672b Mon Sep 17 00:00:00 2001 From: nickysn Date: Wed, 13 Nov 2013 00:40:12 +0000 Subject: [PATCH] * use %ifdef __FAR_CODE__ instead of %ifdef __MEDIUM__ in the int 0 handler (for compatibility with future memory models) git-svn-id: trunk@26074 - --- rtl/msdos/prt0stm.asm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rtl/msdos/prt0stm.asm b/rtl/msdos/prt0stm.asm index 934269d4de..29f5e1b5ce 100644 --- a/rtl/msdos/prt0stm.asm +++ b/rtl/msdos/prt0stm.asm @@ -199,7 +199,7 @@ FPC_INT00_HANDLER: cmp bx, cx jne .call_previous_handler -%ifndef __MEDIUM__ +%ifndef __FAR_CODE__ ; check whether we're coming from the same code segment mov bx, sp mov cx, [bx + 3*2 + 6] ; get caller segment @@ -211,7 +211,7 @@ FPC_INT00_HANDLER: ; runerror 200 mov bx, sp mov cx, [bx + 3*2 + 4] ; get caller offset -%ifdef __MEDIUM__ +%ifdef __FAR_CODE__ mov dx, [bx + 3*2 + 6] ; get caller segment %endif add sp, 3*2 + 4 + 6 @@ -219,7 +219,7 @@ FPC_INT00_HANDLER: push ax mov ax, 200 push ax -%ifdef __MEDIUM__ +%ifdef __FAR_CODE__ push dx %endif push cx