示例#1
0
def example():
    m = mem.Stackup((FILENAME, ), nextto=__file__)
    cx = mcs48.i8748()
    cx.m.map(m, 0)

    for a, b in SYMBOLS.items():
        cx.m.set_label(a, b)

    gpu = hp1345a.hp1345a()

    cx.vectors()

    l = []
    for a in range(0x122, 0x200, 2):
        l.append(cx.m.bu16(a))
        gpu.disass(a, cx.m)

    for a in range(0x222, 0x2c8, 2):
        l.append(cx.m.bu16(a))
        gpu.disass(a, cx.m)

    hp1345_render.svg(cx.m, 0x122, 0x2c8, l=l)

    for a in range(0x31e, 0x400, 2):
        gpu.disass(a, cx.m)
    hp1345_render.svg(cx.m, 0x31e, 0x400)

    return NAME, (cx.m, )
示例#2
0
def task(pj, cx):
	cpu = mcs48.i8748()
	gpu = hp1345a.hp1345a()

	pj.set_label(0x00a, "reset")
	pj.set_label(0x010, "int")
	pj.set_label(0x014, "tint")
	pj.set_label(0x017, "RESET_TIMER")
	pj.set_label(0x01d, "R1d")
	pj.set_label(0x032, "MEMTST")
	pj.set_label(0x048, "048")
	pj.set_label(0x06e, "06e")
	pj.set_label(0x0a1, "Ra1")
	pj.set_label(0x0ac, "0ac")
	pj.set_label(0x0c2, "0c2")
	pj.set_label(0x0d2, "0d2")
	pj.set_label(0x0d6, "0d6")
	pj.set_label(0x0de, "0de")
	pj.set_label(0x0ea, "0ea")
	pj.set_label(0x100, "ALIGN")
	pj.set_label(0x200, "ALIGN2")
	pj.set_label(0x300, "FOCUS")

	cpu.vectors(pj)

	while pj.run():
		pass

	l = []
	for a in range(0x122, 0x200, 2):
		l.append(pj.m.bu16(a))
		gpu.disass(pj, a)

	for a in range(0x222, 0x2c8, 2):
		l.append(pj.m.bu16(a))
		gpu.disass(pj, a)

	hp1345_render.svg(pj, 0x122, 0x2c8, l=l)

	for a in range(0x31e,0x400, 2):
		gpu.disass(pj, a)
	hp1345_render.svg(pj, 0x31e, 0x400)
示例#3
0
def setup():
    pj = job.Job(mem_setup(), "HP1345A")
    cpu = mcs48.i8748()
    return pj, cpu