CREDIT CHECK: Difference between revisions

From NeoGeo Development Wiki
Jump to navigation Jump to search
mNo edit summary
m (BIOS -> system ROM)
Line 1: Line 1:
== CREDIT_CHECK ($C00450) ==
== CREDIT_CHECK ($C00450) ==


[[BIOSes|BIOS]] routine called to check if there's enough credits for a player.
[[System ROM]] routine called to check if there's enough credits for a player.


Input: Credits necessary in {{BR|BIOS_CREDIT_DEC1}} for player 1, and {{BR|BIOS_CREDIT_DEC2}} for player 2.
Input: Credits necessary in {{BR|BIOS_CREDIT_DEC1}} for player 1, and {{BR|BIOS_CREDIT_DEC2}} for player 2.

Revision as of 06:20, 28 October 2015

CREDIT_CHECK ($C00450)

System ROM routine called to check if there's enough credits for a player.

Input: Credits necessary in BIOS_CREDIT_DEC1 ( $10FDB0) for player 1, and BIOS_CREDIT_DEC2 ( $10FDB1) for player 2. Those locations are set to 0 if there aren't enough credits.

Call CREDIT_DOWN after.

Credits can be read through $D00034 and $D00035.