1
0
mirror of https://github.com/rkujawa/rk65c02.git synced 2024-12-11 18:49:16 +00:00
rk65c02/test/utils.c
Radosław Kujawa 2ec6cb67ae Split ROM starting function into separate file.
It will also be used for other test programs than test_emulation.
2017-01-26 13:11:37 +01:00

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