Difference between revisions of "84PCE:RAM:D01508"

From WikiTI
Jump to: navigation, search
m
Line 1: Line 1:
[[Category:84PCE:RAM:By Address|D0150B - lastEntryStkPtr]] [[Category:84PCE:RAM:By Name|lastEntryStkPtr]]
+
[[Category:84PCE:RAM:By Address|D01508 - lastEntryStkPtr]] [[Category:84PCE:RAM:By Name|lastEntryStkPtr]]
 
== Synopsis ==
 
== Synopsis ==
'''Unofficial Name:''' lastEntryStk
+
'''Unofficial Name:''' lastEntryStkPtr
  
'''Memory Address:''' D0150Bh
+
'''Memory Address:''' D01508h
  
'''Length:''' 2048 bytes
+
'''Length:''' 3 bytes
  
This is the start of entry stack (note that the last entry is not in the stack, it is in the program '#')
+
This is a pointer to the next available byte in the user entry stack.
 
+
The first 2 bytes are length of the entry, followed by input string.
+
 
+
2nd from last entry is first in this stack.
+
 
+
 
+
If you don't care about user friendliness, you can use this for your own RAM purposes. Just be sure to reset numLastEntries whenever you feel like it.
+

Revision as of 13:26, 25 May 2016

Synopsis

Unofficial Name: lastEntryStkPtr

Memory Address: D01508h

Length: 3 bytes

This is a pointer to the next available byte in the user entry stack.