Some more progress. Got all the functions writen to handle the opcodes but when I try to run the sample program it doesn't work =(