emu.p_push(0)
emu.pc = 0
emu.dump()
- emu.run_until('vga_console_putc')
+ emu.run_until('start')
emu.dump()
+ for i in range(256):
+ addr = emu.symbol_to_addr('vga_scr')
+ emu.st8(addr + (i*2), i)
i = ''
while True:
p = i
elif c[0] == 's':
emu.step()
emu.dump()
+ elif c[0] == 'push':
+ a = c[1]
+ if a[0].isdigit():
+ a = int(a, 0)
+ else:
+ a = emu.symbol_to_addr(a)
+ emu.p_push(a)
+ emu.dump()
+ elif c[0] == 'rpush':
+ a = c[1]
+ if a[0].isdigit():
+ a = int(a, 0)
+ else:
+ a = emu.symbol_to_addr(a)
+ emu.r_push(a)
+ emu.dump()
+ elif c[0] == 'pop':
+ emu.p_pop()
+ emu.dump()
+ elif c[0] == 'rpop':
+ emu.r_pop()
+ emu.dump()
+ elif c[0] == 'pc':
+ a = c[1]
+ if a[0].isdigit():
+ a = int(a, 0)
+ else:
+ a = emu.symbol_to_addr(a)
+ emu.pc = a
+ emu.dump()
return 0