#include "emul.h" #include "6502.h" #include "memory.h" #include int main( int argc, char *argv[] ) { cpu_6502_t cpu; memory_t memory; memory_init( &memory ); memory_load( &memory, ROM_START, ROM_SIZE, "./rom.bin" ); cpu_6502_init( &cpu, &memory ); cpu.debug = true; cpu_6502_reset( &cpu ); cpu_6502_run( &cpu ); exit( EXIT_SUCCESS ); }