From f5f224f3500616fb3c75f43dafb167a9f6ad3bd4 Mon Sep 17 00:00:00 2001 From: Jeff Parsons Date: Sun, 6 Sep 2015 17:07:58 -0700 Subject: [PATCH] Added Debugger "disk" command for INT 0x13 message output (similar to the "dos" command for INT 0x21 messages) --- modules/pcjs/lib/debugger.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/modules/pcjs/lib/debugger.js b/modules/pcjs/lib/debugger.js index 7463a8292..13fb95e50 100644 --- a/modules/pcjs/lib/debugger.js +++ b/modules/pcjs/lib/debugger.js @@ -5583,6 +5583,17 @@ if (DEBUGGER) { return; } + if (sCmd == "disk") { + /* + * The "disk" command is an undocumented command that's useful any time we're inside an internal + * DOS dispatch function where the registers are substantially the same as the corresponding INT 0x13; + * "m int on; m disk on" produces the same output, but only when an actual INT 0x13 instruction is used. + * Issuing this command at any other time should also be OK, but the results will be meaningless. + */ + this.messageInt(Interrupts.DISK, this.cpu.regLIP, true); + return; + } + if (sCmd == "dos") { /* * The "dos" command is an undocumented command that's useful any time we're inside an internal