Mirror of CollapseOS
Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.
Virgil Dupras d1718a90c7 sms: add support for VDP's text mode vor 3 Jahren
..
.gitignore emul/z80: flatten directory structure vor 3 Jahren
Makefile emul/z80: extract tms9918 unit from sms_vdp vor 3 Jahren
README.md emul+cvm: link to curses instead of ncurses vor 3 Jahren
acia.c emul/z80: flatten directory structure vor 3 Jahren
acia.h emul/z80: flatten directory structure vor 3 Jahren
emul.c Move /emul to /emul/z80 vor 3 Jahren
emul.h emul/z80: decouple SDC and SPI vor 3 Jahren
forth.c Move /emul to /emul/z80 vor 3 Jahren
opcodes_decl.h Move /emul to /emul/z80 vor 3 Jahren
opcodes_impl.c Move /emul to /emul/z80 vor 3 Jahren
opcodes_table.h Move /emul to /emul/z80 vor 3 Jahren
ps2_kbd.c emul/z80: flatten directory structure vor 3 Jahren
ps2_kbd.h emul/z80: flatten directory structure vor 3 Jahren
rc2014.c emul/z80: decouple SDC and SPI vor 3 Jahren
rc2014_spi.c emul/z80: decouple SDC and SPI vor 3 Jahren
rc2014_spi.h emul/z80: decouple SDC and SPI vor 3 Jahren
sdc.c emul/z80: decouple SDC and SPI vor 3 Jahren
sdc.h emul/z80: decouple SDC and SPI vor 3 Jahren
sio.c emul/z80: flatten directory structure vor 3 Jahren
sio.h emul/z80: flatten directory structure vor 3 Jahren
sms.c sms: add support for VDP's text mode vor 3 Jahren
sms_pad.c emul/z80: flatten directory structure vor 3 Jahren
sms_pad.h emul/z80: flatten directory structure vor 3 Jahren
sms_ports.c sms: CPORT_CTL is write-only! vor 3 Jahren
sms_ports.h sms: CPORT_CTL is write-only! vor 3 Jahren
sms_spi.c emul/z80/sms: add SPI exchange through controller port vor 3 Jahren
sms_spi.h emul/z80/sms: add SPI exchange through controller port vor 3 Jahren
sms_vdp.c sms: add support for VDP's text mode vor 3 Jahren
sms_vdp.h sms: add support for VDP's text mode vor 3 Jahren
t6a04.c emul/z80: flatten directory structure vor 3 Jahren
t6a04.h emul/z80: flatten directory structure vor 3 Jahren
ti84.c emul/z80: flatten directory structure vor 3 Jahren
ti84_kbd.c emul/z80: flatten directory structure vor 3 Jahren
ti84_kbd.h emul/z80: flatten directory structure vor 3 Jahren
tms9918.c sms: add support for VDP's text mode vor 3 Jahren
tms9918.h sms: add support for VDP's text mode vor 3 Jahren
xcomp.fs Move most of the high layer of comp core into the low one vor 3 Jahren
z80.c Move /emul to /emul/z80 vor 3 Jahren
z80.h Move /emul to /emul/z80 vor 3 Jahren

README.md

Z80 emulation

This folder contains a couple of tools running under the [libz80][libz80] emulator.

Requirements

You need curses to build the forth executable.

For sms and ti84 emulators, you need XCB and pkg-config.

Build

Running make builds all targets described below

Vanilla Forth

The ./forth executable here works like the one in /cvm, except that it runs under an emulated z80 machine instead of running natively. Refer to /cvm/README.md for details.

./forth doesn't try to emulate real hardware because the goal here is to facilitate “high level” development.

These apps run on imaginary hardware and use many cheats to simplify I/Os.

RC2014 emulation

This emulates a RC2014 classic with 8K of ROM, 32K of RAM and an ACIA hooked to stdin/stdout.

Run ./rc2014 /path/to/rom (for example, os.bin from RC2014's recipe). Serial I/O is hooked to stdin/stdout. CTRL+D to quit.

There are 2 options. -s replaces the ACIA with a Zilog SIO and -c/path/to/image hooks up a SD card with specified contents.

You can press CTRL+E to dump the whole 64K of memory into memdump.

Sega Master System emulator

This emulates a Sega Master system with a monochrome screen and a Genesis pad hooked to port A.

Launch the emulator with ./sms /path/to/rom (you can use the binary from the sms recipe.

This will show a window with the screen's content on it. The mappings to the pad are:

  • W --> Up
  • A --> Left
  • S --> Down
  • D --> Right
  • H --> A
  • J --> B
  • K --> C
  • L --> Start

If your ROM is configured with PS/2 keyboard input, run this emulator with the -k flag to replace SMS pad emulation with keyboard emulation.

The -c option connects a SD card in the same way as the RC2014 emulator.

In both cases (pad or keyboard), only port A emulation is supported.

Press ESC to quit.

TI-84

This emulates a TI-84+ with its screen and keyboard. This is suitable for running the ti84 recipe.

Launch the emulator with ./ti84 /path/to/rom (you can use the binary from the ti84 recipe. Use the small one, not the one having been filled to 1MB).

This will show a window with the LCD screen's content on it. Most applications, upon boot, halt after initialization and stay halted until the ON key is pressed. The ON key is mapped to the tilde (~) key.

Press ESC to quit.

As for the rest of the mappings, they map at the key level. For example, the ‘Y’ key maps to ‘1’ (which yields ‘y’ when in alpha mode). Therefore, ‘1’ and ‘Y’ map to the same calculator key. Backspace maps to DEL.

Left Shift maps to 2nd. Left Ctrl maps to Alpha. [libz80]: https://github.com/ggambetta/libz80