- [NEW] Implementat el mòdul de memòria per al ZX Spectrum 128K

- Primera prova falla, mirar la conexió al port 0x7ffd, que pareix que no ana.
This commit is contained in:
2024-12-20 13:18:55 +01:00
parent 184389a89e
commit ab476a19b1
5 changed files with 211 additions and 12 deletions

View File

@@ -14,6 +14,7 @@
#include "ui_window.h"
#include "z80mem.h"
#include "zx_48mem.h"
#include "zx_128mem.h"
uint8_t memory[65536];
uint32_t time = 0;
@@ -73,10 +74,10 @@ namespace actions
int main(int argc, char *argv[])
{
const uint32_t clock = 3500000;
const uint32_t clock = 3500000; // 3546900;
const uint32_t update_freq = clock / 10;
new zx_48mem();
new zx_48mem(); // zx_128mem();
z80dis::loadSymbols();
z80::reset();
@@ -84,6 +85,7 @@ int main(int argc, char *argv[])
SDL_Init(SDL_INIT_EVERYTHING);
z80debug::init();
//zxscreen::init(SCREEN_MODE_128K);
zxscreen::init(SCREEN_MODE_48K);
ui::menu::init();
@@ -116,6 +118,7 @@ int main(int argc, char *argv[])
zx_tape::load("fernandomartin.tap");
if (argc==3) { z80debug::loadngo(argv[1], argv[2]); }
//z80debug::stop();
bool should_exit = false;
SDL_Event e;