Il sito funziona meglio con JavaScript.
Home
Esplora
lain.church
Aiuto
Registrati
Accedi
izaya
/
collapseos
mirror da
https://github.com/hsoft/collapseos.git
Segui
1
Vota
1
Forka
0
Codice
Problemi
0
Rilasci
0
Wiki
Attività
Sfoglia il codice sorgente
forth: Forth-ify "SCMP"
pull/95/head
Virgil Dupras
4 anni fa
parent
400ef99b54
commit
7c9d799d93
3 ha cambiato i file
con
17 aggiunte
e
17 eliminazioni
Visualizzazione separata
Diff Options
Show Stats
Download Patch File
Download Diff File
BIN
emul/forth/z80c.bin
+5
-17
forth/forth.asm
+12
-0
forth/z80c.fs
BIN
emul/forth/z80c.bin
Vedi File
+ 5
- 17
forth/forth.asm
Vedi File
@@ -122,6 +122,8 @@ LIT:
.dw litWord
.dw INITIAL_SP
.dw WORDBUF
jp flagsToBC
jp strcmp
; *** Code ***
forthMain:
@@ -180,7 +182,7 @@ INTERPRET:
.dw DROP
.dw EXECUTE
.fill 5
6
.fill 5
0
; STABLE ABI
; Offset: 00cd
@@ -980,25 +982,11 @@ PLUS:
push hl
jp next
.fill 18
; ( a1 a2 -- b )
.db "SCMP"
.dw $-PLUS
.db 4
SCMP:
.dw nativeWord
pop de
pop hl
call chkPS
call strcmp
call flagsToBC
push bc
jp next
.fill 42
; ( n1 n2 -- f )
.db "CMP"
.dw $-
SCM
P
.dw $-PLUS
.db 3
CMP:
.dw nativeWord
+ 12
- 0
forth/z80c.fs
Vedi File
@@ -254,3 +254,15 @@ CODE (resSP)
( INITIAL_SP == JTBL+28 )
SP JTBL 28 + @ LDdd(nn),
;CODE
CODE SCMP
DE POPqq,
HL POPqq,
chkPS,
( JTBL+35 == strcmp )
JTBL 35 + CALLnn,
( JTBL+32 == flagsToBC )
JTBL 32 + CALLnn,
BC PUSHqq,
;CODE
Write
Preview
Loading…
Annulla
Salva