mirror of
https://github.com/hsoft/collapseos.git
synced 2024-11-23 16:38:06 +11:00
z80: move lbluflw code around
with uflw checks not being in next anymore, we can save ourselves a forward jump.
This commit is contained in:
parent
d1de99d8c9
commit
5adbf88591
3
blk/285
3
blk/285
@ -1,3 +0,0 @@
|
|||||||
lblofl BSET ( abortUnderflow )
|
|
||||||
DE BIN( @ 0x06 ( uflw ) + LDdd(n),
|
|
||||||
JR, L2 FWR ( execute, B287 )
|
|
2
blk/286
2
blk/286
@ -8,7 +8,7 @@ lblnext BSET PC ORG @ 0x1b + ! ( next )
|
|||||||
IFNC, ( SP <= IX? overflow )
|
IFNC, ( SP <= IX? overflow )
|
||||||
SP PS_ADDR LDdn, IX RS_ADDR LDdn,
|
SP PS_ADDR LDdn, IX RS_ADDR LDdn,
|
||||||
DE BIN( @ 0x13 ( oflw ) + LDdd(n),
|
DE BIN( @ 0x13 ( oflw ) + LDdd(n),
|
||||||
JR, L3 FWR ( execute, B287 )
|
JR, L2 FWR ( execute, B287 )
|
||||||
THEN,
|
THEN,
|
||||||
LDA(BC), E A LDrr, BC INCd,
|
LDA(BC), E A LDrr, BC INCd,
|
||||||
LDA(BC), D A LDrr, BC INCd,
|
LDA(BC), D A LDrr, BC INCd,
|
||||||
|
2
blk/287
2
blk/287
@ -1,4 +1,4 @@
|
|||||||
lblexec BSET L1 FSET ( B284 ) L2 FSET ( B285 ) L3 FSET ( B286 )
|
lblexec BSET L1 FSET ( B284 ) L2 FSET ( B286 )
|
||||||
( DE -> wordref )
|
( DE -> wordref )
|
||||||
( When we have a BIN( offset, we need to adjust stable
|
( When we have a BIN( offset, we need to adjust stable
|
||||||
ABI offsets. )
|
ABI offsets. )
|
||||||
|
5
blk/290
5
blk/290
@ -1,3 +1,6 @@
|
|||||||
|
lbluflw BSET ( abortUnderflow )
|
||||||
|
DE BIN( @ 0x06 ( uflw ) + LDdd(n),
|
||||||
|
JR, lblexec BWR
|
||||||
lblchkPS BSET ( chkPS )
|
lblchkPS BSET ( chkPS )
|
||||||
( Note that you only need to call this in words that push
|
( Note that you only need to call this in words that push
|
||||||
back to PSP. If they don't, calling chkPS is redundant with
|
back to PSP. If they don't, calling chkPS is redundant with
|
||||||
@ -9,4 +12,4 @@ lblchkPS BSET ( chkPS )
|
|||||||
SP SUBHLd,
|
SP SUBHLd,
|
||||||
EXX,
|
EXX,
|
||||||
CNC RETc, ( PS_ADDR >= SP? good )
|
CNC RETc, ( PS_ADDR >= SP? good )
|
||||||
JR, lblofl BWR ( abortUnderflow-B298 )
|
JR, lbluflw BWR
|
||||||
|
Loading…
Reference in New Issue
Block a user