Finished CPU instructions and created ui window.

This commit is contained in:
2025-01-31 14:39:38 -07:00
parent 83c5a7cbe6
commit 9a6dc67c3e
12 changed files with 265 additions and 33 deletions

16
include/interrupts.h Normal file
View File

@ -0,0 +1,16 @@
#pragma once
#include <common.h>
#include <cpu.h>
typedef enum {
IT_VBLANK = 1,
IT_LCD_STAT = 2,
IT_TIMER = 4,
IT_SERIAL = 8,
IT_JOYPAD = 16
} interrupt_type;
void cpu_request_interrupt(interrupt_type t);
void cpu_handle_interrupts(cpu_context *ctx);