calls, jumps, and stack.

This commit is contained in:
2025-01-30 22:54:33 -07:00
parent 022c24dd35
commit dd1c6d2e0e
7 changed files with 146 additions and 4 deletions

View File

@ -50,4 +50,6 @@ void cpu_set_reg(reg_type rt, u16 val);
void fetch_data();
u8 cpu_get_ie_register();
void cpu_set_ie_register(u8 ie);
void cpu_set_ie_register(u8 ie);
cpu_registers *cpu_get_regs();

9
include/stack.h Normal file
View File

@ -0,0 +1,9 @@
#pragma once
#include <common.h>
void stack_push(u8 data);
void stack_push16(u16 data);
u8 stack_pop();
u16 stack_pop16();