def chargen(p, adr): for a in range(adr, adr + 16): const.seven_segment(p, a) p.setlabel(adr, "CHARGEN")
p = pyreveng.pyreveng(m) #---------------------------------------------------------------------- # Add a CPU instance # cpu = cpus.mc6800.mc6800(p) cpu.vectors(0x8000) #---------------------------------------------------------------------- # HP53xx EPROM structure hp53xx.eprom(p, cpu.disass, 0x6000, 0x8000, 0x400) #---------------------------------------------------------------------- for a in range(0x7fbf, 0x7fda): const.seven_segment(p, a) p.setlabel(0x7fbf, "CHARGEN") #---------------------------------------------------------------------- hp53xx.wr_test_val(p) const.fill(p, hi=0x63ff) const.fill(p, hi=0x67ff) const.fill(p, hi=0x68ff) const.fill(p, hi=0x6bff) const.fill(p, hi=0x6fff) const.fill(p, hi=0x73ff) const.fill(p, hi=0x77ff) const.fill(p, hi=0x7bff) const.fill(p, hi=0x7eff) const.fill(p, hi=0x7ff7)