mirror of
https://github.com/jtauber/applepy.git
synced 2024-12-27 18:30:19 +00:00
graceful shutdown if cpu core exits
This commit is contained in:
parent
9f09818aa0
commit
a673f8a4d4
@ -386,6 +386,8 @@ class Apple2:
|
||||
quit = False
|
||||
while not quit:
|
||||
op = self.cpu.recv(8)
|
||||
if len(op) == 0:
|
||||
break
|
||||
cycle, rw, addr, val = struct.unpack("<IBHB", op)
|
||||
if rw == 0:
|
||||
self.cpu.send(chr(self.softswitches.read_byte(cycle, addr)))
|
||||
|
Loading…
Reference in New Issue
Block a user