mirror of
https://github.com/hsoft/collapseos.git
synced 2024-12-26 04:18:05 +11:00
749fdf1b18
Verified against nasm with equivalent code.
10 lines
199 B
Plaintext
10 lines
199 B
Plaintext
: FWR8 BSET 0 A, ;
|
|
: FSET @ THEN, ;
|
|
( : BREAK, FJR, 0x8000 OR ;
|
|
: BREAK?, DUP 0x8000 AND IF
|
|
0x7fff AND 1 ALLOT THEN, -1 ALLOT
|
|
THEN ;
|
|
: AGAIN, BREAK?, PC - 1- A, ; )
|
|
( : BWR @ AGAIN, ; )
|
|
|