Fix error

Remaining BaseHTTPServer instead of http.server
This commit is contained in:
Philippe Chataignon 2021-11-25 00:10:18 +01:00
parent 2d6e6f5de6
commit 23e7f44242
2 changed files with 2 additions and 2 deletions

View File

@ -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:

View File

@ -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