1
0
mirror of https://github.com/hsoft/collapseos.git synced 2024-11-17 06:18:06 +11:00

Make apps folder into a namespace

To straighten out includes and to pave the way into zasm being part of
the same "include CFS" as parts, we make zasm includes namespaced.
This commit is contained in:
Virgil Dupras 2019-05-17 20:22:32 -04:00
parent 93e40aeb09
commit 28d5ebdc8a
9 changed files with 21 additions and 21 deletions

View File

@ -54,17 +54,17 @@
; *** Code ***
jp zasmMain
#include "util_z.asm"
#include "zasm/util.asm"
.equ IO_RAMSTART ZASM_RAMEND
#include "io.asm"
#include "tok.asm"
#include "parse_z.asm"
#include "expr.asm"
#include "instr.asm"
#include "zasm/io.asm"
#include "zasm/tok.asm"
#include "zasm/parse.asm"
#include "zasm/expr.asm"
#include "zasm/instr.asm"
.equ DIREC_RAMSTART IO_RAMEND
#include "directive.asm"
#include "zasm/directive.asm"
.equ SYM_RAMSTART DIREC_RAMEND
#include "symbol.asm"
#include "zasm/symbol.asm"
; Read file through blockdev ID in H and outputs its upcodes through blockdev
; ID in L.

View File

@ -12,11 +12,11 @@ $(KERNEL_HEADERS):
scas -o - -I ../../parts/z80 $< | ./bin2c.sh KERNEL | tee $@ > /dev/null
zasm/user.h: zasm/user.asm
scas -o - -I ../../apps/zasm $< | ./bin2c.sh USERSPACE | tee $@ > /dev/null
scas -o - -I ../../apps $< | ./bin2c.sh USERSPACE | tee $@ > /dev/null
zasm/includes.cfs: ../../parts/z80 $(CFSPACK)
cp -rf $< zasm/includes
rm zasm/includes/README.md
find zasm/includes -name *.md -delete
find zasm/includes -type f -exec sed -i -e 's/;.*//g' {} \;
$(CFSPACK) zasm/includes > $@
rm -rf zasm/includes

View File

@ -25,7 +25,7 @@ fsTell .equ 0x2d
;call dumpSymTable
ret
#include "main.asm"
#include "zasm/main.asm"
; *** Debug ***
debugPrint:

View File

@ -5,12 +5,12 @@ set -o pipefail
SCAS=scas
PARTS=../../../parts/z80
ZASMDIR=../../../apps/zasm
APPS=../../../apps
RUNBIN=../../emul/runbin/runbin
for fn in *.asm; do
echo "Running test ${fn}"
if ! ${SCAS} -I ${PARTS} -I ${ZASMDIR} -o - ${fn} | ${RUNBIN}; then
if ! ${SCAS} -I ${PARTS} -I ${APPS} -o - ${fn} | ${RUNBIN}; then
echo "failed with code ${PIPESTATUS[1]}"
exit 1
fi

View File

@ -3,11 +3,11 @@ jp test
#include "core.asm"
#include "parse.asm"
#include "util_z.asm"
#include "parse_z.asm"
#include "zasm/util.asm"
#include "zasm/parse.asm"
.equ SYM_RAMSTART RAMSTART
#include "symbol.asm"
#include "expr.asm"
#include "zasm/symbol.asm"
#include "zasm/expr.asm"
; Pretend that we aren't in first pass
zasmIsFirstPass:

View File

@ -2,8 +2,8 @@ jp test
#include "core.asm"
#include "parse.asm"
#include "util_z.asm"
#include "parse_z.asm"
#include "zasm/util.asm"
#include "zasm/parse.asm"
; mocks. aren't used in tests
zasmIsFirstPass:

View File

@ -2,9 +2,9 @@
jp test
#include "core.asm"
#include "util_z.asm"
#include "zasm/util.asm"
.equ SYM_RAMSTART RAMSTART
#include "symbol.asm"
#include "zasm/symbol.asm"
testNum: .db 1