mirror of
https://github.com/hsoft/collapseos.git
synced 2024-11-06 00:50:55 +11:00
73623fff53
it seems I left my asm argument harmonization half done here. Instructions list at B208 doesn't correspond to many actual mnemonics. This mnemonic here was the worst offender.
16 lines
574 B
Plaintext
16 lines
574 B
Plaintext
lblnext BSET PC ORG @ 0x1b + ! ( next )
|
|
( 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. )
|
|
( 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,
|
|
DE BIN( @ 0x13 ( oflw ) + LDd(n),
|
|
JR, L2 FWR ( execute, B287 )
|
|
THEN,
|
|
LDA(BC), E A LDrr, BC INCd,
|
|
LDA(BC), D A LDrr, BC INCd,
|
|
( continue to execute )
|