mirror of
https://github.com/hsoft/collapseos.git
synced 2024-11-10 09:48:05 +11:00
adea75e50a
I'm pretty happy about how lightweight the implementation turns out to be.
13 lines
492 B
Plaintext
13 lines
492 B
Plaintext
lblexec BSET L1 FSET ( B284 ) L2 FSET ( B286 )
|
|
( DE -> wordref )
|
|
LDA(DE), DE INCd, EXDEHL, ( HL points to PFA )
|
|
A ORr, IFZ, JP(HL), THEN,
|
|
A DECr, ( compiled? ) IFNZ, ( no )
|
|
3 CPi, IFZ, ( alias ) LDDE(HL), JR, lblexec BWR THEN,
|
|
IFNC, ( switch )
|
|
LDDE(HL), EXDEHL, LDDE(HL), JR, lblexec BWR THEN,
|
|
( cell or does. push PFA ) HL PUSH,
|
|
A DECr, JRZ, lblnext BWR ( cell )
|
|
HL INCd, HL INCd, LDDE(HL), EXDEHL, ( does )
|
|
THEN, ( continue to compiledWord )
|