It is currently Mon Dec 11, 2017 2:39 am

All times are UTC - 7 hours





Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Thu Dec 07, 2017 7:36 am 
Offline
User avatar

Joined: Mon Dec 29, 2014 1:46 pm
Posts: 750
Location: New York, NY
When you link 2 Game Boys together, how do they coordinate which of them clocks the channel? Is it based off of menu selections (e.g. Connect as player 1 vs connect as player 2)?


Top
 Profile  
 
PostPosted: Thu Dec 07, 2017 3:44 pm 
Offline

Joined: Sun Jan 26, 2014 9:31 am
Posts: 266
Typically, both Game Boys will set themselves up to receive data on an external clock, meaning they can't initiate a transfer. One Game Boy will switch to an internal clock when prompted by user input (pressing A or START on a given menu), then it will send a byte and wait for a response from the other GB. The one using the external clock would be the "slave" and the one using an internal clock is "master", since "master" will be the one driving communications.

It's possible for two GBs to switch to internal clocks at the same time during the user input phase for selecting multiplayer. In that case, some games have "master" and "slave" bytes they exchange. By default, the slave byte is put into register SB. Only when they switch to internal clocks do they setup the master code. If one GB tries to become master, but it receives a master byte, something went wrong, and the game will prompt users to try again.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 7 hours


Who is online

Users browsing this forum: Majestic-12 [Bot] and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group