Stack algorithm
|
07-12-2016, 09:55 PM
Post: #3
|
|||
|
|||
RE: Stack algorithm
You need to implement a stack lift flag. Sometimes when you enter a new number you need to raise the stack before putting the value in X, other times you don't. You need a flag to distinguish the two cases. Enter disables stack lift on entry, + enables it.
Of course it is more complex than this. This is a reside of a decision made in the early 1970's if not before because the calculators then didn't have enough RAM to store the number being entered separately -- instead they used the x register for this purpose. - Pauli |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
Stack algorithm - deetee - 07-12-2016, 12:36 PM
RE: Stack algorithm - Namir - 07-12-2016, 04:32 PM
RE: Stack algorithm - Paul Dale - 07-12-2016 09:55 PM
RE: Stack algorithm - Dwight Sturrock - 07-13-2016, 02:28 AM
RE: Stack algorithm - Dieter - 07-13-2016, 09:54 AM
RE: Stack algorithm - deetee - 07-13-2016, 02:13 PM
|
User(s) browsing this thread: 1 Guest(s)