瀏覽代碼

zasm: can now assemble zasm/directive.asm!

pull/10/head
Virgil Dupras 5 年之前
父節點
當前提交
723497af69
共有 2 個文件被更改,包括 7 次插入6 次删除
  1. +4
    -5
      apps/zasm/directive.asm
  2. +3
    -1
      tools/tests/zasm/test7.asm

+ 4
- 5
apps/zasm/directive.asm 查看文件

@@ -33,7 +33,8 @@ handleDB:
call enterDoubleQuotes
jr z, .stringLiteral
call parseExpr
ld a, ixl
push ix \ pop hl
ld a, l
call ioPutC
.stopStrLit:
call readComma
@@ -91,8 +92,7 @@ handleEQU:
call parseExpr
jr nz, .error
ld hl, DIREC_SCRATCHPAD
ld d, ixh
ld e, ixl
push ix \ pop de
call symRegister
jr .end
.error:
@@ -137,7 +137,6 @@ parseDirective:
ld de, directiveHandlers
call addDE
call intoDE
ld ixh, d
ld ixl, e
push de \ pop ix
pop de
jp (ix)

+ 3
- 1
tools/tests/zasm/test7.asm 查看文件

@@ -22,6 +22,8 @@
#include "zasm/parse.asm"
.equ TOK_RAMSTART SYM_RAMEND
#include "zasm/tok.asm"
.equ DIREC_RAMSTART TOK_RAMEND
#include "zasm/directive.asm"

zasmIsFirstPass:
nop
@@ -32,5 +34,5 @@ zasmIsLocalPass:
getInstID:
nop

getDirectiveID:
parseExpr:
nop

Loading…
取消
儲存