mirror of
https://github.com/hsoft/collapseos.git
synced 2024-11-23 22:48:05 +11:00
3d2dc041fb
Instead of having wordref point to core word routines, I made them into word 4 word types. It liberates space into the stable ABI and should make porting to other arches easier. I'm also thinking of combining word type with the namelen field for precious bytes saving, but not now...
13 lines
463 B
Plaintext
13 lines
463 B
Plaintext
L3 BSET PC ORG @ 0x34 + ! ( execute. DE -> wordref )
|
|
( We don't apply BIN( reliably on stable ABI stuff, we
|
|
might need to adjust addr. Ugly, but well... )
|
|
BIN( @ [IF]
|
|
A XORr, D ORr, IFZ, D BIN( @ 256 / LDrn, THEN,
|
|
[THEN]
|
|
LDA(DE), DE INCss,
|
|
A ORr, IFZ, EXDEHL, JP(HL), THEN,
|
|
A DECr, JRZ, L1 FWR ( compiled B303 )
|
|
( cell or does. push PFA ) DE PUSHqq,
|
|
A DECr, IFZ, JPNEXT, THEN, ( cell )
|
|
( continue to does, B302 )
|