2023-09-21 23:53:14 -04:00
|
|
|
/*
|
|
|
|
* =====================================================================================
|
|
|
|
*
|
|
|
|
* Filename: main.c
|
|
|
|
*
|
|
|
|
* Description: Emulator main loop
|
|
|
|
*
|
|
|
|
* Version: 1.0
|
|
|
|
* Created: 2023-09-21 09:50:34 PM
|
|
|
|
* Revision: none
|
|
|
|
* Compiler: gcc
|
|
|
|
*
|
|
|
|
* Author: William Nolin,
|
|
|
|
* Organization:
|
|
|
|
*
|
|
|
|
* =====================================================================================
|
|
|
|
*/
|
|
|
|
#include <stdlib.h>
|
|
|
|
|
2023-12-03 00:27:07 -05:00
|
|
|
#include "include/rom.h"
|
2023-09-21 23:53:14 -04:00
|
|
|
|
|
|
|
int main() {
|
2023-12-23 16:35:23 -05:00
|
|
|
char *rom_path = "../tests/smb.nes";
|
|
|
|
|
|
|
|
cpu_init();
|
|
|
|
rom_load(rom_path);
|
|
|
|
|
|
|
|
cpu_step();
|
|
|
|
|
|
|
|
rom_uninit();
|
2023-09-21 23:53:14 -04:00
|
|
|
|
2023-12-03 00:27:07 -05:00
|
|
|
return EXIT_SUCCESS;
|
2023-09-21 23:53:14 -04:00
|
|
|
}
|
|
|
|
|