From 72a7be797cc03206700aba673d250b3fcd2a72f1 Mon Sep 17 00:00:00 2001 From: "Carl.Kenner" Date: Mon, 4 May 2009 22:16:07 +0000 Subject: [PATCH] Built-in .com files now work, except for loadfix.com. --- src/misc/programs.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/misc/programs.cpp b/src/misc/programs.cpp index f145d26..8df0363 100644 --- a/src/misc/programs.cpp +++ b/src/misc/programs.cpp @@ -40,7 +40,8 @@ static Bit8u exe_block[]={ 0xbc,0x00,0x04, //MOV SP,0x400 decrease stack size 0xbb,0x40,0x00, //MOV BX,0x040 for memory resize 0xb4,0x4a, //MOV AH,0x4A Resize memory block - 0xcd,0x21, //INT 0x21 + //0xcd,0x21, //INT 0x21 + 0x90,0x90, // NOP, NOP... this prevents an invalid opcode crash in the core //pos 12 is callback number 0xFE,0x38,0x00,0x00, //CALLBack number 0xb8,0x00,0x4c, //Mov ax,4c00