From 064f1b883ad831b9bb36b59cce917f87571403ee Mon Sep 17 00:00:00 2001 From: David Stancu Date: Sun, 14 Jan 2018 17:53:06 -0500 Subject: [PATCH] add basic hello world speaker click + assemble script --- README.md | 18 ++++++++++++++++++ assemble.sh | 3 +++ src/main.S | 10 ++++++++++ 3 files changed, 31 insertions(+) create mode 100755 assemble.sh create mode 100644 src/main.S diff --git a/README.md b/README.md index 570d2e8..e2311cb 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,20 @@ # pon-gs Apple IIgs simple pong game, with animation and sound. Written in 100% 658c16 assembly. + +## Getting Started + +### Requirements + +- Some *nix flavor. Please don't open issues if you are using Windows. +- GNU build tools (`autoconf`, `gcc`, etc.) +- Basic understanding of C/C++ build issues, since you'll likely face some. +- An Apple IIGS emulator of your flavor + the appropriate ROM (which you will have to source for yourself) + +### Building + +There are two scripts here which will get all the tools needed to assemble the game. + +```bash +./build_env.sh # to grab utils +./assemble.sh # to assemble the game +``` \ No newline at end of file diff --git a/assemble.sh b/assemble.sh new file mode 100755 index 0000000..54221bc --- /dev/null +++ b/assemble.sh @@ -0,0 +1,3 @@ +#!/usr/bin/env bash +ls src/*.S | xargs ./bin/cadius INDENTFILE +ls src/*.S | xargs ./bin/merlin -V ./src/macro diff --git a/src/main.S b/src/main.S new file mode 100644 index 0000000..9fc1fe8 --- /dev/null +++ b/src/main.S @@ -0,0 +1,10 @@ +SPEAKER EQU $E0C030 + +PONGENTRY EQU $2000 + ORG PONGENTRY +beep LDA SPEAKER + RTL + END + + +