diff --git a/README.md b/README.md index f88603d..0e580b5 100644 --- a/README.md +++ b/README.md @@ -10,19 +10,21 @@ Sample Applications - [Space Invaders](https://github.com/jscrane/invaders) - [Pacman](https://github.com/jscrane/pacman) - [Commodore PET](https://github.com/jscrane/PET) -- [Compukit UK101](https://github.com/jscrane/UK101) +- [Compukit UK101](https://github.com/jscrane/UK101) and [MicroUK101](https://github.com/jscrane/UK101) - [Commodore Chessmate](https://github.com/jscrane/Chessmate) Configuration for Arduino -------------- -If building using the Arduino IDE, `r65emu/hw/user.h` must be configured correctly. +If building using the Arduino IDE, `r65emu/src/hw/user.h` must be configured correctly. Currently the only mass-produced board which is supported is the [LilyGO TTGO](https://www.tinytronics.nl/shop/en/development-boards/microcontroller-boards/with-wi-fi/lilygo-ttgo-vga32-esp32). Examples are also given for a generic `node32s` board and a homebrew `esp8bit` board. -Copy your configuration file to `user.h`. If the board is also mass-produced, please open a PR to add the new file to the library. +Copy your configuration file to `user.h`. If the board is also mass-produced, please open a +[PR](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/about-pull-requests) +to add the new file to the library. Some emulations require a filesystem image containing programs to be uploaded: - On esp32, this [arduino plugin](https://github.com/me-no-dev/arduino-esp32fs-plugin) is required for that diff --git a/hw/user.h b/hw/user.h deleted file mode 100644 index 5c3e358..0000000 --- a/hw/user.h +++ /dev/null @@ -1,3 +0,0 @@ -// user-configured hardware description - -#warning "hw/user.h not configured!" diff --git a/library.properties b/library.properties index 04f0433..77898a4 100644 --- a/library.properties +++ b/library.properties @@ -7,4 +7,5 @@ paragraph=Supports 6502, 8080 and Z80 processors category=Other url=https://github.com/jscrane/r65emu architectures=esp32, esp8266, tivac +depends=PS2KeyAdvanced, PS2KeyMap, PS2KeyRaw includes=r65emu.h diff --git a/CPU.h b/src/CPU.h similarity index 100% rename from CPU.h rename to src/CPU.h diff --git a/TinyFont.h b/src/TinyFont.h similarity index 100% rename from TinyFont.h rename to src/TinyFont.h diff --git a/acia.cpp b/src/acia.cpp similarity index 100% rename from acia.cpp rename to src/acia.cpp diff --git a/acia.h b/src/acia.h similarity index 100% rename from acia.h rename to src/acia.h diff --git a/display.cpp b/src/display.cpp similarity index 100% rename from display.cpp rename to src/display.cpp diff --git a/display.h b/src/display.h similarity index 100% rename from display.h rename to src/display.h diff --git a/filer.h b/src/filer.h similarity index 100% rename from filer.h rename to src/filer.h diff --git a/flash_filer.cpp b/src/flash_filer.cpp similarity index 100% rename from flash_filer.cpp rename to src/flash_filer.cpp diff --git a/flash_filer.h b/src/flash_filer.h similarity index 100% rename from flash_filer.h rename to src/flash_filer.h diff --git a/hardware.cpp b/src/hardware.cpp similarity index 100% rename from hardware.cpp rename to src/hardware.cpp diff --git a/hardware.h b/src/hardware.h similarity index 100% rename from hardware.h rename to src/hardware.h diff --git a/hw/esp8bit.h b/src/hw/esp8bit.h similarity index 100% rename from hw/esp8bit.h rename to src/hw/esp8bit.h diff --git a/hw/node32s-example.h b/src/hw/node32s-example.h similarity index 100% rename from hw/node32s-example.h rename to src/hw/node32s-example.h diff --git a/hw/stellarpad-example.h b/src/hw/stellarpad-example.h similarity index 100% rename from hw/stellarpad-example.h rename to src/hw/stellarpad-example.h diff --git a/hw/ttgo-t7-v14-mini32.h b/src/hw/ttgo-t7-v14-mini32.h similarity index 100% rename from hw/ttgo-t7-v14-mini32.h rename to src/hw/ttgo-t7-v14-mini32.h diff --git a/src/hw/user.h b/src/hw/user.h new file mode 100644 index 0000000..83ac2f9 --- /dev/null +++ b/src/hw/user.h @@ -0,0 +1,11 @@ +// user-configured hardware description + +#warning "hw/user.h not configured!" + +#if defined(ARDUINO_ARCH_ESP32) +#define RAM_SIZE 65536 +#elif defined(ARDUINO_ARCH_ESP8266) +#define RAM_SIZE 32768 +#else +#define RAM_SIZE 8192 +#endif diff --git a/hw_serial_dsp.h b/src/hw_serial_dsp.h similarity index 100% rename from hw_serial_dsp.h rename to src/hw_serial_dsp.h diff --git a/hw_serial_kbd.cpp b/src/hw_serial_kbd.cpp similarity index 100% rename from hw_serial_kbd.cpp rename to src/hw_serial_kbd.cpp diff --git a/hw_serial_kbd.h b/src/hw_serial_kbd.h similarity index 100% rename from hw_serial_kbd.h rename to src/hw_serial_kbd.h diff --git a/i8080.cpp b/src/i8080.cpp similarity index 100% rename from i8080.cpp rename to src/i8080.cpp diff --git a/i8080.h b/src/i8080.h similarity index 100% rename from i8080.h rename to src/i8080.h diff --git a/line.h b/src/line.h similarity index 100% rename from line.h rename to src/line.h diff --git a/memory.cpp b/src/memory.cpp similarity index 100% rename from memory.cpp rename to src/memory.cpp diff --git a/memory.h b/src/memory.h similarity index 100% rename from memory.h rename to src/memory.h diff --git a/pia.cpp b/src/pia.cpp similarity index 100% rename from pia.cpp rename to src/pia.cpp diff --git a/pia.h b/src/pia.h similarity index 100% rename from pia.h rename to src/pia.h diff --git a/ports.h b/src/ports.h similarity index 100% rename from ports.h rename to src/ports.h diff --git a/prom.h b/src/prom.h similarity index 100% rename from prom.h rename to src/prom.h diff --git a/ps2_raw_kbd.cpp b/src/ps2_raw_kbd.cpp similarity index 100% rename from ps2_raw_kbd.cpp rename to src/ps2_raw_kbd.cpp diff --git a/ps2_raw_kbd.h b/src/ps2_raw_kbd.h similarity index 100% rename from ps2_raw_kbd.h rename to src/ps2_raw_kbd.h diff --git a/ps2_serial_kbd.cpp b/src/ps2_serial_kbd.cpp similarity index 100% rename from ps2_serial_kbd.cpp rename to src/ps2_serial_kbd.cpp diff --git a/ps2_serial_kbd.h b/src/ps2_serial_kbd.h similarity index 100% rename from ps2_serial_kbd.h rename to src/ps2_serial_kbd.h diff --git a/r6502.cpp b/src/r6502.cpp similarity index 100% rename from r6502.cpp rename to src/r6502.cpp diff --git a/r6502.h b/src/r6502.h similarity index 100% rename from r6502.h rename to src/r6502.h diff --git a/r65emu.h b/src/r65emu.h similarity index 100% rename from r65emu.h rename to src/r65emu.h diff --git a/ram.h b/src/ram.h similarity index 100% rename from ram.h rename to src/ram.h diff --git a/sd_filer.cpp b/src/sd_filer.cpp similarity index 100% rename from sd_filer.cpp rename to src/sd_filer.cpp diff --git a/sd_filer.h b/src/sd_filer.h similarity index 100% rename from sd_filer.h rename to src/sd_filer.h diff --git a/serial_dsp.h b/src/serial_dsp.h similarity index 100% rename from serial_dsp.h rename to src/serial_dsp.h diff --git a/serial_filer.cpp b/src/serial_filer.cpp similarity index 100% rename from serial_filer.cpp rename to src/serial_filer.cpp diff --git a/serial_filer.h b/src/serial_filer.h similarity index 100% rename from serial_filer.h rename to src/serial_filer.h diff --git a/serial_kbd.h b/src/serial_kbd.h similarity index 100% rename from serial_kbd.h rename to src/serial_kbd.h diff --git a/serialio.h b/src/serialio.h similarity index 100% rename from serialio.h rename to src/serialio.h diff --git a/socket_filer.cpp b/src/socket_filer.cpp similarity index 100% rename from socket_filer.cpp rename to src/socket_filer.cpp diff --git a/socket_filer.h b/src/socket_filer.h similarity index 100% rename from socket_filer.h rename to src/socket_filer.h diff --git a/sound_dac.cpp b/src/sound_dac.cpp similarity index 100% rename from sound_dac.cpp rename to src/sound_dac.cpp diff --git a/sound_dac.h b/src/sound_dac.h similarity index 100% rename from sound_dac.h rename to src/sound_dac.h diff --git a/spiram.cpp b/src/spiram.cpp similarity index 100% rename from spiram.cpp rename to src/spiram.cpp diff --git a/spiram.h b/src/spiram.h similarity index 100% rename from spiram.h rename to src/spiram.h diff --git a/timed.cpp b/src/timed.cpp similarity index 100% rename from timed.cpp rename to src/timed.cpp diff --git a/timed.h b/src/timed.h similarity index 100% rename from timed.h rename to src/timed.h diff --git a/via.cpp b/src/via.cpp similarity index 100% rename from via.cpp rename to src/via.cpp diff --git a/via.h b/src/via.h similarity index 100% rename from via.h rename to src/via.h diff --git a/z80.cpp b/src/z80.cpp similarity index 100% rename from z80.cpp rename to src/z80.cpp diff --git a/z80.h b/src/z80.h similarity index 100% rename from z80.h rename to src/z80.h