mirror of
https://github.com/hsoft/collapseos.git
synced 2024-11-23 21:48: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.
15 lines
206 B
Plaintext
15 lines
206 B
Plaintext
: LDd(i), ( d i -- )
|
|
0xed A,
|
|
SWAP <<4 0x4b OR A,
|
|
A,,
|
|
;
|
|
: LD(i)d, ( i d -- )
|
|
0xed A,
|
|
<<4 0x43 OR A,
|
|
A,,
|
|
;
|
|
: RST, 0xc7 OR A, ;
|
|
|
|
: JP(IX), IX DROP JP(HL), ;
|
|
: JP(IY), IY DROP JP(HL), ;
|