Tämä sivusto toimii paremmin JavaScriptillä.
Etusivu
Tutki
lain.church
Apua
Rekisteröidy
Kirjaudu sisään
izaya
/
collapseos
peilaus alkaen
https://github.com/hsoft/collapseos.git
Tarkkaile
1
Äänestä
1
Fork
0
Koodi
Ongelmat
0
Julkaisut
0
Wiki
Activity
Selaa lähdekoodia
forth: Forth-ify "-"
pull/95/head
Virgil Dupras
4 vuotta sitten
vanhempi
005dd98fc2
commit
941224be94
3 muutettua tiedostoa
jossa
11 lisäystä
ja
14 poistoa
Jaettu näkymä
Diff Options
Show Stats
Download Patch File
Download Diff File
BIN
emul/forth/z80c.bin
+2
-14
forth/forth.asm
+9
-0
forth/z80c.fs
BIN
emul/forth/z80c.bin
Näytä tiedosto
+ 2
- 14
forth/forth.asm
Näytä tiedosto
@@ -1318,23 +1318,11 @@ PLUS:
push hl
jp next
; ( a b -- c ) A - B
.db "-"
.dw $-PLUS
.db 1
MINUS:
.dw nativeWord
pop de ; B
pop hl ; A
call chkPS
or a ; reset carry
sbc hl, de
push hl
jp next
.fill 18
; ( a1 a2 -- b )
.db "SCMP"
.dw $-
MIN
US
.dw $-PLUS
.db 4
SCMP:
.dw nativeWord
+ 9
- 0
forth/z80c.fs
Näytä tiedosto
@@ -113,6 +113,15 @@ CODE XOR
HL PUSHqq,
;CODE
CODE -
DE POPqq,
HL POPqq,
chkPS,
A ORr,
DE SBCHLss,
HL PUSHqq,
;CODE
CODE *
DE POPqq,
BC POPqq,
Write
Preview
Loading…
Peruuta
Tallenna