mirror of
https://github.com/hsoft/collapseos.git
synced 2024-11-20 22:38:06 +11:00
91f79d1131
The idea is to consider assemblers as "runtime" apps instead of placing them in the "bootstrap" section of the blocks. These apps will be used for much more than bootstrapping. Moved its documentation to doc/asm.txt and made its code blocks more compact.
9 lines
189 B
Plaintext
9 lines
189 B
Plaintext
: FWR 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, ;
|