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

merge Dev #455

Merged
merged 2 commits into from
Sep 20, 2024
Merged
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
5 changes: 4 additions & 1 deletion cpmtools/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# CP/M tools
TOOLS = r.com w.com bye.com reset.com sw8080.com swz80.com memmap.com \
TOOLS = r.com w.com bye.com reset.com sw8080.com swz80.com cpu.com memmap.com \
survey.com

# CPU tests by various authors, modified for using the CPU switch feature
Expand Down Expand Up @@ -29,6 +29,9 @@ sw8080.com: sw8080.asm $(Z80ASM)
swz80.com: swz80.asm $(Z80ASM)
$(Z80ASM) $(Z80ASMFLAGS) -8 -fb -o$@ $<

cpu.com: cpu.asm $(Z80ASM)
$(Z80ASM) $(Z80ASMFLAGS) -8 -fb -o$@ $<

survey.com: survey.mac $(Z80ASM)
$(Z80ASM) $(Z80ASMFLAGS) -fb -e20 -o$@ $<

Expand Down
1 change: 1 addition & 0 deletions cpmtools/README
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ bye.asm Shutdown z80pack systems via hardware control port
reset.asm Reset z80pack systems via hardware control port
sw8080.asm Switch to 8080 mode
swz80.asm Switch to Z80 mode
cpu.asm Reports the CPU

survey.mac shows system survey with memory map, ports used and so on
memmap.asm shows memory map
Expand Down
16 changes: 16 additions & 0 deletions cpmtools/cpu.asm
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
ORG 0100H

MVI A,88
SUB A
JPE IS8080
LXI D,Z80TXT
JMP PRINT
IS8080: LXI D,I80TXT
PRINT: MVI C,9
CALL 5
RET

Z80TXT: DB 'This is a Zilog Z80 CPU$'
I80TXT: DB 'This is a Intel 8080 CPU$'

END
Binary file modified picosim/disks/cpm22.dsk
Binary file not shown.
Binary file modified picosim/disks/cpm3-2.dsk
Binary file not shown.