mirror of
https://github.com/a2stuff/prodos-drivers.git
synced 2024-06-10 09:29:30 +00:00
Split out quit.system
This commit is contained in:
parent
0f41276584
commit
d10429b3a0
2
Makefile
2
Makefile
|
@ -1,4 +1,4 @@
|
||||||
targets := ns.clock cricket bbb ram.drv
|
targets := ns.clock cricket bbb ram.drv quit
|
||||||
|
|
||||||
.PHONY: all $(targets)
|
.PHONY: all $(targets)
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
CAFLAGS = --target apple2enh --list-bytes 0
|
CAFLAGS = --target apple2enh --list-bytes 0
|
||||||
LDFLAGS = --config apple2-asm.cfg
|
LDFLAGS = --config apple2-asm.cfg
|
||||||
|
|
||||||
TARGETS = bye.system.SYS buhbye.system.SYS quit.system.SYS
|
TARGETS = bye.system.SYS buhbye.system.SYS
|
||||||
|
|
||||||
# For timestamps
|
# For timestamps
|
||||||
MM = $(shell date "+%-m")
|
MM = $(shell date "+%-m")
|
||||||
|
|
|
@ -60,8 +60,3 @@ next file starting with 'C').
|
||||||
|
|
||||||
There are a few spare bytes to play with and more can be squeezed
|
There are a few spare bytes to play with and more can be squeezed
|
||||||
out, so perhaps further improvements can be made.
|
out, so perhaps further improvements can be made.
|
||||||
|
|
||||||
## QUIT.SYSTEM
|
|
||||||
|
|
||||||
This just invokes the ProDOS quit handler immediately. It can
|
|
||||||
be used as the last in a chain of "driver" installers.
|
|
||||||
|
|
27
quit/Makefile
Normal file
27
quit/Makefile
Normal file
|
@ -0,0 +1,27 @@
|
||||||
|
|
||||||
|
CAFLAGS = --target apple2enh --list-bytes 0
|
||||||
|
LDFLAGS = --config apple2-asm.cfg
|
||||||
|
|
||||||
|
TARGETS = quit.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: $(TARGETS)
|
||||||
|
|
||||||
|
HEADERS = $(wildcard *.inc) $(wildcard ../inc/*.inc)
|
||||||
|
|
||||||
|
clean:
|
||||||
|
rm -f *.o
|
||||||
|
rm -f $(TARGETS)
|
||||||
|
|
||||||
|
%.o: %.s $(HEADERS)
|
||||||
|
ca65 $(CAFLAGS) $(DEFINES) --listing $(basename $@).list -o $@ $<
|
||||||
|
|
||||||
|
%.SYS: %.o
|
||||||
|
ld65 $(LDFLAGS) -o $@ $<
|
||||||
|
xattr -wx prodos.AuxType '00 20' $@
|
4
quit/README.md
Normal file
4
quit/README.md
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
|
||||||
|
## QUIT.SYSTEM
|
||||||
|
|
||||||
|
This just invokes the ProDOS quit handler immediately. It can be used as the last in a chain of "driver" installers to invoke the program selector (e.g. [Bitsy Bye](https://prodos8.com/bitsy-bye/), [Bird's Better Bye](../bbb), etc)
|
|
@ -1,17 +1,11 @@
|
||||||
|
|
||||||
.setcpu "6502"
|
.setcpu "6502"
|
||||||
.include "apple2.inc"
|
.include "apple2.inc"
|
||||||
.include "prodos.inc"
|
|
||||||
|
|
||||||
.org $2000
|
.include "../inc/apple2.inc"
|
||||||
|
.include "../inc/prodos.inc"
|
||||||
|
|
||||||
CLR80VID := $C00C
|
.org SYS_ADDR
|
||||||
ROMIN2 := $C082
|
|
||||||
SETVID := $FE93
|
|
||||||
SETKBD := $FE89
|
|
||||||
INIT := $FB2F
|
|
||||||
HOME := $FC58
|
|
||||||
SETNORM := $FE84
|
|
||||||
|
|
||||||
cld
|
cld
|
||||||
bit ROMIN2
|
bit ROMIN2
|
||||||
|
@ -27,9 +21,4 @@ SETNORM := $FE84
|
||||||
MLI_CALL QUIT, quit_params
|
MLI_CALL QUIT, quit_params
|
||||||
brk
|
brk
|
||||||
|
|
||||||
quit_params:
|
DEFINE_QUIT_PARAMS quit_params
|
||||||
.byte 4
|
|
||||||
.byte 0
|
|
||||||
.word 0
|
|
||||||
.byte 0
|
|
||||||
.word 0
|
|
Loading…
Reference in New Issue
Block a user