diff --git a/src/tinyriscv.h b/src/tinyriscv.h index 89c1779..42fca56 100644 --- a/src/tinyriscv.h +++ b/src/tinyriscv.h @@ -173,4 +173,8 @@ void tinyriscv_step(tinyriscv_Cpu* cpu){ } } +void tinyriscv_init(tinyriscv_Cpu* cpu){ + cpu->pc = MEM_OFFSET; +} + #endif //TINYRISCV_H \ No newline at end of file