Hello all, I will be placing my source code onto pastebin and making it private as I am scared of my fellow students stealing my hard work for this class.
So far I have about 1000 lines of code that is pretty easy to understand and it compiles and runs properly for the first TWO sample programs.
However, the FINAL problem, the fact.s sample problem does not work. I get a final value of 0 for the factorial always no matter what input value I give. I have stepped through the program and I always lose it when it goes into recursion. I have tried over and over to see what it is doing throughout the program, and I have lost sleep for two nights now.
I hope anyone here can help me I have worked so hard and I will only get a 70% if I turn it in like this :(
There are random couts spread around and several commented lines these are for troubleshooting the program as it runs.
FULL instructions on the project can be found here: http://www.csci.csusb.edu/kay/cs460/phase1.html
Here is all my source code:
Assembler.h http://pastebin.com/F67fm7N0
Virtualmachine.h http://pastebin.com/i7z46BwF
Assembler.cpp http://pastebin.com/BbHd68Fb
Virtualmachine.cpp http://pastebin.com/5f5YPXdg
os.cpp http://pastebin.com/bghErqF1
prog.s http://pastebin.com/b674kxLA
prog.in http://pastebin.com/JKxqy6nK