CREDIT CHECK: Difference between revisions
Jump to navigation
Jump to search
(Created page with "BIOS routine called to check if there's enough credits for a player. Input: $10FDB0 ('''BIOS_CREDIT_DEC''') for player 1, and $10FD81 ('''BIOS_CREDIT_DEC2''') for pla...") |
mNo edit summary |
||
(6 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
== CREDIT_CHECK ($C00450) == | |||
Input: | [[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. | |||
Those locations are set to 0 if there aren't enough credits. | Those locations are set to 0 if there aren't enough credits. | ||
Call [[CREDIT_DOWN]] after. | Call [[CREDIT_DOWN]] after. | ||
[[Category: | Credits count are located in [[backup RAM]] at $D00034 and $D00035. Only the system ROM should use these locations directly. | ||
[[Category:BIOS calls]] |
Latest revision as of 05:25, 28 February 2017
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 count are located in backup RAM at $D00034 and $D00035. Only the system ROM should use these locations directly.