S
Steven Swift
Freescale recommends:
LDHX #RAMLAST+1
TXS
at the start of the reset handler for 9s08gb micros so that stack will
use high ram, freeing up zero page for direct addressing.
How this messes up simple minded single-byte X-indexed addressing as a
command like:
LDA junk,X
now uses H:X for the index. For the GB32, H=0x08.
Short of clearing H (CLRH) and using zero page for stack, is there
a clean way to use high stack and still maintain the simple 8-bit
indexing mode.
TIA.
Steve.
LDHX #RAMLAST+1
TXS
at the start of the reset handler for 9s08gb micros so that stack will
use high ram, freeing up zero page for direct addressing.
How this messes up simple minded single-byte X-indexed addressing as a
command like:
LDA junk,X
now uses H:X for the index. For the GB32, H=0x08.
Short of clearing H (CLRH) and using zero page for stack, is there
a clean way to use high stack and still maintain the simple 8-bit
indexing mode.
TIA.
Steve.