dumper.c
void SerialTransferMain()
{
	//Check if triangle is pressed
	if (PadFlag == 0 && (PadBuffer & PAD_TRIANGLE))
	{
		//Return to main menu
		CurrentScreen = 0;
		PadFlag = 1;
	}

	//Check if there are any bytes in the input buffer
	if(CheckSIOInBuffer())
	{
		//Check if this is the sync byte
		if(ReadByteSIO() == 'S')
		{
			CurrentScreen++;
			VSyncCounter = 0;
		}
	}

	GsPrintString(20,20,"Serial cable transfer");
	GsPrintString(20,40,"Status:");
	GsPrintString(20,50,"Waiting for PC");
	GsPrintString(20,210,"Press | to return to main menu");
}
//Main Menu of the serial transfer section
Main Menu of the serial transfer section
Main Menu of the serial transfer section
void SerialTransferMain()
{
	if (PadFlag == 0 && (PadBuffer & PAD_TRIANGLE))
	{
		CurrentScreen = 0;
		PadFlag = 1;
	}
	if(CheckSIOInBuffer())
	{
		if(ReadByteSIO() == 'S')
		{
			CurrentScreen++;
			VSyncCounter = 0;
		}
	}
	GsPrintString(20,20,"Serial cable transfer");
	GsPrintString(20,40,"Status:");
	GsPrintString(20,50,"Waiting for PC");
	GsPrintString(20,210,"Press | to return to main menu");
}
void SerialTransferMain ( ) { if ( PadFlag == 0 && ( PadBuffer & PAD_TRIANGLE ) ) { CurrentScreen = 0 ; PadFlag = 1 ; } if ( CheckSIOInBuffer ( ) ) { if ( ReadByteSIO ( ) == ' ' ) { CurrentScreen ++ ; VSyncCounter = 0 ; } } GsPrintString ( 20 , 20 , " " ) ; GsPrintString ( 20 , 40 , " " ) ; GsPrintString ( 20 , 50 , " " ) ; GsPrintString ( 20 , 210 , " " ) ; }
Main Menu of the serial transfer section
Main Menu of the serial transfer section
//Check if triangle is pressed //Return to main menu //Check if there are any bytes in the input buffer //Check if this is the sync byte