mirror of
https://github.com/hsoft/collapseos.git
synced 2024-12-25 04:28:05 +11:00
17 lines
533 B
Plaintext
17 lines
533 B
Plaintext
CODE (?br) ( 0x67 )
|
|
HL POP,
|
|
HLZ,
|
|
JRZ, L2 BWR ( br + 1. False, branch )
|
|
L1 BSET ( loop will jump here )
|
|
( True, skip next 2 bytes and don't branch )
|
|
IY INCd, IY INCd,
|
|
JPNEXT, NOP, NOP, NOP,
|
|
CODE (loop) ( 0x80 )
|
|
0 IX+ INC(IXY+), IFZ, 1 IX+ INC(IXY+), THEN, ( I++ )
|
|
( Jump if I <> I' )
|
|
A 0 IX+ LDrIXY, 2 IX- CP(IXY+), JRNZ, L2 BWR ( branch )
|
|
A 1 IX+ LDrIXY, 1 IX- CP(IXY+), JRNZ, L2 BWR ( branch )
|
|
( don't branch )
|
|
IX DECd, IX DECd, IX DECd, IX DECd, JR, L1 BWR
|
|
( END OF STABLE ABI )
|