1
0
mirror of https://github.com/rzzzwilson/pymlac.git synced 2025-06-10 09:32:41 +00:00

Debugging the assembled machine

This commit is contained in:
Ross Wilson
2015-07-20 18:36:04 +07:00
parent 5413bb3afd
commit ffb305a8b0
2 changed files with 2 additions and 1 deletions

View File

@@ -228,6 +228,7 @@ class MainCPU(object):
def i_DAC(self, indirect, address, instruction):
address = self.memory.eff_address(address, indirect)
self.memory.put(self.AC, address, False)
print('DAC: stored %07o at address %07o' % (self.AC, address))
Trace.itrace('DAC', indirect, address)
return 3 if indirect else 2

View File

@@ -380,11 +380,11 @@ class PymlacFrame(wx.Frame):
self.DS = 0100000 # dataswitches
self.trace_filename = TRACE_FILENAME
self.core_filename = CORE_FILENAME
# Imlac.init(0, TRACE_FILENAME, None, None, boot_rom, CORE_FILENAME)
Trace.init(TRACE_FILENAME, self.cpu, self.display_cpu)
# now perform operations
for (operation, args) in ops:
print('%s: operation=%s, args=%s' % ('*'*60, operation, str(args)))
if operation == 'boot':
self.memory.set_ROM(args)
Trace.comment('Bootstrap ROM set to %s' % args.upper())