Skip to content

Commit

Permalink
Merge pull request #202 from guidol70/patch-10
Browse files Browse the repository at this point in the history
Missing RamLoad-Parameter and replace RamLoadSz with RamLoad
  • Loading branch information
MockbaTheBorg authored Oct 28, 2024
2 parents 6ce656f + d1974cf commit 481018c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions RunCPM/RunCPM.ino
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ void setup(void) {
#ifdef CCP_INTERNAL
_ccp();
#else
if (!_RamLoad((uint8 *)CCPname, CCPaddr)) {
if (!_RamLoad((uint8 *)CCPname, CCPaddr ,0)) {
_puts("Unable to load the CCP.\r\nCPU halted.\r\n");
break;
}
Expand All @@ -94,7 +94,7 @@ void setup(void) {
if (firstBoot) {
if (_sys_exists((uint8*)AUTOEXEC)) {
uint16 cmd = CCPaddr + 8;
uint8 bytesread = (uint8)_RamLoadSz((uint8*)AUTOEXEC, cmd, 125);
uint8 bytesread = (uint8)_RamLoad((uint8*)AUTOEXEC, cmd, 125);
uint8 blen = 0;
while (blen < bytesread && _RamRead(cmd + blen) > 31)
blen++;
Expand Down

0 comments on commit 481018c

Please sign in to comment.