2020-06-18 21:24:47 +10:00
|
|
|
lblnext BSET PC ORG @ 0x1b + ! ( next )
|
2020-04-23 11:19:12 +10:00
|
|
|
( This routine is jumped to at the end of every word. In it,
|
|
|
|
we jump to current IP, but we also take care of increasing
|
|
|
|
it by 2 before jumping. )
|
2020-08-08 22:08:05 +10:00
|
|
|
( Before we continue: are we overflowing? )
|
|
|
|
IX PUSH, EX(SP)HL, ( do EX to count the IX push in SP )
|
|
|
|
SP SUBHLd, HL POP,
|
|
|
|
IFNC, ( SP <= IX? overflow )
|
|
|
|
SP PS_ADDR LDdn, IX RS_ADDR LDdn,
|
2020-08-15 11:41:34 +10:00
|
|
|
DE BIN( @ 0x13 ( oflw ) + LDd(n),
|
2020-08-08 22:19:31 +10:00
|
|
|
JR, L2 FWR ( execute, B287 )
|
2020-08-08 22:08:05 +10:00
|
|
|
THEN,
|
2020-07-07 13:31:00 +10:00
|
|
|
LDA(BC), E A LDrr, BC INCd,
|
|
|
|
LDA(BC), D A LDrr, BC INCd,
|
2020-04-23 11:19:12 +10:00
|
|
|
( continue to execute )
|