-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add MEGA65 special GW and sample shutdown.com code using it
- Loading branch information
Showing
10 changed files
with
229 additions
and
84 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
/*.com2 | ||
/*.sym | ||
/*.map | ||
/*.lst |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
ASM80 = sjasmplus --nologo --msg=war --i8080 --fullpath --color=auto | ||
|
||
SOURCES = $(shell ls *.asm) | ||
#INCLUDES = $(shell ls *.inc) | ||
INCLUDES = | ||
PROGRAMS = $(SOURCES:.asm=.com) | ||
|
||
|
||
all: $(PROGRAMS) | ||
|
||
|
||
%.com: %.asm Makefile $(INCLUDES) | ||
@echo "----[ Assembling CP/M app $< --> $@ ]----" | ||
rm -f $@ $(@)2 | ||
$(ASM80) --raw=$(@)2 $< | ||
mv $(@)2 $@ | ||
|
||
clean: | ||
rm -f *.com *.com2 *.sym *.lst *.map | ||
|
||
.PHONY: all clean |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
ORG $100 | ||
|
||
; BDOS function to display a '$' terminated string | ||
LD C,9 | ||
LD DE, msg | ||
CALL 5 | ||
|
||
; BDOS function to get a character | ||
LD C,1 | ||
CALL 5 | ||
CP A,'y' | ||
JP Z, shutdown | ||
CP A,'Y' | ||
JP Z, shutdown | ||
|
||
JP 0 | ||
|
||
shutdown: | ||
XOR A ; Set A to zero for MEGA-GW function 0: shutdown, in this case no further parameter is needed | ||
JP $FFFF | ||
|
||
|
||
msg: DB "Press Y to confirm MEGA/80 CP/M shutdown (FS changes - if any - will be lost) $" |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.