gbdev / gbdev/hardware.inc

Add constants for SGB command `MLT_REQ`'s use of `rJOYP`

Open
#76 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Assembly
Stars
163
Forks
25
Avg merge
11h 17m
Merged PRs (30d)
2

Description

There are [many SGB commands](https://gbdev.io/pandocs/SGB_Command_Summary.html), but `MLT_REQ` stands out as the "[tried and true](https://github.com/gbdev/pandocs/issues/442#issuecomment-3181838936)" one for detecting SGB in the first place; and in some games ([e.g. Pokémon Red/Green](https://github.com/pret/pokered/commit/1eb6f61d62133922ac15c61792be8ea901d6baba)) it's the only you see apart from the necessary border transfers.

`MLT_REQ` uses bits 0 and 1 of `rJOYP` (`rP1`, `$FF00`) for [multiplayer control](https://gbdev.io/pandocs/SGB_Command_Multiplayer.html#sgb-command-11--mlt_req).

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.