Fixed compile error WRT printf statements in Thumbulator, and fixed

a potential segfault in CartDPC+.


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@2233 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
This commit is contained in:
stephena 2011-05-25 19:14:47 +00:00
parent 5025a21d92
commit db46773ea1
2 changed files with 5 additions and 5 deletions

View File

@ -76,7 +76,8 @@ CartridgeDPCPlus::CartridgeDPCPlus(const uInt8* image, uInt32 size,
// Initialize the DPC data fetcher registers
for(uInt16 i = 0; i < 8; ++i)
myTops[i] = myBottoms[i] = myCounters[i] = myFractionalIncrements[i] = 0;
myTops[i] = myBottoms[i] = myCounters[i] = myFractionalIncrements[i] =
myFractionalCounters[i] = 0;
// Set waveforms to first waveform entry
myMusicWaveforms[0] = myMusicWaveforms[1] = myMusicWaveforms[2] = 0;

View File

@ -236,10 +236,9 @@ void Thumbulator::write32 ( uInt32 addr, uInt32 data )
switch(addr)
{
case 0xE0000000:
if(DISS) printf("uart: [");
printf("%c",data&0xFF);
if(DISS) printf("]\n");
fflush(stdout);
if(DISS) statusMsg << "uart: [";
statusMsg << char(data&0xFF);
if(DISS) statusMsg << "]" << endl;
break;
}
return;