mirror of
https://github.com/jtauber/applepy.git
synced 2024-12-29 00:30:44 +00:00
Fix error
Remaining BaseHTTPServer instead of http.server
This commit is contained in:
parent
2d6e6f5de6
commit
23e7f44242
@ -404,7 +404,7 @@ class Apple2:
|
|||||||
break
|
break
|
||||||
cycle, rw, addr, val = struct.unpack("<IBHB", op)
|
cycle, rw, addr, val = struct.unpack("<IBHB", op)
|
||||||
if rw == 0:
|
if rw == 0:
|
||||||
self.cpu.send(bytes([self.softswitches.read_byte(cycle, addr)]))
|
self.cpu.send(struct.pack("B", self.softswitches.read_byte(cycle, addr)))
|
||||||
elif rw == 1:
|
elif rw == 1:
|
||||||
self.display.update(addr, val)
|
self.display.update(addr, val)
|
||||||
else:
|
else:
|
||||||
|
@ -508,7 +508,7 @@ class CPU:
|
|||||||
def __init__(self, memory, pc=None):
|
def __init__(self, memory, pc=None):
|
||||||
self.memory = memory
|
self.memory = memory
|
||||||
|
|
||||||
self.control_server = memory.use_bus and BaseHTTPServer.HTTPServer(("127.0.0.1", 6502), ControlHandlerFactory(self))
|
self.control_server = memory.use_bus and http.server.HTTPServer(("127.0.0.1", 6502), ControlHandlerFactory(self))
|
||||||
|
|
||||||
self.accumulator = 0x00
|
self.accumulator = 0x00
|
||||||
self.x_index = 0x00
|
self.x_index = 0x00
|
||||||
|
Loading…
Reference in New Issue
Block a user