aboutsummaryrefslogtreecommitdiffstats
path: root/emulators/pcemu/files/patch-b2-panic
diff options
context:
space:
mode:
authorJoerg Wunsch <joerg@FreeBSD.org>2000-02-21 22:40:56 +0000
committerJoerg Wunsch <joerg@FreeBSD.org>2000-02-21 22:40:56 +0000
commit6c96bb41e70fc0505bc16987453dda108fe88af6 (patch)
tree2d1db9feffef7200bedbabff14140ca17d8ba3a8 /emulators/pcemu/files/patch-b2-panic
parentc54a4961e1779ad719920d43e2a7cfd956c82918 (diff)
This is the last of the ports PRs assigned to me... and actually a
rather large patchset improving pcemu. I therefore also decided to bump the version number from 1.01a to 1.01b, David Hedley apparently abandoned all work on pcemu anyway. The exact details of Arne's patches can be studied in the PR, it's something like 50 lines of explanation i don't want to quote in full here. In short, he submitted a number of improvements and a fix for the hard disk emulation in pcemu's BIOS. After a review, i decided to leave the patches verbatim. In addition and while i was at it, i added something i always ment to do: the option to dynamically add floppy disks (and now also hard disks) from within the .pcemurc file, so there's no need to recompile if you just wanna get access to your floppy from within pcemu. Comment it out again once you're done. PR: ports/5788 Submitted by: <arnej@math.ntnu.no> Arne Henrik Juul
Diffstat (limited to 'emulators/pcemu/files/patch-b2-panic')
-rw-r--r--emulators/pcemu/files/patch-b2-panic71
1 files changed, 71 insertions, 0 deletions
diff --git a/emulators/pcemu/files/patch-b2-panic b/emulators/pcemu/files/patch-b2-panic
new file mode 100644
index 000000000000..473f3af21513
--- /dev/null
+++ b/emulators/pcemu/files/patch-b2-panic
@@ -0,0 +1,71 @@
+diff -ru orig.Makefile ./Makefile
+--- orig.Makefile Wed Feb 18 10:50:46 1998
++++ ./Makefile Wed Feb 18 10:56:07 1998
+@@ -16,6 +16,7 @@
+ # -DINLINE_FUNCTIONS if your compiler support inline functions (most do)
+ # -DDEBUG prints lots of debugging messages.
+ # -DDEBUGGER compiles in the debugger
++# -DPANIC halt emulator when you hit an unimplemented interrupt
+ # -DKBUK if you have a UK style 102 key keyboard
+ # -DBIG_ENDIAN if your computer is big-endian (Sparc, 68000 etc)
+ # -DCPU_LITTLE_ENDIAN if your computer is little-endian (80x86 etc)
+diff -ru orig.bios.c ./bios.c
+--- orig.bios.c Fri Jun 24 13:39:47 1994
++++ ./bios.c Wed Feb 18 10:56:07 1998
+@@ -657,7 +657,7 @@
+ break;
+ default:
+ printf("unimplement INT 15h function %02X\n",*bregs[AH]);
+-#ifdef DEBUG
++#ifdef PANIC
+ loc();
+ exit_emu();
+ #else
+@@ -790,7 +790,7 @@
+ break;
+ default:
+ printf("unimplemented INT 1Ah function %02X\n", *bregs[AH]);
+-#ifdef DEBUG
++#ifdef PANIC
+ loc();
+ exit_emu();
+ #endif
+@@ -991,7 +991,7 @@
+ break;
+ default:
+ printf("Unimplemented INT 13h function %02X\n",*bregs[AH]);
+-#ifdef DEBUG
++#ifdef PANIC
+ loc();
+ exit_emu();
+ #endif
+diff -ru orig.vga.c ./vga.c
+--- orig.vga.c Wed Jun 22 16:24:51 1994
++++ ./vga.c Wed Feb 18 10:56:07 1998
+@@ -560,7 +560,7 @@
+ break;
+ default:
+ printf("Unimplemented int 0x10 function 0x11 sub-function %02X\n",*bregs[AL]);
+-#ifdef DEBUG
++#if PANIC
+ loc();
+ exit_emu();
+ #endif
+@@ -584,7 +584,7 @@
+ break;
+ default:
+ printf("Unimplemented int 10 function 0x12 sub-function 0x%02X\n",*bregs[BL]);
+-#ifdef DEBUG
++#ifdef PANIC
+ loc();
+ exit_emu();
+ #endif
+@@ -615,7 +615,7 @@
+ default:
+ printf("Unimplemented int 10 function: %02X. AL = %02X BL = %02X\n",
+ *bregs[AH], *bregs[AL], *bregs[BL]);
+-#ifdef DEBUG
++#ifdef PANIC
+ loc();
+ exit_emu();
+ #endif