Mercurial > hg > ede
view dbg/cli.py @ 28:6d32e54e5c16
emulator overhauled really, new a better memory structure
also cleaned up the file system some what.
author | james <jb302@eecs.qmul.ac.uk> |
---|---|
date | Fri, 11 Apr 2014 14:38:09 +0100 |
parents | |
children |
line wrap: on
line source
from assembler.language import * from struct import pack #from debugger import dbg while True: c = raw_input().lower().split() mne = c[0] args = ''.join(c[1:]).split(',') sym, data = tokenize(mne, args) op = pack('>B', iset[mne][sym][0]) print op, data