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 target_link_libraries(gb6
"-framework OpenGL" "-lGL"
"-framework CoreFoundation" "-ldl"
"${SDL_LIBS}" "${SDL_LIBS}"
) )

View File

@ -976,7 +976,7 @@ void cpu_step(struct cpu *cpu)
break; break;
case 0x76: // HALT case 0x76: // HALT
cpu->halted = 1; //cpu->halted = 1;
break; break;
case 0xc1: // POP BC 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) static u8 get_button_state(struct dmg *dmg)
{ {
u8 ret = 0; u8 ret = 0xf0;
if (dmg->action_selected) { if (dmg->action_selected) {
ret |= dmg->action_buttons; ret |= dmg->action_buttons;
} }