Skip to content

Commit

Permalink
more minor
Browse files Browse the repository at this point in the history
  • Loading branch information
freem committed May 29, 2017
1 parent 3a03f49 commit 40c4dfa
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions doc/PLAYER_START.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
The PLAYER_START subroutine and You
===================================
The PLAYER_START subroutine is called by the BIOS if one of the start buttons
are pressed while the corresponding player has enough credits or when the time
runs out while the game's title is being displayed.
The PLAYER_START subroutine is called by the System ROM if one of the Start
buttons is pressed while the corresponding player has enough credits or when
the time runs out while the game's title is being displayed.

(If doing your own logic for starting the game, use CREDIT_CHECK and CREDIT_DOWN.)
(If using custom logic for starting the game, use CREDIT_CHECK and CREDIT_DOWN.
More information on this will be necessary, but I don't know it yet.)

The player who pressed Start is noted in the BIOS_START_FLAG ($10FDD2, byte):
76543210
Expand All @@ -25,20 +26,20 @@ corresponding bytes for each player:

The values in BIOS_START_FLAG are dependent on the BIOS_COUNTRY_CODE ($10FD83):

| Lower 4 bits of START_FLAG
BIOS_COUNTRY_CODE | P1 Start P2 Start
------------------+---------------------------
0 (Japan) | 0001 0011
1 (USA) | 0001 0010
2 (Europe) | 0001 0011
| START_FLAG Lower 4 bits
BIOS_COUNTRY_CODE | P1 Start | P2 Start
------------------+----------+-------------
0 (Japan) | 0001 | 0011
1 (USA) | 0001 | 0010
2 (Europe) | 0001 | 0011

Japanese and European cabinets will join both players if P2 Start is pressed.
US cabinets will only join Player 2.

In a situation where joining mid-game isn't possible (e.g. a vs. sports title),
a machine running in USA mode requires a way to select the number of players.

After returning, the BIOS deducts credits according to BIOS_START_FLAG.
After returning, the System ROM deducts credits according to BIOS_START_FLAG.

SNK docs:
"When the game is in progress, an extension of play time or the addition of lives
Expand Down

0 comments on commit 40c4dfa

Please sign in to comment.