diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..5650818 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,11 @@ +sudo: enabled +os: osx +language: c + +install: +- git clone https://github.com/cc65/cc65 /tmp/cc65 && + sudo make -C /tmp/cc65 ca65 ld65 avail && + ca65 --version + +script: + - make diff --git a/Makefile b/Makefile index 5a706ba..e6db890 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,6 @@ -CC65 = ~/dev/cc65/bin CAFLAGS = --target apple2enh --list-bytes 0 -CCFLAGS = --config apple2-asm.cfg +LDFLAGS = --config apple2-asm.cfg OUTDIR = out @@ -23,11 +22,11 @@ clean: $(OUTDIR)/%.o: %.s $(HEADERS) - $(CC65)/ca65 $(CAFLAGS) $(DEFINES) --listing $(basename $@).list -o $@ $< + ca65 $(CAFLAGS) $(DEFINES) --listing $(basename $@).list -o $@ $< $(OUTDIR)/%.BIN $(OUTDIR)/%.SYS: $(OUTDIR)/%.o - $(CC65)/ld65 $(CCFLAGS) -o $@ $< + ld65 $(LDFLAGS) -o $@ $< xattr -wx prodos.AuxType '00 20' $@ $(OUTDIR)/%.CMD: $(OUTDIR)/%.cmd.o - $(CC65)/ld65 $(CCFLAGS) -o $@ $< + ld65 $(LDFLAGS) -o $@ $< diff --git a/path.s b/path.s index 74a40bd..ea82bf8 100644 --- a/path.s +++ b/path.s @@ -342,7 +342,7 @@ notok: dey bne compose ; no such file - try next path directory ;; Check to see if type is CMD. -: lda FIFILID + lda FIFILID cmp #$F0 ; CMD bne compose ; wrong type - try next path directory