本網站在啟用 JavaScript 的情況下可以運作的更好。
首頁
探索
lain.church
說明
註冊
登入
izaya
/
collapseos
镜像来自
https://github.com/hsoft/collapseos.git
關注
1
收藏
1
複製
0
程式碼
問題
0
版本發佈
0
Wiki
活動
瀏覽代碼
forth: Forth-ify "-"
pull/95/head
Virgil Dupras
4 年之前
父節點
005dd98fc2
當前提交
941224be94
共有
3 個檔案被更改
,包括
11 行新增
和
14 行删除
分割檢視
Diff Options
Show Stats
Download Patch File
Download Diff File
二進制
emul/forth/z80c.bin
+2
-14
forth/forth.asm
+9
-0
forth/z80c.fs
二進制
emul/forth/z80c.bin
查看文件
+ 2
- 14
forth/forth.asm
查看文件
@@ -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
查看文件
@@ -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…
取消
儲存