Skip to content
This repository has been archived by the owner on Aug 11, 2022. It is now read-only.
itIsBrando edited this page Jun 7, 2021 · 1 revision

joypad.asm contains routines for interacting with the gameboy’s buttons

List of routines:

btn_scan

  • Gets the d-pad and ABXY buttons
  • Returns button mask in the form of PADB_… or PADF_… constants from hardware.inc

Parameters: None

Outputs: A - button mask

Destroys: C

Clone this wiki locally