-
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.
Some build fixes, GW proto, own CP/M programs
- Loading branch information
Showing
13 changed files
with
190 additions
and
30 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,3 +11,4 @@ | |
/serial.raw | ||
/runme.bin | ||
/cpm.dsk | ||
/buildinfo_inc.asm |
This file was deleted.
Oops, something went wrong.
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
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,14 @@ | ||
# My own CP/M programs | ||
|
||
Beware: some/all of them only works with MEGA/80 as it uses the special | ||
MEGA65 gateway calls, to interact with the native code side of MEGA/80. | ||
|
||
## SHUTDOWN.COM | ||
|
||
After a confirmation question shuts down the system to get you at the | ||
MEGA65 BASIC prompt without the need of RESETing the a computer. | ||
|
||
## CPMVER.COM | ||
|
||
Gives information about the CP/M system and MEGA/80 | ||
|
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,98 @@ | ||
; **** fragments of this is from my old project in 2017, thus is a huge mess **** | ||
; Little CP/M utility to display CP/M version and | ||
; some information, to test my emulator. | ||
; [OLD-COMMENT Note: currently it's coded in an odd way, to] | ||
; [OLD-COMMENT bridge problems present in my 8080 emulator.] | ||
|
||
ORG 0x100 | ||
|
||
LD HL, (6) | ||
LD SP, HL | ||
PUSH HL | ||
|
||
LD A, 2 ; function 2: get info string into DMA | ||
CALL $FFFF | ||
LD HL,0x80 ; using the DMA | ||
CALL print_string | ||
|
||
|
||
LD HL,text1 | ||
CALL print_string | ||
|
||
POP HL | ||
CALL print_hex_word | ||
|
||
LD HL, text2 | ||
CALL print_string | ||
LD HL, (1) | ||
CALL print_hex_word | ||
|
||
LD HL,text3 | ||
CALL print_string | ||
|
||
LD C,12 ; BDOS function, get version number | ||
CALL 5 | ||
PUSH HL | ||
LD A,H | ||
CALL print_hex_byte | ||
|
||
LD HL,text4 | ||
CALL print_string | ||
POP HL | ||
LD A,L | ||
CALL print_hex_byte | ||
|
||
JP 0 ; WBOOT, end of program | ||
|
||
|
||
text1: DB 13,10,"BDOS at ",0 | ||
text2: DB ", BIOS at ",0 | ||
text3: DB ", CP/M system is ",0 | ||
text4: DB ", CP/M version is ",0 | ||
|
||
|
||
print_string: | ||
LD A,(HL) | ||
OR A | ||
RET Z | ||
INC HL | ||
CALL print_char | ||
JP print_string | ||
|
||
print_hex_word: | ||
PUSH HL | ||
LD A,H | ||
CALL print_hex_byte | ||
POP HL | ||
LD A,L | ||
print_hex_byte: | ||
PUSH AF | ||
RRCA | ||
RRCA | ||
RRCA | ||
RRCA | ||
CALL print_hex_nib | ||
POP AF | ||
print_hex_nib: | ||
AND 15 | ||
LD B,0 | ||
LD C,A | ||
LD HL,hextab | ||
ADD HL,BC | ||
LD A,(HL) | ||
print_char: | ||
PUSH AF | ||
PUSH BC | ||
PUSH DE | ||
PUSH HL | ||
LD E,A | ||
LD C,2 | ||
CALL 5 | ||
POP HL | ||
POP DE | ||
POP BC | ||
POP AF | ||
RET | ||
|
||
hextab: | ||
DB '0123456789ABCDEF' |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
.CODE | ||
|
||
|
||
.EXPORT build_info_str | ||
build_info_str: | ||
.INCLUDE "buildinfo_inc.asm" | ||
.BYTE 0 | ||
|
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 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 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