This commit is contained in:
Joshua Bell 2019-04-20 15:54:40 -07:00
commit a83025906d
4 changed files with 1270 additions and 0 deletions

35
Makefile Normal file
View File

@ -0,0 +1,35 @@
CC65 = ~/dev/cc65/bin
CAFLAGS = --target apple2enh --list-bytes 0
CCFLAGS = --config apple2-asm.cfg
OUTDIR = out
TARGETS = \
$(OUTDIR)/clock.system.SYS
# For timestamps
MM = $(shell date "+%m")
DD = $(shell date "+%d")
YY = $(shell date "+%y")
DEFINES = -D DD=$(DD) -D MM=$(MM) -D YY=$(YY)
.PHONY: clean all
all: $(OUTDIR) $(TARGETS)
$(OUTDIR):
mkdir -p $(OUTDIR)
HEADERS = $(wildcard *.inc)
clean:
rm -f $(OUTDIR)/*.o
rm -f $(OUTDIR)/*.list
rm -f $(OUTDIR)/$(TARGETS)
$(OUTDIR)/%.o: %.s $(HEADERS)
$(CC65)/ca65 $(CAFLAGS) $(DEFINES) --listing $(basename $@).list -o $@ $<
$(OUTDIR)/%.BIN $(OUTDIR)/%.SYS: $(OUTDIR)/%.o
$(CC65)/ld65 $(CCFLAGS) -o $@ $<
xattr -wx prodos.AuxType '00 20' $@

1227
clock.system.s Normal file

File diff suppressed because it is too large Load Diff

8
da.info Normal file
View File

@ -0,0 +1,8 @@
GLOBAL {
OUTPUTNAME "clock.system.s";
INPUTNAME "orig/CLOCK.SYSTEM.SYS";
STARTADDR $2000;
CPU "6502";
};
RANGE { START $2000; END $FFFF; TYPE Code; };

BIN
orig/CLOCK.SYSTEM.SYS Normal file

Binary file not shown.