1
0
mirror of https://github.com/hsoft/collapseos.git synced 2024-11-27 16:38:05 +11:00
collapseos/blk/306
Virgil Dupras 40f92b9bab z80: optimize chkPS
Inline it in next and make chkPS, call a newly reserved label for
it directly, removing a layer of indirection. This frees a spot in
the stable ABI.
2020-06-14 09:48:10 -04:00

17 lines
345 B
Plaintext

( Core words )
( KEY and EMIT are not defined here. There're
expected to be defined in platform-specific code. )
CODE EXECUTE
DE POPqq,
chkPS,
JR, L3 BWR ( execute-B301 )
( a b c -- b c a )
CODE ROT
HL POPqq, ( C ) DE POPqq, ( B ) BC POPqq, ( A )
chkPS,
DE PUSHqq, ( B ) HL PUSHqq, ( C ) BC PUSHqq, ( A )
;CODE