Nand2Tetris Questions and Answers Forum
›
Virtual Machine
›
Chapter 7
Search
everywhere
only in this topic
Advanced Search
Do we have to use jump instructions to implement eq, lt and gt functions?
Classic
List
Threaded
♦
♦
Locked
3 messages
kraftwerk1611
Reply
|
Threaded
Open this post in threaded view
♦
♦
|
Do we have to use jump instructions to implement eq, lt and gt functions?
Hi,
Is the only way to implement eq, lt instructions in Project 7 (VM-part 1) is to use jump instructions, if-else and labels?
Listening to lectures I got the impression that use of jump was deferred till chapter 8. Or may be I missed something.
Thanks.
ivant
Reply
|
Threaded
Open this post in threaded view
♦
♦
|
Re: Do we have to use jump instructions to implement eq, lt and gt functions?
You can (and for these instructions should) use the HACK jumps and any other thing you've already implemented. In chapter 8, you'll implement the VM-level jumps.
kraftwerk1611
Reply
|
Threaded
Open this post in threaded view
♦
♦
|
Re: Do we have to use jump instructions to implement eq, lt and gt functions?
Thank you.
So far things seem to be working with jump instructions.
Free forum by Nabble
Edit this page