mrkotfw
Mid Boss
Code:
/* ----------------------------------------------
* Sega Saturn Smpc Check 0.1
* ---------------------------------------------- */
#include "define.c"
int ss_main(void)
{
int i = 0;
int error = 3;
for(i = 0; i < error; i++)
slColRAMMode(CRM16_1024);
slBack1ColSet((void *)BACK_COL_ADR,0x8000);
/* ----------------------------------------
* Smpc Check 1
* ---------------------------------------- */
{
slInitSystem(TV_320x224, NULL, 1);
slGetLanguage();
if(slGetLanguage() != SMPC_ESPANOL) {
slSetLanguage(SMPC_ESPANOL);
}
i++;
slSetSmpcMemory();
slCurColor(C_RGB(25,0,0));
slPrint("Sega Saturn Info Corecto", slLocate(1,1));
slPrint(i,slLocate(27,1));
slSynch();
}
/* ----------------------------------------
* Smpc Check 2
* ---------------------------------------- */
{
SmpcDateTime * date = &(Smpc_Status->rtc);
date->year = 0x1999;
date->month = SMPC_FRI | SMPC_DEC;
date->date = 0x31;
date->hour = 0x23;
date->minute = 0x59;
date->second = 0x59;
i++;
slSetDateTime();
slCurColor(C_RGB(25,0,0));
slPrint("Sega Saturn Info Corecto", slLocate(1,1));
slPrint(i,slLocate(27,1));
slSynch();
}
/* ----------------------------------------
* Smpc Check 3
* ---------------------------------------- */
{
if(Per_Connect1) {
PerDigital * pad;
pad = Smpc_Peripheral + 0;
if(!(pad->data & PER_DGT_ST)) {
return;
}
else if(!Per_Connect1)
i--;
slGetStatus();
slCurColor(C_RGB(25,0,0));
slPrint("Sega Saturn Info Corecto", slLocate(1,1));
slPrint(i,slLocate(27,1));
slSynch();
}
}
}
well my problem is i want to do: printf("%d",i); so i can print the int i; but the problem is saturn probaly doesn't like it. slPrint(i,slLocate(27,1)); doesnt work either, is there another way? oh also my rest of my code looks good? any suggestions please feel free to suggest! Thank you.