A instructions aren't being properly loaded in VMEmulator?

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

A instructions aren't being properly loaded in VMEmulator?

edd91
I have the following code in my interpreted .asm file:
...
A=M
M=D
(END)
// push constant 17
@17
D=A
@SP
...


However when its loaded into the VMEmulator by the test script (StackTest), it comes up as:

...
A=M
M=D
@57
D=A
@0
...


Notice the @17 has been loaded as @57. Any idea why this is?

Edit: I should say, this seems to have happened to other similar @integers as well. For example @16 has been changed to @31
Reply | Threaded
Open this post in threaded view
|

Re: A instructions aren't being properly loaded in VMEmulator?

cadet1620
Administrator
(I assume you meant CPU Emulator)

This is quite strange.

Please email me your .asm file as an attachment and I'll see if I can reproduce the problem and figure out what is happening.

--Mark


Reply | Threaded
Open this post in threaded view
|

Re: A instructions aren't being properly loaded in VMEmulator?

edd91
Hi Mark,

Thanks for your quick help - however I've realised that I'm an idiot

My problem is that my ASM code has multiple (TRUE) loops and its jumping to the last one, which is where 57 gets inserted in the code....

Now to solve the problem of multiple loops with the same name