1
0
mirror of https://github.com/jscrane/r65emu.git synced 2024-10-28 07:25:06 +00:00

Library format (#31)

* restructure

* update

* defaults
This commit is contained in:
Stephen Crane 2024-08-29 10:31:06 +01:00 committed by GitHub
parent 6a36272f5e
commit 900ac37644
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
58 changed files with 17 additions and 6 deletions

View File

@ -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

View File

@ -1,3 +0,0 @@
// user-configured hardware description
#warning "hw/user.h not configured!"

View File

@ -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

View File

View File

11
src/hw/user.h Normal file
View File

@ -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

View File

View File

View File

View File

View File

View File