Translation of -1

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

Translation of -1

atom
Hello -

I'm working on the first part of the VM translator and noticed that the result of the eq operation in the VM simulator sets RAM[256] to -1.

I noticed the cpu emulator doesn't display any line with @-1. I'm doing:

@-1
D=A
@"desired stack position"
M=D

I don't know if I'm doing something horribly wrong but I got no clue what's wrong.

Reply | Threaded
Open this post in threaded view
|

Re: Translation of -1

atom
Nevermind. I just noticed I could do M=-1! Silly me.