Nand2Tetris Questions and Answers Forum
›
Virtual Machine
›
Chapter 7
Search
everywhere
only in this topic
Advanced Search
Pop commands
Classic
List
Threaded
♦
♦
Locked
4 messages
goland
Reply
|
Threaded
Open this post in threaded view
♦
♦
|
Pop commands
I was wondering if someone could help figure out why I can't get any of my writePOP commands to load to file?
I don't get why I have no issues with writePush, whether constant or static, but no luck with POP commands.
ngdrummer
Reply
|
Threaded
Open this post in threaded view
♦
♦
|
Re: Pop commands
As per the book, I put both push and pop commands in a writePushPop method... could this have something to do with it?
goland
Reply
|
Threaded
Open this post in threaded view
♦
♦
|
Re: Pop commands
I've tried putting them both under same method, still no luck. I figured if one works they both should.
I don't get it.
ngdrummer
Reply
|
Threaded
Open this post in threaded view
♦
♦
|
Re: Pop commands
Well, they work opposite of each other as far as the assembly language works (kind of). Make sure your SP is moving up or down according to the type of command.
Free forum by Nabble
Edit this page