1

This is not a duplicate of this one, as I don't have any syntax error -- I only got two lines of code, so I am certain!

enter image description here

Note:

  • I did remember to save BasicLoop.asm before attempting to load it.

  • I can change the .asm code to whatever I like, the error persists.

xing Zì
  • 391
  • 4
  • 16
  • Does loading the same .asm file into cpu emulator, with File->Load program give the same error or is it just with your script? – zubergu Aug 12 '19 at 07:00

2 Answers2

0

Try deleting the file BasicLoop.asm and then create a new one without using any VM-Translator.

I tried reproducing the error, but it never occured.

The following might be useful if you are developing VM-Translator:

I too got stuck on somewhat similar error saying: end of line expected. '0' is found

While examining my CodeWriter, I found that it wrote @0, @{0} and on someplaces it combined 2 seperate codes as 0;JMP0 or 0;JMP D=A

Hope it helps.

0

It happened to me a number of times as well. The first thing to recognize is that the line 0 reference is meaningless. The problem may be anywhere in your assembly code.

You should look through every line of your assembly code, check that there are no compound commands like:

@SPD=M

when it should be

@SP D=M

Also, make sure you don't have (@LABEL) instead of just (LABEL). That could do it as well.

Rasputin
  • 122
  • 10