Browse Source

musashi: enable reset handler

vampirefrog 1 year ago
parent
commit
6a4b110d64
2 changed files with 3 additions and 3 deletions
  1. 3
    2
      musashi/m68kconf.h
  2. 0
    1
      musashi/m68kcpu.h

+ 3
- 2
musashi/m68kconf.h View File

@@ -107,8 +107,9 @@ unsigned int v68_int_ack_handler(int int_level);
107 107
 /* If ON, CPU will call the output reset callback when it encounters a reset
108 108
  * instruction.
109 109
  */
110
-#define M68K_EMULATE_RESET          OPT_OFF
111
-#define M68K_RESET_CALLBACK()       your_reset_handler_function()
110
+#define M68K_EMULATE_RESET          OPT_SPECIFY_HANDLER
111
+void v68_cpu_reset_instr_cb(void);
112
+#define M68K_RESET_CALLBACK()       v68_cpu_reset_instr_cb()
112 113
 
113 114
 
114 115
 /* If ON, CPU will call the set fc callback on every memory access to

+ 0
- 1
musashi/m68kcpu.h View File

@@ -1935,7 +1935,6 @@ void m68ki_exception_interrupt(uint int_level)
1935 1935
 
1936 1936
 	/* Acknowledge the interrupt */
1937 1937
 	vector = m68ki_int_ack(int_level);
1938
-	// printf("m68ki_exception_interrupt level=%d vector=%x\n", int_level, vector);
1939 1938
 
1940 1939
 	/* Get the interrupt vector */
1941 1940
 	if(vector == M68K_INT_ACK_AUTOVECTOR)

Loading…
Cancel
Save