mirror of
https://github.com/hsoft/collapseos.git
synced 2024-11-10 09: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.
11 lines
162 B
Plaintext
11 lines
162 B
Plaintext
: OP2d ( d -- )
|
|
CREATE C,
|
|
DOES>
|
|
0xed A,
|
|
C@ SWAP ( op d )
|
|
<<4 ( op d<< 4 )
|
|
OR A,
|
|
;
|
|
0x4a OP2d ADCHLd,
|
|
0x42 OP2d SBCHLd,
|