- Implementat un canal de só en crú, sense envelope, sweep ni res

This commit is contained in:
2025-01-28 22:41:32 +01:00
parent ab7b26c5e6
commit 91a230ee44
4 changed files with 133 additions and 12 deletions
+3 -1
View File
@@ -65,6 +65,8 @@ int main(int argc, char *argv[])
const uint32_t clock = 4194304;
const uint32_t update_freq = clock / 10;
SDL_Init(SDL_INIT_EVERYTHING);
FILE *f = fopen(argv[1], "rb");
if (!f) { printf("ABORTING: Rom not found.\n"); exit(1); }
fseek(f, 0, SEEK_END);
@@ -73,12 +75,12 @@ int main(int argc, char *argv[])
uint8_t *buffer = (uint8_t*)malloc(filesize);
fread(buffer, filesize, 1, f);
fclose(f);
mem::init(buffer, filesize);
sm83dis::loadSymbols();
sm83::reset();
SDL_Init(SDL_INIT_EVERYTHING);
gbscreen::init(0);
debug::init();