1
0
mirror of https://github.com/rkujawa/rk65c02.git synced 2024-07-17 18:29:09 +00:00
rk65c02/test/utils.c

17 lines
284 B
C
Raw Normal View History

#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;
}