mirror of
https://github.com/hsoft/collapseos.git
synced 2024-12-25 16:48:06 +11:00
zasm: move zasm.asm to instr.asm and create main.asm
instr.asm is for single instruction assembly.
This commit is contained in:
parent
175e1328e7
commit
2653826dff
@ -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
|
||||
|
@ -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…
Reference in New Issue
Block a user