fix button state for pokemon

This commit is contained in:
Matthew Laux 2023-05-17 23:49:35 -05:00
parent ead7a3e17c
commit bad415fa23
3 changed files with 4 additions and 4 deletions

View File

@ -34,8 +34,8 @@ add_executable(gb6
)
target_link_libraries(gb6
"-framework OpenGL"
"-framework CoreFoundation"
"-lGL"
"-ldl"
"${SDL_LIBS}"
)

View File

@ -976,7 +976,7 @@ void cpu_step(struct cpu *cpu)
break;
case 0x76: // HALT
cpu->halted = 1;
//cpu->halted = 1;
break;
case 0xc1: // POP BC

View File

@ -40,7 +40,7 @@ void dmg_set_button(struct dmg *dmg, int field, int button, int pressed)
static u8 get_button_state(struct dmg *dmg)
{
u8 ret = 0;
u8 ret = 0xf0;
if (dmg->action_selected) {
ret |= dmg->action_buttons;
}