From 4dd49e738599c3b03feba99fe158e3efb68deaf3 Mon Sep 17 00:00:00 2001 From: Ilari Liusvaara Date: Tue, 6 Apr 2010 21:48:34 +0300 Subject: [PATCH] Allow INT0 This allows Alien Carnage to run. --- Changelog.utf8 | 1 + org/jpc/emulator/memory/codeblock/optimised/RealModeUBlock.java | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Changelog.utf8 b/Changelog.utf8 index 85aeb8e..ee14bec 100644 --- a/Changelog.utf8 +++ b/Changelog.utf8 @@ -36,6 +36,7 @@ Change since JPC-RR Release 9.1: - Give import disk window proper layout. - Allow using file chooser in image import. - Fix bug in tree importer with recursive directories. +- Allow INT 0. Changes from JPC-RR Release 9 to JPC-RR Release 9.1: ==================================================== diff --git a/org/jpc/emulator/memory/codeblock/optimised/RealModeUBlock.java b/org/jpc/emulator/memory/codeblock/optimised/RealModeUBlock.java index 8d5c303..e0bcfaf 100644 --- a/org/jpc/emulator/memory/codeblock/optimised/RealModeUBlock.java +++ b/org/jpc/emulator/memory/codeblock/optimised/RealModeUBlock.java @@ -1875,7 +1875,7 @@ public final class RealModeUBlock implements RealModeCodeBlock { if(vector == 0) { System.err.println("Critical error: INT 0 executed."); - throw new IllegalStateException("INT 0 allowed? 0x" + Integer.toHexString(cpu.getInstructionPointer())); + //throw new IllegalStateException("INT 0 allowed? 0x" + Integer.toHexString(cpu.getInstructionPointer())); } if(((cpu.esp & 0xffff) < 6) && ((cpu.esp & 0xffff) > 0)) { System.err.println("Critical error: SS Processor Exception Thrown in \"handleInterrupt("+vector+")\"."); -- 2.11.4.GIT