Editing IC10
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 80: | Line 80: | ||
==Stack Memory== | ==Stack Memory== | ||
β | ;push r?: adds the value ''' | + | ;push r?: adds the value '''sp''' and increments the '''sp''' by 1. |
;pop r?: loads the value in the stack memory at index <code>sp-1</code> into register '''r?''' and decrements the '''sp''' by 1. | ;pop r?: loads the value in the stack memory at index <code>sp-1</code> into register '''r?''' and decrements the '''sp''' by 1. | ||
;peek r?: loads the value in the stack memory at index <code>sp-1</code> into register '''r?'''. | ;peek r?: loads the value in the stack memory at index <code>sp-1</code> into register '''r?'''. |