Skip to content

Commit 661bfe8

Browse files
committed
Started working on Simulator
Still have compile errors. Also added code from sbc09 project
1 parent 4b59e1f commit 661bfe8

40 files changed

+22027
-1
lines changed

mac/6809.xcodeproj/project.pbxproj

+6
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
objects = {
88

99
/* Begin PBXBuildFile section */
10+
49065D022BD6C70400E27819 /* MC6809.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 49065D002BD6C70400E27819 /* MC6809.cpp */; };
1011
495775792BD5BF5E00755E8A /* as9.c in Sources */ = {isa = PBXBuildFile; fileRef = 495775592BD5BE4400755E8A /* as9.c */; };
1112
/* End PBXBuildFile section */
1213

@@ -35,6 +36,8 @@
3536
49065CFD2BD5D3E400E27819 /* assist09.asm */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.asm.asm; name = assist09.asm; path = ../test/assist09.asm; sourceTree = "<group>"; };
3637
49065CFE2BD5D3E400E27819 /* forth9.asm */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.asm.asm; name = forth9.asm; path = ../test/forth9.asm; sourceTree = "<group>"; };
3738
49065CFF2BD5DADA00E27819 /* HelloWorld.asm */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.asm.asm; name = HelloWorld.asm; path = ../test/HelloWorld.asm; sourceTree = "<group>"; };
39+
49065D002BD6C70400E27819 /* MC6809.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; name = MC6809.cpp; path = ../sim/MC6809.cpp; sourceTree = "<group>"; };
40+
49065D012BD6C70400E27819 /* MC6809.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = MC6809.h; path = ../sim/MC6809.h; sourceTree = "<group>"; };
3841
495775542BD5BE4400755E8A /* as9n.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = as9n.c; path = ../as9/as9n.c; sourceTree = "<group>"; };
3942
495775552BD5BE4400755E8A /* output.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = output.c; path = ../as9/output.c; sourceTree = "<group>"; };
4043
495775562BD5BE4400755E8A /* pseudo.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = pseudo.c; path = ../as9/pseudo.c; sourceTree = "<group>"; };
@@ -124,6 +127,8 @@
124127
495775532BD5BE2500755E8A /* sim */ = {
125128
isa = PBXGroup;
126129
children = (
130+
49065D002BD6C70400E27819 /* MC6809.cpp */,
131+
49065D012BD6C70400E27819 /* MC6809.h */,
127132
);
128133
name = sim;
129134
sourceTree = "<group>";
@@ -214,6 +219,7 @@
214219
isa = PBXSourcesBuildPhase;
215220
buildActionMask = 2147483647;
216221
files = (
222+
49065D022BD6C70400E27819 /* MC6809.cpp in Sources */,
217223
);
218224
runOnlyForDeploymentPostprocessing = 0;
219225
};

mac/6809.xcodeproj/xcshareddata/xcschemes/as9.xcscheme

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
</BuildableProductRunnable>
5454
<CommandLineArguments>
5555
<CommandLineArgument
56-
argument = "c.asm -l c s bin s19 cre now"
56+
argument = "basic.asm -l c s bin s19 cre now"
5757
isEnabled = "YES">
5858
</CommandLineArgument>
5959
</CommandLineArguments>

sbc09/COPYING

+339
Large diffs are not rendered by default.

sbc09/Makefile

+48
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
2+
CC=gcc
3+
CFLAGS= -O1
4+
V09FLAGS= -DUSE_TERMIOS #-DBIG_ENDIAN
5+
6+
all: a09 v09 v09.rom examples
7+
8+
a09: a09.c
9+
$(CC) -o a09 $(CFLAGS) a09.c
10+
11+
v09: v09.o engine.o io.o
12+
$(CC) -o v09 $(CFLAGS) v09.o engine.o io.o
13+
14+
v09.o: v09.c v09.h
15+
$(CC) -c $(CFLAGS) $(V09FLAGS) v09.c
16+
17+
engine.o: engine.c v09.h
18+
$(CC) -c $(CFLAGS) $(V09FLAGS) engine.c
19+
20+
io.o: io.c v09.h
21+
$(CC) -c $(CFLAGS) $(V09FLAGS) io.c
22+
23+
v09.rom: makerom monitor.s
24+
./makerom <monitor.s
25+
26+
monitor.s: monitor.asm
27+
./a09 -s monitor.s -l monitor.lst monitor.asm
28+
29+
makerom: makerom.c
30+
$(CC) -o makerom makerom.c
31+
32+
examples: test09 bench09 basic bin2dec asmtest
33+
34+
test09: test09.asm
35+
./a09 -l test09.lst test09.asm
36+
37+
bench09: bench09.asm
38+
./a09 -l bench09.lst bench09.asm
39+
40+
basic: basic.asm
41+
./a09 -l basic.lst basic.asm
42+
43+
bin2dec: bin2dec.asm
44+
./a09 -l bin2dec.lst bin2dec.asm
45+
46+
asmtest: asmtest.asm
47+
./a09 -l asmtest.lst asmtest.asm
48+

sbc09/README

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
This is an unfinished. but working version of the 6809 assewmbler. simulator
2+
and software. It is released under the GPL
3+
It runs under several versions of Unix. Docs are in LaTeX format (sbc09.tex) and
4+
in ASCI (README.doc)
5+
6+
mon2.asm is an alternative version of the monitor program.
7+
8+
alt09.rom is a version of the ROM that contains the alternative monitor and
9+
Forth. Forth is transferrred to RAM by a small loader.
10+
To start Forth type G8000. To start it again, type G400.
11+
12+
Yes, you can run TETRIS from the Forth included with this simulator.
13+

0 commit comments

Comments
 (0)