Browse Source

zasm: move zasm.asm to instr.asm and create main.asm

instr.asm is for single instruction assembly.
pull/10/head
Virgil Dupras 5 years ago
parent
commit
2653826dff
2 changed files with 1 additions and 15 deletions
  1. +1
    -1
      apps/zasm/emul/Makefile
  2. +0
    -14
      apps/zasm/instr.asm

+ 1
- 1
apps/zasm/emul/Makefile View File

@@ -8,5 +8,5 @@ libz80/libz80.o: libz80/z80.c
kernel.h: glue.asm
scas -o - -I ../../../parts/z80 $< | ./bin2c.sh KERNEL | tee $@ > /dev/null

zasm.h: ../zasm.asm ../tok.asm
zasm.h: ../main.asm ../instr.asm ../tok.asm
scas -o - -I.. $< | ./bin2c.sh ZASM | tee $@ > /dev/null

apps/zasm/zasm.asm → apps/zasm/instr.asm View File

@@ -1,5 +1,3 @@
#include "user.inc"

; *** Consts ***
; Number of rows in the argspec table
ARGSPEC_TBL_CNT .equ 31
@@ -8,18 +6,6 @@ INSTR_TBL_CNT .equ 135
; size in bytes of each row in the primary instructions table
INSTR_TBL_ROWSIZE .equ 9

; *** Code ***
.org USER_CODE

call parseLine
ld b, 0
ld c, a ; written bytes
ld hl, curUpcode
call copy
ret

#include "tok.asm"

; run RLA the number of times specified in B
rlaX:
; first, see if B == 0 to see if we need to bail out

Loading…
Cancel
Save