mirror of
https://github.com/hsoft/collapseos.git
synced 2024-11-27 09:58: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.
15 lines
351 B
Plaintext
15 lines
351 B
Plaintext
: OP1d
|
|
CREATE C,
|
|
DOES>
|
|
C@ ( d op )
|
|
SWAP ( op d )
|
|
<<4 ( op d<<4 )
|
|
OR A,
|
|
;
|
|
0xc5 OP1d PUSH, 0xc1 OP1d POP,
|
|
0x03 OP1d INCd, 0x0b OP1d DECd,
|
|
0x09 OP1d ADDHLd,
|
|
|
|
: ADDIXd, 0xdd A, ADDHLd, ; : ADDIXIX, HL ADDIXd, ;
|
|
: ADDIYd, 0xfd A, ADDHLd, ; : ADDIYIY, HL ADDIYd, ;
|