本網站在啟用 JavaScript 的情況下可以運作的更好。
首頁
探索
lain.church
說明
註冊
登入
izaya
/
collapseos
镜像来自
https://github.com/hsoft/collapseos.git
關注
1
收藏
1
複製
0
程式碼
問題
0
版本發佈
0
Wiki
活動
瀏覽代碼
forth: Forth-ify "OR"
pull/95/head
Virgil Dupras
4 年之前
父節點
eb6a07a162
當前提交
1871f7cdb4
共有
4 個檔案被更改
,包括
15 行新增
和
19 行删除
分割檢視
Diff Options
Show Stats
Download Patch File
Download Diff File
二進制
emul/forth/z80c.bin
+1
-19
forth/forth.asm
+1
-0
forth/z80a.fs
+13
-0
forth/z80c.fs
二進制
emul/forth/z80c.bin
查看文件
+ 1
- 19
forth/forth.asm
查看文件
@@ -1505,27 +1505,9 @@ DIVMOD:
jp next
.db "OR"
.fill 5
.dw $-DIVMOD
.db 0
OR:
.dw nativeWord
pop hl
pop de
call chkPS
ld a, e
or l
ld l, a
ld a, d
or h
ld h, a
push hl
jp next
.db "XOR"
.fill 4
.dw $-
OR
.dw $-DIVMOD
.db 0
XOR:
.dw nativeWord
+ 1
- 0
forth/z80a.fs
查看文件
@@ -53,6 +53,7 @@
OR A,
;
0xa0 OP1r0 ANDr,
0xb0 OP1r0 ORr,
( qq -- also works for ss )
: OP1qq
+ 13
- 0
forth/z80c.fs
查看文件
@@ -84,6 +84,19 @@ CODE AND
HL PUSHqq,
;CODE
CODE OR
HL POPqq,
DE POPqq,
chkPS,
A E LDrr,
L ORr,
L A LDrr,
A D LDrr,
H ORr,
H A LDrr,
HL PUSHqq,
;CODE
CODE PC!
BC POPqq,
HL POPqq,
Write
Preview
Loading…
取消
儲存