"Destionation Expected"

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

"Destionation Expected"

runge_kutta
Hello,

My translator generates the following lines in the .asm program:

@SP
A=M

The second of these lines gives rise to a "Destination Expected" error when I try to load the file into the CPU emulator. Any ideas why that might be?

Reply | Threaded
Open this post in threaded view
|

Re: "Destionation Expected"

cadet1620
Administrator
runge_kutta wrote
Hello,

My translator generates the following lines in the .asm program:

@SP
A=M

The second of these lines gives rise to a "Destination Expected" error when I try to load the file into the CPU emulator. Any ideas why that might be?
Obviously something's confusing the parser since this is valid code.  I'd guess that there is a line ending problem, or maybe a null (0) byte or other invisible character somewhere.  What language are you using to write your translator?

If you wrote an assembler, can your assembler handle the output from your translator?  That might offer a clue.

You could also upload the entire problem file (More options button) and I can take a look at it in detail.

--Mark
Reply | Threaded
Open this post in threaded view
|

Re: "Destionation Expected"

runge_kutta
Hey there,

Writing in Python. Could be an invisible character issue. Will go check. Brb