mirror of
https://github.com/hsoft/collapseos.git
synced 2024-11-06 01:30:55 +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.
13 lines
377 B
Plaintext
13 lines
377 B
Plaintext
: JPc, SWAP <<3 0xc2 OR A, A,, ;
|
|
: BCALL, BIN( @ + CALL, ;
|
|
: BJP, BIN( @ + JP, ;
|
|
: BJPc, BIN( @ + JPc, ;
|
|
|
|
CREATE lblchkPS 0 ,
|
|
: chkPS, lblchkPS @ CALL, ; ( chkPS, B305 )
|
|
CREATE lblnext 0 , ( stable ABI until set in B300 )
|
|
: JPNEXT, lblnext @ ?DUP IF JP, ELSE 0x1a BJP, THEN ;
|
|
: CODE ( same as CREATE, but with native word )
|
|
(entry) 0 C, ( 0 == native ) ;
|
|
: ;CODE JPNEXT, ;
|