Created
September 24, 2018 23:29
-
-
Save tlindner/d33dfc04fac31eefc04b694f2ae92843 to your computer and use it in GitHub Desktop.
Small Diff for adding EMUBRK to MAME
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/devices/cpu/m6809/hd6309.ops b/src/devices/cpu/m6809/hd6309.ops | |
index c96e3082d4..37e041e915 100644 | |
--- a/src/devices/cpu/m6809/hd6309.ops | |
+++ b/src/devices/cpu/m6809/hd6309.ops | |
@@ -432,6 +432,7 @@ DISPATCH11: | |
case 0x3B: %TFM; return; | |
case 0x3C: set_regop8(m_md); set_imm(); %BIT8; return; | |
case 0x3D: set_regop8(m_md); set_imm(); %LD8; return; | |
+ case 0x3E: machine().debugger().debug_break(); return; | |
case 0x3F: %SWI3; return; | |
case 0x43: set_e(); %COM8; return; | |
diff --git a/src/devices/cpu/m6809/m6809.ops b/src/devices/cpu/m6809/m6809.ops | |
index 634c0b896e..32a71c15e1 100644 | |
--- a/src/devices/cpu/m6809/m6809.ops | |
+++ b/src/devices/cpu/m6809/m6809.ops | |
@@ -327,6 +327,7 @@ DISPATCH11: | |
@m_opcode = read_opcode(); | |
switch(m_opcode) | |
{ | |
+ case 0x3E: machine().debugger().debug_break(); return; | |
case 0x3F: %SWI3; return; | |
case 0x83: set_regop16(m_u); set_imm(); %CMP16; return; | |
case 0x8C: set_regop16(m_s); set_imm(); %CMP16; return; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment