Skip to content

Commit

Permalink
Merge pull request #28 from henriquemoody/concat
Browse files Browse the repository at this point in the history
Fix typo when concatenating string
  • Loading branch information
gabrielrcouto committed Feb 25, 2016
2 parents 89e9218 + 855ded3 commit 1bbcdc1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/Core.php
Original file line number Diff line number Diff line change
Expand Up @@ -2326,21 +2326,21 @@ public function memoryWriteJumpCompile()
if ($data < 60) {
$parentObj->RTCSeconds = $data;
} else {
echo '(Bank #' + $parentObj->currMBCRAMBank + ') RTC write out of range: ' + $data.PHP_EOL;
echo '(Bank #'.$parentObj->currMBCRAMBank.') RTC write out of range: '.$data.PHP_EOL;
}
break;
case 0x09:
if ($data < 60) {
$parentObj->RTCMinutes = $data;
} else {
echo '(Bank #' + $parentObj->currMBCRAMBank + ') RTC write out of range: ' + $data.PHP_EOL;
echo '(Bank #'.$parentObj->currMBCRAMBank.') RTC write out of range: '.$data.PHP_EOL;
}
break;
case 0x0A:
if ($data < 24) {
$parentObj->RTCHours = $data;
} else {
echo '(Bank #' + $parentObj->currMBCRAMBank + ') RTC write out of range: ' + $data.PHP_EOL;
echo '(Bank #'.$parentObj->currMBCRAMBank.') RTC write out of range: '.$data.PHP_EOL;
}
break;
case 0x0B:
Expand All @@ -2352,7 +2352,7 @@ public function memoryWriteJumpCompile()
$parentObj->RTCDays = (($data & 0x1) << 8) | ($parentObj->RTCDays & 0xFF);
break;
default:
echo 'Invalid MBC3 bank address selected: ' + $parentObj->currMBCRAMBank.PHP_EOL;
echo 'Invalid MBC3 bank address selected: '.$parentObj->currMBCRAMBank.PHP_EOL;
}
}
};
Expand Down Expand Up @@ -2765,7 +2765,7 @@ public function registerWriteJumpCompile()
$this->memoryWriter[0xFF6C] = function ($parentObj, $address, $data) {
if ($parentObj->inBootstrap) {
$parentObj->cGBC = ($data == 0x80);
echo 'Booted to GBC Mode: ' + $parentObj->cGBC.PHP_EOL;
echo 'Booted to GBC Mode: '.$parentObj->cGBC.PHP_EOL;
}
$parentObj->memory[0xFF6C] = $data;
};
Expand Down

0 comments on commit 1bbcdc1

Please sign in to comment.