Difference between revisions of "84PCE:RAM:D0053F"
From WikiTI
(Created page with "D0053F - tempSP tempSP == Synopsis == '''Unofficial Name:''' tempSP '''Memory Address:''' D0053Fh '''Length:...") |
(No difference)
|
Latest revision as of 08:30, 26 May 2016
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