GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - Ho-Ro/z80-mbc2-emu: Z80-MBC2 emulator – this fork extends IOS to make it compatible to the CPM3 from https://github.com/Ho-Ro/Z80-MBC2 and the RAM extension (mostly made by SvenMb) – development happens in the default "devel" branch!

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

28 Commits
28 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
iLoad
iLoad
 
 
src
src
 
 
.gitignore
.gitignore
 
 
Cargo.lock
Cargo.lock
 
 
Cargo.toml
Cargo.toml
 
 
LICENSE
LICENSE
 
 
Makefile
Makefile
 
 
README.md
README.md
 
 
download.bat
download.bat
 
 
download.sh
download.sh
 
 
release.sh
release.sh
 
 

Repository files navigation

z80-mbc2-emu -- Z80-MBC2 emulator

What is this?

This is an emulator to run the ROM and disk images prepared for the Just4Fun's Z80-MBC2. The Z80-MBC2 is an easy to build Z80 single board computer with just 4 ICs. See Z80-MBC2: a 4 ICs homebrew Z80 computer. This emulator can be used to test the SD content on a Linux, MacOS or Windows computer.

What it does?

The emulator is based on the latest version of the Z80-MBC2 firmware. It can run Forth, CP/M 2.2, QP/M 2.71, CP/M 3.0, UCSD Pascal and Collapse OS.

Installation

Extract the latest zip for Linux, MacOS or Windows.

The Z80-MBC2 SD contents must be extraced to a directory named sd. You can run download.sh or download.bat to automatically download and extract the files from https://cdn.hackaday.io/files/1599736844284832/SD-S220718-R290823-v2.zip . You can update with the (zipped) CP/M3 images from https://github.com/Ho-Ro/Z80-MBC2:

  • A: (stable CPM3 system)
  • A: (experimental ZPM3 system)
  • N: (BIOS development disk)

Usage

To list the boot options available, execute z80-mbc2-emu without parameters:

$ ./z80-mbc2-emu
z80-mbc2-emu https://github.com/SvenMb/z80-mbc2-emu
Emulation of the Z80-MBC2-NG, https://github.com/Ho-Ro/Z80-MBC2

Press ^_^_ (double CTRL UNDERLINE) to return to host

Usage: z80-mbc2-emu IMAGE
  IMAGE can be:

    basic for Basic using sd/basic47.bin
    forth for Forth using sd/forth13.bin
    autoboot for Autoboot using sd/autoboot.bin
    cpm22 for CP/M 2.2 using sd/cpm22.bin
    qpm for QP/M 2.71 using sd/QPMLDR.BIN
    cpm3 for CP/M 3.0 using sd/CPMLDR.COM
    pascal for UCSD Pascal using sd/ucsdldr.bin
    collapse for Collapse OS using sd/cos.bin
    fuzix for Fuzix OS using sd/fuzix.bin

Download the images from https://cdn.hackaday.io/files/1599736844284832/S220718-R240620_IOS-Z80-MBC2.zip into the 'sd' directory.

To boot any of the available environments, execute z80_mbc2_emu with the code of the environment. For example:

$ ./z80-mbc2-emu cpm22
z80-mbc2-emu https://github.com/SvenMb/z80-mbc2-emu
Emulation of the Z80-MBC2-NG, https://github.com/Ho-Ro/Z80-MBC2

Press ^_^_ (double CTRL UNDERLINE) to return to host

Loading sd/cpm22.bin


Z80-MBC2 CP/M 2.2 BIOS - S030818-R120923
CP/M 2.2 Copyright 1979 (c) by Digital Research

A>DIR
A: ASCIART  BAS : ASM      COM : AUTOEXEC SUB : AUTOEXEC TXT
A: D        COM : DDT      COM : DUMP     COM : ED       COM
A: GENHEX   COM : GPELED   BAS : GPIO     BAS : HELLO    ASM
A: HELLO    COM : LOAD     COM : MAC      COM : MBASIC   COM
A: MBASIC85 COM : PEG      COM : PIP      COM : RTC      BAS
A: STARTREK BAS : STAT     COM : SUBMIT   COM : TREKINST BAS
A: USERLED  BAS : XMODEM   CFG : XMODEM   COM : XSUB     COM
A: ZDE16    COM : ZDENST16 COM
A>

How does it work?

The Z80-MBC2 has a clever design based on a Z80 and a memory IC, both controlled by an Atmega microcontroller. The Atmega is able to put bytes on the data bus and can inject content to the RAM IC by generating code on the fly. It can also respond to IN and OUT ports with 1 bit adressing. It uses that as the interface with the Z80 programs. Via this interface it provides services related with the serial ports, the SD card storage, the real time clock, the user led and button, and the GPIO.

This emulator emulates the Z80 and provides the same services given by the Atmega using the same IN and OUT ports. Instead of the serial port, it uses the terminal. Instead of the SD, it uses a directory named sd with the same contents.

TODO

  • User led, button and GPIO are not connected to anything
  • Save the printer output to a file
  • Tick based interrupts

About

Z80-MBC2 emulator – this fork extends IOS to make it compatible to the CPM3 from https://github.com/Ho-Ro/Z80-MBC2 and the RAM extension (mostly made by SvenMb) – development happens in the default "devel" branch!

Topics

collapse-oscpm22cpm3cpmplusemulatorqpmucsd-pascalz80z80-mbc2

Resources

Readme
GPL-3.0 license
Activity

Stars

1 star

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.