I managed to make it through project 8 without having to ask here for help (even though I read just about every previous post and got lots of help from them) and I have a translator that passes all of the given tests. However, at about 3am last night my brain woke me up with the realization that I had made an error somewhere in my translator. I probably should have gotten up and written it down or something because it all made sense then, not so much now many hours later when I'm looking at the code.
As I said, all given tests pass, but I think I'm doing something wrong with my label names. I add an index and increment it during the writeCall. I'm thinking there's a problem with that, but honestly can't remember what my brain told me the problem was last night!
Also, I appear to generate way too much code and could use a little help in optimizing. As a test, I copied the OS .vm files to a new directory, added a Main.vm that was posted in another thread and ran the translator. Couldn't tell you if it works though because it made a 49576 line asm file witch the cpu emulator says is just too big.
I've temporarily linked my 08 project folder at
http://themadhouse.org/tecs/ if someone would like to poke around and let me know what I may have wrong. This includes the workspace directory where my translator source resides. If the admins think it prudent I can password protect this, but I don't plan on leaving it up after my problem is solved. Your call.
I feel pretty good at how far I've come with understanding the assembly code, but I still don't have any idea how to optimize things.
Thanks
Jason