brbecker wrote
I'm having troubles with getting the CPUEmulator to accept the SimpleFunction.tst file. Every time I run it, I get the following error at the first step (before my asm code is even loaded!):
In line 4, Destination expected
Line 4 is actually a comment, so I'm not sure why it would be complaining there.
"Destination expected" sounds like an assembler error message. Check the .asm written by your VM translator. Note that the assembler can be picky about the order when there are more than one destination register in an instruction. It likes the order listed in the table in 6.2.2 (top of page 110 in the book).
Also, it's not uncommon for the line number in the error messages to be off by 1, so look up or down a line or two.
Also, as has been reported a few other times on this board, the SimpleFunction.vm file is missing a slash in line 1 to make a complete comment marker.
Thanks. I just put the
corrected file in the Announcements: New and Updated Files section.
--Mark