mirror of
https://github.com/hsoft/collapseos.git
synced 2024-11-30 20:48:06 +11:00
Almost done De-XPACKing!
This commit is contained in:
parent
640e3321fc
commit
68262f925b
1
blk/001
1
blk/001
@ -6,7 +6,6 @@ MASTER INDEX
|
|||||||
150 Extra words
|
150 Extra words
|
||||||
200 Z80 assembler 260 Cross compilation
|
200 Z80 assembler 260 Cross compilation
|
||||||
280 Z80 boot code 390 Cross-compiled core
|
280 Z80 boot code 390 Cross-compiled core
|
||||||
439 XPACKed core
|
|
||||||
490 TRS-80 Recipe 520 Fonts
|
490 TRS-80 Recipe 520 Fonts
|
||||||
550 TI-84+ Recipe 580 RC2014 Recipe
|
550 TI-84+ Recipe 580 RC2014 Recipe
|
||||||
|
|
||||||
|
22
blk/438
22
blk/438
@ -1,10 +1,14 @@
|
|||||||
( ';' can't have its name right away because, when created, it
|
: IF ( -- a | a: br cell addr )
|
||||||
is not an IMMEDIATE yet and will not be treated properly by
|
COMPILE (?br) H@ 2 ALLOT ( br cell allot )
|
||||||
xcomp. )
|
|
||||||
: _
|
|
||||||
['] EXIT ,
|
|
||||||
R> DROP ( exit : )
|
|
||||||
; IMMEDIATE
|
; IMMEDIATE
|
||||||
';' XCURRENT @ 4 - C!
|
: THEN ( a -- | a: br cell addr )
|
||||||
':' X' _ 4 - C! ( give : its name )
|
DUP H@ -^ SWAP ( a-H a ) !
|
||||||
'(' X' _ 4 - C!
|
; IMMEDIATE
|
||||||
|
: ELSE ( a1 -- a2 | a1: IF cell a2: ELSE cell )
|
||||||
|
COMPILE (br)
|
||||||
|
2 ALLOT
|
||||||
|
DUP H@ -^ SWAP ( a-H a )
|
||||||
|
!
|
||||||
|
H@ 2- ( push a. -2 for allot offset )
|
||||||
|
; IMMEDIATE
|
||||||
|
|
||||||
|
10
blk/439
Normal file
10
blk/439
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
( ';' can't have its name right away because, when created, it
|
||||||
|
is not an IMMEDIATE yet and will not be treated properly by
|
||||||
|
xcomp. )
|
||||||
|
: _
|
||||||
|
['] EXIT ,
|
||||||
|
R> DROP ( exit : )
|
||||||
|
; IMMEDIATE
|
||||||
|
';' XCURRENT @ 4 - C!
|
||||||
|
':' X' _ 4 - C! ( give : its name )
|
||||||
|
'(' X' _ 4 - C!
|
11
blk/442
11
blk/442
@ -1,11 +0,0 @@
|
|||||||
: IF ( -- a | a: br cell addr )
|
|
||||||
COMPILE (?br)
|
|
||||||
H@ ( push a )
|
|
||||||
2 ALLOT ( br cell allot )
|
|
||||||
; IMMEDIATE
|
|
||||||
|
|
||||||
: THEN ( a -- | a: br cell addr )
|
|
||||||
DUP H@ -^ SWAP ( a-H a )
|
|
||||||
!
|
|
||||||
; IMMEDIATE
|
|
||||||
|
|
8
blk/443
8
blk/443
@ -1,8 +0,0 @@
|
|||||||
: ELSE ( a1 -- a2 | a1: IF cell a2: ELSE cell )
|
|
||||||
COMPILE (br)
|
|
||||||
2 ALLOT
|
|
||||||
DUP H@ -^ SWAP ( a-H a )
|
|
||||||
!
|
|
||||||
H@ 2- ( push a. -2 for allot offset )
|
|
||||||
; IMMEDIATE
|
|
||||||
|
|
BIN
emul/forth.bin
BIN
emul/forth.bin
Binary file not shown.
Loading…
Reference in New Issue
Block a user