mirror of
https://github.com/hsoft/collapseos.git
synced 2024-11-23 21:38:05 +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.
14 lines
182 B
Plaintext
14 lines
182 B
Plaintext
: OP2i ( i -- )
|
|
CREATE C,
|
|
DOES>
|
|
C@ A, A,
|
|
;
|
|
0xd3 OP2i OUTiA,
|
|
0xdb OP2i INAi,
|
|
0xc6 OP2i ADDi,
|
|
0xe6 OP2i ANDi,
|
|
0xf6 OP2i ORi,
|
|
0xd6 OP2i SUBi,
|
|
0xee OP2i XORi,
|
|
0xfe OP2i CPi,
|