From 7a67f2e549d8673c2e19edc03b063a896f08e522 Mon Sep 17 00:00:00 2001 From: inixyz Date: Tue, 10 Oct 2023 23:36:46 +0300 Subject: [PATCH] init cpu function --- src/tinyriscv.h | 4 ++++ 1 file changed, 4 insertions(+) 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