Implemented most of the basic opcodes and wrote test code.