mirror of
https://github.com/rkujawa/rk65c02.git
synced 2024-12-11 18:49:16 +00:00
2ec6cb67ae
It will also be used for other test programs than test_emulation.
17 lines
284 B
C
17 lines
284 B
C
#include "bus.h"
|
|
#include "rk65c02.h"
|
|
|
|
#include "utils.h"
|
|
|
|
bool
|
|
rom_start(rk65c02emu_t *e, const char *name)
|
|
{
|
|
e->regs.PC = ROM_LOAD_ADDR;
|
|
if(!bus_load_file(e->bus, ROM_LOAD_ADDR, name))
|
|
return false;
|
|
rk65c02_start(e);
|
|
|
|
return true;
|
|
}
|
|
|