Skip to content

Commit

Permalink
clean build and demo.
Browse files Browse the repository at this point in the history
  • Loading branch information
cm68 committed Sep 26, 2020
1 parent e0448a3 commit 3a89051
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 9 deletions.
17 changes: 10 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,23 +1,26 @@
#
# this is just a top-level makefile to build the simulator
#
all:

all: src/usersim/sim

src/usersim/sim src/tools/readall:
cd src ; make

test: src/usersim/sim
cd src/usersim ; ./sim
test: filesystem src/usersim/sim
src/usersim/sim

unpack:
cd src/tools; make
filesystem: src/tools/readall
for i in disks/*.image ; do src/tools/readall -d filesystem $$i ; done
cp -r src/kernel filesystem/usr/src/sys

clean:
for dir in usersim tools src/sgs src/fstools ; do \
for dir in src ; do \
(cd $$dir ; make clean) \
done

clobber:
for dir in usersim tools src/sgs src/fstools ; do \
for dir in src ; do \
(cd $$dir ; make clobber) \
done
rm -rf filesystem
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,23 @@ for a blast from the past, type:
make test

you now are running micronix 1.4 shell and can do a lot
including:

cd /usr/src/sys
make

or, for a quite strange experience,

src/usersim/sim bin/man sh | less

(run the simulated z80 micronix man program on sh, and pipe it to linux less)

---------------------

this document is obsolete, as I've changed the directory structure radically,
with source code in src, and almost every work in progress thing moved to
./extra

Morrow Designs Micronix and tools

directories:
Expand Down
12 changes: 12 additions & 0 deletions src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,15 @@ all:
for i in $(DIRS) ; do \
(cd $$i ; make ) ; \
done

clean:
for i in $(DIRS) ; do \
(cd $$i ; make clean ) ; \
done

clobber:
for i in $(DIRS) ; do \
(cd $$i ; make clobber ) ; \
done


2 changes: 1 addition & 1 deletion src/usersim/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
INCLUDE = -I../../include -I../include
INCLUDE = -I../include -I../kernel

OBJECTS = z80emu.o micronix.o
TARGETS = sim
Expand Down
2 changes: 1 addition & 1 deletion src/usersim/micronix.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ typedef unsigned short UINT;
static int do_exec(char *name, char **argv);
static void emulate();

#define DEFROOT "../../filesystem"
#define DEFROOT "filesystem"

int savemode;
int debug_terminal;
Expand Down

0 comments on commit 3a89051

Please sign in to comment.