diff --git a/Core/gb.c b/Core/gb.c index 80f087c..c612231 100755 --- a/Core/gb.c +++ b/Core/gb.c @@ -562,6 +562,10 @@ void *GB_get_direct_access(GB_gameboy_t *gb, GB_direct_access_t access, size_t * *size = sizeof(gb->sprite_palettes_data); *bank = 0; return &gb->sprite_palettes_data; + case GB_DIRECT_ACCESS_IE: + *size = sizeof(gb->interrupt_enable); + *bank = 0; + return &gb->interrupt_enable; default: *size = 0; *bank = 0; diff --git a/Core/gb.h b/Core/gb.h index bfafd33..dbe81ed 100644 --- a/Core/gb.h +++ b/Core/gb.h @@ -521,6 +521,7 @@ typedef enum { GB_DIRECT_ACCESS_OAM, GB_DIRECT_ACCESS_BGP, GB_DIRECT_ACCESS_OBP, + GB_DIRECT_ACCESS_IE, } GB_direct_access_t; /* Returns a mutable pointer to various hardware memories. If that memory is banked, the current bank