This website works better with JavaScript.
Home
Explore
lain.church
Help
Register
Sign In
izaya
/
collapseos
mirror of
https://github.com/hsoft/collapseos.git
Watch
1
Star
1
Fork
0
Code
Issues
0
Releases
0
Wiki
Activity
Browse Source
forth: Forth-ify "C,"
pull/95/head
Virgil Dupras
4 years ago
parent
29dcddb8cd
commit
26871be6f2
3 changed files
with
8 additions
and
17 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
BIN
emul/forth/z80c.bin
+2
-16
forth/forth.asm
+6
-1
forth/icore.fs
BIN
emul/forth/z80c.bin
View File
+ 2
- 16
forth/forth.asm
View File
@@ -720,24 +720,10 @@ EMIT:
.dw EXIT
.fill 49
.db "C,"
.dw $-EMIT
.db 2
CWR:
.dw nativeWord
pop de
call chkPS
ld hl, (HERE)
ld (hl), e
inc hl
ld (HERE), hl
jp next
.fill 71
.db ","
.dw $-
CWR
.dw $-EMIT
.db 1
WR:
.dw nativeWord
+ 6
- 1
forth/icore.fs
View File
@@ -81,6 +81,11 @@
AGAIN
;
: C,
HERE @ _c C!
HERE @ 1 + HERE !
;
: (entry)
HERE @ ( h )
WORD ( h s )
@@ -92,7 +97,7 @@
( write prev value )
HERE @ CURRENT @ _c - ,
( write size )
C,
_c
C,
HERE @ CURRENT !
;
Write
Preview
Loading…
Cancel
Save