使用 JavaScript能使本网站更好的工作。
首页
探索
lain.church
帮助
注册
登录
izaya
/
collapseos
镜像自地址
https://github.com/hsoft/collapseos.git
关注
1
点赞
1
派生
0
代码
工单
0
版本发布
0
百科
动态
浏览代码
zasm: implement error conditions in .dw
pull/10/head
Virgil Dupras
5 年前
父节点
f5d4321ece
当前提交
436ff51c39
共有
2 个文件被更改
,包括
13 次插入
和
0 次删除
分列视图
Diff 选项
显示统计
下载 Patch 文件
下载 Diff 文件
+11
-0
apps/zasm/directive.asm
+2
-0
tools/tests/zasm/errtests.sh
+ 11
- 0
apps/zasm/directive.asm
查看文件
@@ -79,8 +79,10 @@ handleDW:
push hl
.loop:
call readWord
jr nz, .badfmt
ld hl, scratchpad
call parseExpr
jr nz, .badarg
push ix \ pop hl
ld a, l
call ioPutC
@@ -91,6 +93,15 @@ handleDW:
cp a ; ensure Z
pop hl
ret
.badfmt:
ld a, ERR_BAD_FMT
jr .error
.badarg:
ld a, ERR_BAD_ARG
.error:
call unsetZ
pop hl
ret
handleEQU:
push hl
+ 2
- 0
tools/tests/zasm/errtests.sh
查看文件
@@ -20,8 +20,10 @@ chkerr "foo" 1
chkerr "ld a, foo" 2
chkerr "ld a, hl" 2
chkerr ".db foo" 2
chkerr ".dw foo" 2
chkerr "ld a," 3
chkerr "ld a, 'A" 3
chkerr ".db 0x42," 3
chkerr ".dw 0x4242," 3
chkerr "ld a, 0x100" 4
chkerr ".db 0x100" 4
撰写
预览
正在加载...
取消
保存