Skip to content

Commit 4526857

Browse files
author
none
committed
Run reset callbacks after resetting the CPU, so they can fiddle with it.
1 parent 8980f2d commit 4526857

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

emulator.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -167,12 +167,12 @@ def run(self):
167167
signal.signal(signal.SIGINT, self._keyboard_interrupt)
168168
print('\nHit ^C to exit\n')
169169

170-
# reset everything
171-
self.cb_reset()
172-
173170
# reset the CPU ready for execution
174171
m68k.pulse_reset()
175172

173+
# reset everything
174+
self.cb_reset()
175+
176176
self._start_time = time.time()
177177
while not self._dead:
178178

0 commit comments

Comments
 (0)