some random fixes.

This commit is contained in:
2025-02-19 21:35:26 -07:00
parent 435a4c5ebe
commit 5da4219f09
10 changed files with 70 additions and 10 deletions

View File

@ -47,6 +47,8 @@ IN_PROC inst_get_processor(in_type type);
#define CPU_FLAG_H BIT(ctx->regs.f, 5)
#define CPU_FLAG_C BIT(ctx->regs.f, 4)
cpu_context *cpu_get_context();
u16 cpu_read_reg(reg_type rt);
void cpu_set_reg(reg_type rt, u16 val);