beginning ppu

This commit is contained in:
2025-02-01 00:48:49 -07:00
parent 5206c3871e
commit f4cbfd09c8
25 changed files with 683 additions and 43 deletions

View File

@ -9,7 +9,7 @@ void int_handle(cpu_context *ctx, u16 address) {
bool int_check(cpu_context *ctx, u16 address, interrupt_type t){
if(ctx->int_flags & t && ctx->ie_register & t) {
int_handle(ctx, address);
ctx->int_flags &= -t;
ctx->int_flags &= ~t;
ctx->halted = false;
ctx->int_master_enabled = false;
return true;