Skip to content

Commit

Permalink
Use jamieleecho/coco-dev to build dsk images
Browse files Browse the repository at this point in the history
  • Loading branch information
Jamie Cho committed Apr 20, 2018
1 parent 6bf301d commit ed1bd88
Show file tree
Hide file tree
Showing 10 changed files with 57 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ cfg/*
*.s
*.map
*.link

.bash*
2 changes: 1 addition & 1 deletion Balloon/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
CFLAGS=-O2
CFLAGS=-O2 -I.
LDFLAGS=--org=0x3000 --limit=0x7fff
TARGET=Balloon.dsk
TARGET_BAS=$(TARGET:.dsk=.bas)
Expand Down
3 changes: 3 additions & 0 deletions Balloon/build
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env sh

docker run --rm --volume `pwd`/..:/root --workdir /root/Balloon jamieleecho/coco-dev:0.8 make "$@"
3 changes: 3 additions & 0 deletions Bouncy/build
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env sh

docker run --rm --volume `pwd`:/root --workdir /root jamieleecho/coco-dev:0.8 make "$@"
3 changes: 3 additions & 0 deletions Demo/build
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env sh

docker run --rm --volume `pwd`:/root --workdir /root jamieleecho/coco-dev:0.8 make "$@"
3 changes: 3 additions & 0 deletions Primes/build
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env sh

docker run --rm --volume `pwd`:/root --workdir /root jamieleecho/coco-dev:0.8 make "$@"
39 changes: 29 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,7 @@ revisit old Assembly and Basic programs that I wrote in the late 80s and early
90s before I had any formal software development training. More recently, I
used it to enhance CMOC's optimizer.


The following are required to compile this code on your Mac OS X system.
* [XCode](https://developer.apple.com/xcode/)
* [CMOC](http://perso.b2b2c.ca/~sarrazip/dev/cmoc.html)
* [lwtools](http://lwtools.projects.l-w.ca/)
* [ToolShed](http://sourceforge.net/projects/toolshed/)
* [MAME](https://github.com/mamedev/mame/)
* CoCo 3 ROMs



There are several folders which are described below.
* Ancient - Very old (from the 80s) assembly language programs
* Balloon - You are a ballon on a skateboard that must avoid a pin. This was my
Expand All @@ -39,3 +30,31 @@ graphics, background sounds and replaces joystick support with keyboard support.
It still does not implement double buffering - this results in visual "tearing"
that can be seen when the ball is in motion and artifacts when bitmaps are close
to each other.


## Requirements
The following are required to compile this code on your Mac OS X system.
* [XCode](https://developer.apple.com/xcode/)
* [Docker](http://www.docker.com)
* [MAME](https://github.com/mamedev/mame/) installed in ~/Applications/mame
* CoCo 3 ROMs installed in MAME


## Building and running
To build DSK files for each folder, type the following from the root folder:
```
./build
```

To clean everything:
```
./build clean
```

To build and run an individual demo:
```
cd <folder>
./build
make run
```

3 changes: 3 additions & 0 deletions Rick/build
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env sh

docker run --rm --volume `pwd`:/root --workdir /root jamieleecho/coco-dev:0.8 make "$@"
3 changes: 3 additions & 0 deletions Splinter/build
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env sh

docker run --rm --volume `pwd`:/root --workdir /root jamieleecho/coco-dev:0.8 make "$@"
8 changes: 8 additions & 0 deletions build
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/usr/bin/env sh

(cd Balloon && ./build "$@")
(cd Bouncy && ./build "$@")
(cd Demo && ./build "$@")
(cd Primes && ./build "$@")
(cd Rick && ./build "$@")
(cd Splinter && ./build "$@")

0 comments on commit ed1bd88

Please sign in to comment.