mirror of
https://github.com/rkujawa/rk65c02.git
synced 2024-12-12 10:30:23 +00:00
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;
|
||
|
}
|
||
|
|