jtauber/dcpu16py — pull request #8 by dawiedotcom (2012-04-05 11:51:03+00:00)
Title: Decorators for opcode lookup

I added a decorator that adds the function corresponding to an opcode to dictionary. Looking up an opcode becomes a one liner instead of the messy `if` currently in `run`.