84PCE:RAM:D01508
From WikiTI
Revision as of 07:28, 26 May 2016 by MateoConLechuga (Talk | contribs)
Synopsis
Unofficial Name: tempSP
Memory Address: D0053Fh
Length: 3 bytes
When the OS is checking the stack depth, it uses this region of memory to load hl with sp. For instance:
ld (tempSP),sp ld hl,(tempSP)
It can generally be used as a temporary data location, although it may be written to at some points.
Why this is silly
However, it is simply beyond me why they didn't simply do this, to save a ton of bytes and speed.
or a,a sbc hl,hl add hl,sp