def __init__(self): self.io = [ 0 ] * 256 self.ram0 = [ 0 ] * 16384 dk = screen_kb_dummy(self.io) dk.start() self.cpu = z80(self.read_mem, self.write_mem, self.read_io, self.write_io, debug, dk) self.reset()
print('IX %04x' % f['r1'][8]) print('IY %04x' % f['r1'][9]) print('SP %04x' % f['r1'][10]) print('PC %04x' % f['r1'][11]) print('memptr %04x' % f['r1'][12]) print('t-states %d' % f['r2'][6]) for d in debug_msgs: print(d) print('') # sys.exit(1) dk = screen_kb_dummy(io) dk.start() cpu = z80(read_mem, write_mem, read_io, write_io, debug, dk) # tests.in # -------- # Each test has the format: # <arbitrary test description> # AF BC DE HL AF' BC' DE' HL' IX IY SP PC MEMPTR # I R IFF1 IFF2 IM <halted> <tstates> # <halted> specifies whether the Z80 is halted. # <tstates> specifies the number of tstates to run the test for, in # decimal; the number actually executed may be higher, as the final # instruction is allowed to complete.