I think it was just a practical convention inherited from those who came before them at IBM and other places.
From the perspective of business machines, it would rarely make sense to push data that's not word-sized data.
Which is still the same rationale ARM, Intel, AMD follow to date.
But you can still do
DI
DEC SP
LD (SP), A
EI
For most intents and purposes indistinct from a theoretical PUSH A
@aparrish Ahhh I see, I didn't know that was unavailable on the SM83, I assumed perfect backwards compatibility.
Can you disable and enable interrupts though, to guard the unsafe parts of the atomic operation?
Compatibility in the sense of supporting the specific snippet I posted earlier.
DI
DEC SP
LD (SP), A
EI
@drj Sorry, something more like
DI
EXX
DEC SP
LD HL, 0
ADD HL, SP
LD (HL), A
EXX
EI
I wasn't implying I could deliver a complete Z80 solution on social media, but here we are