Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Specify apple2enh-asm.cfg config to avoid linker errors. #2

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,17 @@ clean:
rm -f $(PGM).lst

$(PGM):
@PATH=$(PATH):/usr/local/bin; $(CL65) -t apple2enh -l$(PGM).lst --start-addr $(ADDR) $(PGM).s
# First eject the mounted disk in S6D1, which (in some versions of Virtual II) also rewrites
# the .dsk image
osascript V2Eject.scpt $(PROJECT_DIR) $(PGM)
# Rebuild binary
@PATH=$(PATH):/usr/local/bin; $(CL65) -t apple2enh --config apple2enh-asm.cfg -l$(PGM).lst --start-addr $(ADDR) $(PGM).s
# Update the disk image
java -jar $(AC) -d $(PGM).dsk $(PGM)
java -jar $(AC) -p $(PGM).dsk $(PGM) BIN 0x$(ADDR) < $(PGM)
# Clean up for next time
rm -f $(PGM)
rm -f $(PGM).o
# Insert disk into S6D1, reset the machine and invoke -$(PGM) from prompt
osascript V2Make.scpt $(PROJECT_DIR) $(PGM)

Binary file added V2Eject.scpt
Binary file not shown.