-
Notifications
You must be signed in to change notification settings - Fork 1
/
assemble.sh
executable file
·38 lines (32 loc) · 919 Bytes
/
assemble.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/bin/sh
#
# NOTE: This script must be run from the project root!
#
# The Apricos Assembler jar must be placed in the project root.
# It can be obtained from https://github.com/drdanick/apricosasm-java/releases
#
APRICOSASM_CMD="java -jar ${PWD}/apricosasm.jar"
PROJECT_ROOT=$PWD
BUILD_DIR="${PROJECT_ROOT}/build"
mkdir $BUILD_DIR
pushd src
$APRICOSASM_CMD -sh boot.asm && mv -f boot.bin $BUILD_DIR && mv -f symbols.sym $BUILD_DIR/boot.sym && mv -f hints.dbg $BUILD_DIR/boothints.dbg && \
$APRICOSASM_CMD -ldsh \
diskio.asm \
diskalloc.asm \
disp.asm \
faulthandler.asm \
memutil.asm \
osutil.asm \
s2boot.asm \
shell.asm \
shellcmds.asm \
shellmem.asm \
shellutil.asm \
osinit.asm \
math.asm \
fsdriver.asm \
fsmem.asm \
testprogram.asm \
&& mv -f link.bin ${BUILD_DIR}/0.dsk && mv -f symbols.sym $BUILD_DIR && mv -f hints.dbg $BUILD_DIR
popd