// Move Murphy in any direction
// ==========================================================================
-int subAnimateMurphy(int si)
+int subAnimateMurphy(int *si)
{
int subAnimateMurphy;
static int dxPos = 0; // field-position to draw dx(SeqPos)
static int dx2Step = 0; // position of dx2 relative to dx-position
- ax = PlayField16[si];
+ ax = PlayField16[*si];
al = LowByte(ax);
+
+#if 1
+ printf("::: Murphy.c: subAnimateMurphy(): %d [%d, %d] %d, %d [%d]\n",
+ *si, *si % 60, *si / 60, ax, al, (al == fiMurphy));
+#endif
+
if (al != fiMurphy)
{
MurphyMoveCounter = 0; // We have no Murphy! Exit!
}
MurphyMoveCounter = 1; // We have a Murphy!
- MurphyExplodePos = si;
+ MurphyExplodePos = *si;
if (ax != 3) // yes--go proceed moving murphy?
goto locProceedMovingMurphy;
// FS: reset moving sequence variables
MurphyDX = 0;
MurphyDY = 0;
- ClearPos = si;
- dxPos = si;
+ ClearPos = *si;
+ dxPos = *si;
dx2 = -1;
SeqPos = 0;
// end of FS
ScratchGravity = 0; // scratch gravity off
if (GravityFlag != 0) // Gravity? (1=gravity on)
{
- bl = LowByte(PlayField16[si - FieldWidth]); // check above
+ bl = LowByte(PlayField16[*si - FieldWidth]); // check above
if (! (bl == fiPortUp || bl == fiPortUpAndDown || bl == fiPortAllDirections))
{
- if (PlayField16[si + FieldWidth] == 0) // gravity on and space below!
+ if (PlayField16[*si + FieldWidth] == 0) // gravity on and space below!
ScratchGravity = 1;
}
} // loc_g_5E8B:
YawnSleepCounter = YawnSleepCounter + 1;
if (YawnSleepCounter == 4)
{
- subCopyFieldToScreen(si, fiMurphy); // normal grin
+ subCopyFieldToScreen(*si, fiMurphy); // normal grin
return subAnimateMurphy;
} // loc_g_5ECE:
if (YawnSleepCounter <= 522)
{
bx = (YawnSleepCounter - 500) / 2;
- subCopyFieldToScreen(si, aniMurphyYawn + bx); // yawn! and look depressed afterwards...
+ subCopyFieldToScreen(*si, aniMurphyYawn + bx); // yawn! and look depressed afterwards...
return subAnimateMurphy;
} // loc_g_5F00:
if (YawnSleepCounter <= 1022)
{
bx = (YawnSleepCounter - 1000) / 2;
- subCopyFieldToScreen(si, aniMurphyYawn + bx); // yawn again!
+ subCopyFieldToScreen(*si, aniMurphyYawn + bx); // yawn again!
return subAnimateMurphy;
} // loc_g_5F32:
if (YawnSleepCounter <= 1622)
{
bx = (YawnSleepCounter - 1600) / 2;
- subCopyFieldToScreen(si, aniMurphyYawn + bx); // yawn again! - third time
+ subCopyFieldToScreen(*si, aniMurphyYawn + bx); // yawn again! - third time
return subAnimateMurphy;
} // loc_g_5F64:
if (YawnSleepCounter > 1654)
return subAnimateMurphy;
- if (PlayField16[si - 1] == 0)
+ if (PlayField16[*si - 1] == 0)
{
- if (PlayField16[si + 1] == 0)
+ if (PlayField16[*si + 1] == 0)
{
YawnSleepCounter = 36;
return subAnimateMurphy;
else
{
bx = (YawnSleepCounter - 1622) / 16;
- subCopyFieldToScreen(si, aniMurphySleepRight + bx); // go to sleep
+ subCopyFieldToScreen(*si, aniMurphySleepRight + bx); // go to sleep
return subAnimateMurphy;
}
} // loc_g_5F81:
bx = (YawnSleepCounter - 1622) / 16;
- subCopyFieldToScreen(si, aniMurphySleepLeft + bx); // go to sleep
+ subCopyFieldToScreen(*si, aniMurphySleepLeft + bx); // go to sleep
return subAnimateMurphy;
// end of YAWN-SLEEP-Sequence
if (ScratchGravity == 0)
goto loc_g_6003;
- if (PlayField16[si + FieldWidth] != 0)
+ if (PlayField16[*si + FieldWidth] != 0)
goto loc_g_6003;
if (bl == keyUp)
{
- if (PlayField16[si - FieldWidth] == fiBase)
+ if (PlayField16[*si - FieldWidth] == fiBase)
goto loc_g_6003;
}
else if (bl == keyLeft)
{
- if (PlayField16[si - 1] == fiBase)
+ if (PlayField16[*si - 1] == fiBase)
goto loc_g_6003;
}
else if (bl == keyRight)
{
- if (PlayField16[si + 1] == fiBase)
+ if (PlayField16[*si + 1] == fiBase)
goto loc_g_6003;
} // loc_g_6001:
// FS:
MurphyDY = -2;
// end of FS
- ax = PlayField16[si - FieldWidth];
+ ax = PlayField16[*si - FieldWidth];
al = LowByte(ax);
if (ax == fiSpace)
goto loc_g_6312;
if (al == fiYellowDisk)
goto loc_g_6AB8;
- if (! subMoveKillsMurphy(si - FieldWidth, ax, bl))
+ if (! subMoveKillsMurphy(*si - FieldWidth, ax, bl))
goto loc_g_6078;
return subAnimateMurphy;
MurphyDX = -2;
// end of FS
MurphyVarFaceLeft = 1;
- ax = PlayField16[si - 1];
+ ax = PlayField16[*si - 1];
al = LowByte(ax);
if (ax == fiSpace)
goto loc_g_6341;
if (ax == fiOrangeDisk)
goto loc_g_6B9B;
- if (! subMoveKillsMurphy(si - 1, ax, bl))
+ if (! subMoveKillsMurphy(*si - 1, ax, bl))
goto loc_g_60DA;
return subAnimateMurphy;
// FS:
MurphyDY = 2;
// end of FS
- ax = PlayField16[si + FieldWidth];
+ ax = PlayField16[*si + FieldWidth];
al = LowByte(ax);
if (ax == fiSpace)
goto loc_g_6364;
if (al == fiYellowDisk)
goto loc_g_6B2A;
- if (! subMoveKillsMurphy(si + FieldWidth, ax, bl))
+ if (! subMoveKillsMurphy(*si + FieldWidth, ax, bl))
goto loc_g_6154;
return subAnimateMurphy;
MurphyDX = 2;
// end of FS
MurphyVarFaceLeft = 0;
- ax = PlayField16[si + 1];
+ ax = PlayField16[*si + 1];
al = LowByte(ax);
if (ax == fiSpace)
goto loc_g_6399;
if (ax == fiOrangeDisk)
goto loc_g_6BD3;
- if (! subMoveKillsMurphy(si + 1, ax, bl))
+ if (! subMoveKillsMurphy(*si + 1, ax, bl))
goto loc_g_61B6;
return subAnimateMurphy;
loc_g_622E:
// FS:
ClearPos = -1;
- dxPos = si - FieldWidth;
+ dxPos = *si - FieldWidth;
// end of FS
- ax = PlayField16[si - FieldWidth];
+ ax = PlayField16[*si - FieldWidth];
al = LowByte(ax);
al = LowByte(ax);
if (ax == fiBase)
loc_g_6258:
// FS:
ClearPos = -1;
- dxPos = si - 1;
+ dxPos = *si - 1;
// end of FS
MurphyVarFaceLeft = 1;
- ax = PlayField16[si - 1];
+ ax = PlayField16[*si - 1];
al = LowByte(ax);
if (ax == fiBase)
goto loc_g_651D;
loc_g_6288:
// FS:
ClearPos = -1;
- dxPos = si + FieldWidth;
+ dxPos = *si + FieldWidth;
// end of FS
- ax = PlayField16[si + FieldWidth];
+ ax = PlayField16[*si + FieldWidth];
al = LowByte(ax);
if (ax == fiBase)
goto loc_g_655B;
loc_g_62B2:
// FS:
ClearPos = -1;
- dxPos = si + 1;
+ dxPos = *si + 1;
// end of FS
MurphyVarFaceLeft = 0;
- ax = PlayField16[si + 1];
+ ax = PlayField16[*si + 1];
al = LowByte(ax);
if (ax == fiBase)
goto loc_g_6599;
if (LowByte(RedDiskReleaseFlag) != 1)
return subAnimateMurphy;
- MovHighByte(&PlayField16[si], 0x2A);
+ MovHighByte(&PlayField16[*si], 0x2A);
MovingPictureSequencePhase = 0x40; // init picture move sequence
dx = aniRedDisk;
MovLowByte(&RedDiskReleasePhase, 1);
- Mov(&RedDiskReleaseMurphyPos, si); // remember Murphy's location
+ Mov(&RedDiskReleaseMurphyPos, *si); // remember Murphy's location
goto loc_Split;
// ==========================================================================
loc_g_6312:
dx = (MurphyVarFaceLeft == 0 ? aniMurphyEatUpRight : aniMurphyEatUpRight);
- PlayField16[si - FieldWidth] = 0x103;
- PlayField16[si] = 0x300;
- si = si - FieldWidth;
+ PlayField16[*si - FieldWidth] = 0x103;
+ PlayField16[*si] = 0x300;
+ *si = *si - FieldWidth;
goto loc_StopNoSplit;
// ==========================================================================
loc_g_6341:
dx = aniMurphyEatLeft;
- PlayField16[si - 1] = 0x203;
- PlayField16[si] = 0x300;
- si = si - 1;
+ PlayField16[*si - 1] = 0x203;
+ PlayField16[*si] = 0x300;
+ *si = *si - 1;
goto loc_StopNoSplit;
// ==========================================================================
loc_g_6364:
dx = (MurphyVarFaceLeft == 0 ? aniMurphyEatUpRight : aniMurphyEatUpRight);
- PlayField16[si + FieldWidth] = 0x303;
- PlayField16[si] = 0x300;
- si = si + FieldWidth;
+ PlayField16[*si + FieldWidth] = 0x303;
+ PlayField16[*si] = 0x300;
+ *si = *si + FieldWidth;
goto loc_StopNoSplit;
// ==========================================================================
loc_g_6399:
dx = aniMurphyEatRight;
- PlayField16[si + 1] = 0x403;
- PlayField16[si] = 0x300;
- si = si + 1;
+ PlayField16[*si + 1] = 0x403;
+ PlayField16[*si] = 0x300;
+ *si = *si + 1;
goto loc_StopNoSplit;
// ==========================================================================
// ==========================================================================
loc_g_63C2:
- if (SgnHighByte(PlayField16[si - FieldWidth]) >= 0)
+ if (SgnHighByte(PlayField16[*si - FieldWidth]) >= 0)
{
- ExplodeFieldSP(si); // Explode
+ ExplodeFieldSP(*si); // Explode
return subAnimateMurphy;
}
- PlayField16[si - FieldWidth] = fiBase;
+ PlayField16[*si - FieldWidth] = fiBase;
// ==========================================================================
// BASE moving down to up
// ==========================================================================
loc_g_63D3:
subSoundFXBase();
dx = (MurphyVarFaceLeft == 0 ? aniMurphyEatUpRight : aniMurphyEatUpRight);
- PlayField16[si - FieldWidth] = 0x503;
- PlayField16[si] = 0x300;
- si = si - FieldWidth;
+ PlayField16[*si - FieldWidth] = 0x503;
+ PlayField16[*si] = 0x300;
+ *si = *si - FieldWidth;
goto loc_StopNoSplit;
// ==========================================================================
// ==========================================================================
loc_g_640B:
- if (SgnHighByte(PlayField16[si - 1]) >= 0)
+ if (SgnHighByte(PlayField16[*si - 1]) >= 0)
{
- ExplodeFieldSP(si); // Explode
+ ExplodeFieldSP(*si); // Explode
return subAnimateMurphy;
}
- PlayField16[si - 1] = fiBase;
+ PlayField16[*si - 1] = fiBase;
// ==========================================================================
// BASE moving right to left
// ==========================================================================
loc_g_641C:
subSoundFXBase();
dx = aniMurphyEatLeft;
- PlayField16[si - 1] = 0x203;
- PlayField16[si] = 0x300;
- si = si - 1;
+ PlayField16[*si - 1] = 0x203;
+ PlayField16[*si] = 0x300;
+ *si = *si - 1;
goto loc_StopNoSplit;
// ==========================================================================
// ==========================================================================
loc_g_6448:
- if (SgnHighByte(PlayField16[si + FieldWidth]) >= 0)
+ if (SgnHighByte(PlayField16[*si + FieldWidth]) >= 0)
{
- ExplodeFieldSP(si); // Explode
+ ExplodeFieldSP(*si); // Explode
return subAnimateMurphy;
}
- PlayField16[si + FieldWidth] = fiBase;
+ PlayField16[*si + FieldWidth] = fiBase;
// ==========================================================================
// BASE moving up to down
// ==========================================================================
loc_g_6459:
subSoundFXBase();
dx = (MurphyVarFaceLeft == 0 ? aniMurphyEatUpRight : aniMurphyEatUpRight);
- PlayField16[si + FieldWidth] = 0x703;
- PlayField16[si] = 0x300;
- si = si + FieldWidth;
+ PlayField16[*si + FieldWidth] = 0x703;
+ PlayField16[*si] = 0x300;
+ *si = *si + FieldWidth;
goto loc_StopNoSplit;
// ==========================================================================
// ==========================================================================
loc_g_6491:
- if (SgnHighByte(PlayField16[si + 1]) >= 0)
+ if (SgnHighByte(PlayField16[*si + 1]) >= 0)
{
- ExplodeFieldSP(si); // Explode
+ ExplodeFieldSP(*si); // Explode
return subAnimateMurphy;
}
- PlayField16[si + 1] = fiBase;
+ PlayField16[*si + 1] = fiBase;
// ==========================================================================
// BASE moving left to right
// ==========================================================================
loc_g_64A2:
subSoundFXBase();
dx = aniMurphyEatRight;
- PlayField16[si + 1] = 0x803;
- PlayField16[si] = 0x300;
- si = si + 1;
+ PlayField16[*si + 1] = 0x803;
+ PlayField16[*si] = 0x300;
+ *si = *si + 1;
goto loc_StopNoSplit;
// ==========================================================================
// ==========================================================================
loc_g_64CE:
- if (SgnHighByte(PlayField16[si - FieldWidth]) >= 0)
+ if (SgnHighByte(PlayField16[*si - FieldWidth]) >= 0)
{
- ExplodeFieldSP(si); // Explode
+ ExplodeFieldSP(*si); // Explode
return subAnimateMurphy;
}
- PlayField16[si - FieldWidth] = fiBase;
+ PlayField16[*si - FieldWidth] = fiBase;
// ==========================================================================
// BASE touching down to up
// ==========================================================================
loc_g_64DF:
- subCopyFieldToScreen(si, aniMurphyTouchUp);
+ subCopyFieldToScreen(*si, aniMurphyTouchUp);
subSoundFXBase();
dx = aniTouchBase;
- dxPos = si - FieldWidth;
- MovHighByte(&PlayField16[si], 0x10);
+ dxPos = *si - FieldWidth;
+ MovHighByte(&PlayField16[*si], 0x10);
goto loc_StopNoSplit;
// ==========================================================================
// ==========================================================================
loc_g_650C:
- if (SgnHighByte(PlayField16[si - 1]) >= 0)
+ if (SgnHighByte(PlayField16[*si - 1]) >= 0)
{
- ExplodeFieldSP(si); // Explode
+ ExplodeFieldSP(*si); // Explode
return subAnimateMurphy;
}
- PlayField16[si - 1] = fiBase;
+ PlayField16[*si - 1] = fiBase;
// ==========================================================================
// BASE touching right to left
// ==========================================================================
loc_g_651D:
- subCopyFieldToScreen(si, aniMurphyTouchLeft);
+ subCopyFieldToScreen(*si, aniMurphyTouchLeft);
subSoundFXBase();
dx = aniTouchBase;
- dxPos = si - 1;
- MovHighByte(&PlayField16[si], 0x11);
+ dxPos = *si - 1;
+ MovHighByte(&PlayField16[*si], 0x11);
goto loc_StopNoSplit;
// ==========================================================================
// ==========================================================================
loc_g_654A:
- if (SgnHighByte(PlayField16[si + FieldWidth]) >= 0)
+ if (SgnHighByte(PlayField16[*si + FieldWidth]) >= 0)
{
- ExplodeFieldSP(si); // Explode
+ ExplodeFieldSP(*si); // Explode
return subAnimateMurphy;
}
- PlayField16[si + FieldWidth] = fiBase;
+ PlayField16[*si + FieldWidth] = fiBase;
// ==========================================================================
// BASE touching up to down
// ==========================================================================
loc_g_655B:
- subCopyFieldToScreen(si, aniMurphyTouchDown);
+ subCopyFieldToScreen(*si, aniMurphyTouchDown);
subSoundFXBase();
dx = aniTouchBase;
- dxPos = si + FieldWidth;
- MovHighByte(&PlayField16[si], 0x12);
+ dxPos = *si + FieldWidth;
+ MovHighByte(&PlayField16[*si], 0x12);
goto loc_StopNoSplit;
// ==========================================================================
// ==========================================================================
loc_g_6588:
- if (SgnHighByte(PlayField16[si + 1]) >= 0)
+ if (SgnHighByte(PlayField16[*si + 1]) >= 0)
{
- ExplodeFieldSP(si); // Explode
+ ExplodeFieldSP(*si); // Explode
return subAnimateMurphy;
}
- PlayField16[si + 1] = fiBase;
+ PlayField16[*si + 1] = fiBase;
// ==========================================================================
// BASE touching left to right
// ==========================================================================
loc_g_6599:
- subCopyFieldToScreen(si, aniMurphyTouchRight);
+ subCopyFieldToScreen(*si, aniMurphyTouchRight);
subSoundFXBase();
dx = aniTouchBase;
- dxPos = si + 1;
- MovHighByte(&PlayField16[si], 0x13);
+ dxPos = *si + 1;
+ MovHighByte(&PlayField16[*si], 0x13);
goto loc_StopNoSplit;
// ==========================================================================
loc_g_65C6:
subSoundFXInfotron();
dx = (MurphyVarFaceLeft == 0 ? aniMurphyEatUpRight : aniMurphyEatUpRight);
- PlayField16[si - FieldWidth] = 0x903;
- PlayField16[si] = 0x300;
- si = si - FieldWidth;
+ PlayField16[*si - FieldWidth] = 0x903;
+ PlayField16[*si] = 0x300;
+ *si = *si - FieldWidth;
goto loc_StopNoSplit;
// ==========================================================================
dx2 = fiInfotron;
dx2Step = -1;
ClearPos = -1;
- PlayField16[si - 1] = 0xA03;
- PlayField16[si] = 0x300;
- si = si - 1;
+ PlayField16[*si - 1] = 0xA03;
+ PlayField16[*si] = 0x300;
+ *si = *si - 1;
goto loc_StopNoSplit;
// ==========================================================================
loc_g_662A:
subSoundFXInfotron();
dx = (MurphyVarFaceLeft == 0 ? aniMurphyEatUpRight : aniMurphyEatUpRight);
- PlayField16[si + FieldWidth] = 0xB03;
- PlayField16[si] = 0x300;
- si = si + FieldWidth;
+ PlayField16[*si + FieldWidth] = 0xB03;
+ PlayField16[*si] = 0x300;
+ *si = *si + FieldWidth;
goto loc_StopNoSplit;
// ==========================================================================
dx2 = fiInfotron;
dx2Step = 1;
ClearPos = -1;
- PlayField16[si + 1] = 0xC03;
- PlayField16[si] = 0x300;
- si = si + 1;
+ PlayField16[*si + 1] = 0xC03;
+ PlayField16[*si] = 0x300;
+ *si = *si + 1;
goto loc_StopNoSplit;
// ==========================================================================
// ==========================================================================
loc_g_668E:
- subCopyFieldToScreen(si, aniMurphyTouchUp);
+ subCopyFieldToScreen(*si, aniMurphyTouchUp);
subSoundFXInfotron();
dx = aniTouchInfotron;
- MovHighByte(&PlayField16[si], 0x14);
- MovHighByte(&PlayField16[si - FieldWidth], 0xFF);
+ MovHighByte(&PlayField16[*si], 0x14);
+ MovHighByte(&PlayField16[*si - FieldWidth], 0xFF);
goto loc_StopNoSplit;
// ==========================================================================
// ==========================================================================
loc_g_66C0:
- subCopyFieldToScreen(si, aniMurphyTouchLeft);
+ subCopyFieldToScreen(*si, aniMurphyTouchLeft);
subSoundFXInfotron();
dx = aniTouchInfotron;
- MovHighByte(&PlayField16[si], 0x15);
- MovHighByte(&PlayField16[si - 1], 0xFF);
+ MovHighByte(&PlayField16[*si], 0x15);
+ MovHighByte(&PlayField16[*si - 1], 0xFF);
goto loc_StopNoSplit;
// ==========================================================================
// ==========================================================================
loc_g_66F2:
- subCopyFieldToScreen(si, aniMurphyTouchDown);
+ subCopyFieldToScreen(*si, aniMurphyTouchDown);
subSoundFXInfotron();
dx = aniTouchInfotron;
- MovHighByte(&PlayField16[si], 0x16);
- MovHighByte(&PlayField16[si + FieldWidth], 0xFF);
+ MovHighByte(&PlayField16[*si], 0x16);
+ MovHighByte(&PlayField16[*si + FieldWidth], 0xFF);
goto loc_StopNoSplit;
// ==========================================================================
// ==========================================================================
loc_g_6724:
- subCopyFieldToScreen(si, aniMurphyTouchRight);
+ subCopyFieldToScreen(*si, aniMurphyTouchRight);
subSoundFXInfotron();
dx = aniTouchInfotron;
- MovHighByte(&PlayField16[si], 0x17);
- MovHighByte(&PlayField16[si + 1], 0xFF);
+ MovHighByte(&PlayField16[*si], 0x17);
+ MovHighByte(&PlayField16[*si + 1], 0xFF);
goto loc_StopNoSplit;
// ==========================================================================
LeadOutCounter = 0x40; // quit: start lead-out
dx = aniMurphyExit;
- MovHighByte(&PlayField16[si], 0xD);
+ MovHighByte(&PlayField16[*si], 0xD);
goto loc_StopNoSplit;
// ==========================================================================
// ==========================================================================
loc_g_679B:
- ax = PlayField16[si - 2];
+ ax = PlayField16[*si - 2];
if (ax != 0)
return subAnimateMurphy;
- MovHighByte(&PlayField16[si - 2], 1);
- subCopyFieldToScreen(si, aniPushLeft); // draw pushing murphy
+ MovHighByte(&PlayField16[*si - 2], 1);
+ subCopyFieldToScreen(*si, aniPushLeft); // draw pushing murphy
dx = aniZonkRollLeft;
- dxPos = si - 1;
+ dxPos = *si - 1;
dx2 = aniPushLeft;
dx2Step = 1;
- MovHighByte(&PlayField16[si], 0xE);
+ MovHighByte(&PlayField16[*si], 0xE);
goto loc_MoveNoSplit;
// ==========================================================================
// ==========================================================================
loc_g_67D4:
- ax = PlayField16[si + 2];
+ ax = PlayField16[*si + 2];
if (ax != 0)
return subAnimateMurphy;
- ax = PlayField16[si + FieldWidth + 1];
+ ax = PlayField16[*si + FieldWidth + 1];
if (ax == 0) // zonk falls
return subAnimateMurphy;
- MovHighByte(&PlayField16[si + 2], 1);
- subCopyFieldToScreen(si, aniPushRight); // draw pushing murphy
+ MovHighByte(&PlayField16[*si + 2], 1);
+ subCopyFieldToScreen(*si, aniPushRight); // draw pushing murphy
dx = aniZonkRollRight;
- dxPos = si + 1;
+ dxPos = *si + 1;
dx2 = aniPushRight;
dx2Step = -1;
- MovHighByte(&PlayField16[si], 0xF);
+ MovHighByte(&PlayField16[*si], 0xF);
goto loc_MoveNoSplit;
// ==========================================================================
// ==========================================================================
loc_g_6817:
- subCopyFieldToScreen(si, aniMurphyTouchUp);
+ subCopyFieldToScreen(*si, aniMurphyTouchUp);
if (YellowDisksExploded != 0)
{
YawnSleepCounter = 10; // stay hypnotized
return subAnimateMurphy;
} // loc_g_6838:
- subCopyFieldToScreen(si - FieldWidth, 0x88); // draw new terminal type
- TerminalState[si - FieldWidth] = 8;
+ subCopyFieldToScreen(*si - FieldWidth, 0x88); // draw new terminal type
+ TerminalState[*si - FieldWidth] = 8;
goto loc_g_68F0;
// ==========================================================================
// ==========================================================================
loc_g_684E:
- subCopyFieldToScreen(si, aniMurphyTouchLeft);
+ subCopyFieldToScreen(*si, aniMurphyTouchLeft);
if (YellowDisksExploded != 0)
{
YawnSleepCounter = 10; // stay hypnotized
return subAnimateMurphy;
} // loc_g_6838:
- subCopyFieldToScreen(si - 1, 0x88); // draw new terminal type
- TerminalState[si - 1] = 8;
+ subCopyFieldToScreen(*si - 1, 0x88); // draw new terminal type
+ TerminalState[*si - 1] = 8;
goto loc_g_68F0;
// ==========================================================================
// ==========================================================================
loc_g_6884:
- subCopyFieldToScreen(si, aniMurphyTouchDown);
+ subCopyFieldToScreen(*si, aniMurphyTouchDown);
if (YellowDisksExploded != 0)
{
YawnSleepCounter = 10; // stay hypnotized
return subAnimateMurphy;
} // loc_g_6838:
- subCopyFieldToScreen(si + FieldWidth, 0x88); // draw new terminal type
- TerminalState[si + FieldWidth] = 8;
+ subCopyFieldToScreen(*si + FieldWidth, 0x88); // draw new terminal type
+ TerminalState[*si + FieldWidth] = 8;
goto loc_g_68F0;
// ==========================================================================
// ==========================================================================
loc_g_68BA:
- subCopyFieldToScreen(si, aniMurphyTouchRight);
+ subCopyFieldToScreen(*si, aniMurphyTouchRight);
if (YellowDisksExploded != 0)
{
YawnSleepCounter = 10; // stay hypnotized
return subAnimateMurphy;
} // loc_g_6838:
- subCopyFieldToScreen(si + 1, 0x88); // draw new terminal type
- TerminalState[si + 1] = 8;
+ subCopyFieldToScreen(*si + 1, 0x88); // draw new terminal type
+ TerminalState[*si + 1] = 8;
// ==========================================================================
// common TERMINAL stuff moving/touching from all directions
// ==========================================================================
// ==========================================================================
loc_g_6916:
- if (PlayField16[si - 2 * FieldWidth] != 0)
+ if (PlayField16[*si - 2 * FieldWidth] != 0)
return subAnimateMurphy;
dx = aniSplitUpDown;
dx2Step = -FieldWidth;
- PlayField16[si] = 0x1803;
- PlayField16[si - 2 * FieldWidth] = 0x300;
+ PlayField16[*si] = 0x1803;
+ PlayField16[*si - 2 * FieldWidth] = 0x300;
goto loc_StopSplit;
// ==========================================================================
// ==========================================================================
loc_g_693A:
- if (PlayField16[si - 2] != 0)
+ if (PlayField16[*si - 2] != 0)
return subAnimateMurphy;
dx = aniMurphyEatLeft;
dx2Step = -1;
- PlayField16[si] = 0x1903;
- PlayField16[si - 2] = 0x300;
+ PlayField16[*si] = 0x1903;
+ PlayField16[*si - 2] = 0x300;
goto loc_StopSplit;
// ==========================================================================
// ==========================================================================
loc_g_695E:
- if (PlayField16[si + 2 * FieldWidth] != 0)
+ if (PlayField16[*si + 2 * FieldWidth] != 0)
return subAnimateMurphy;
dx = aniSplitUpDown;
dx2Step = FieldWidth;
- PlayField16[si] = 0x1A03;
- PlayField16[si + 2 * FieldWidth] = 0x300;
+ PlayField16[*si] = 0x1A03;
+ PlayField16[*si + 2 * FieldWidth] = 0x300;
goto loc_StopSplit;
// ==========================================================================
// ==========================================================================
loc_g_6982:
- if (PlayField16[si + 2] != 0)
+ if (PlayField16[*si + 2] != 0)
return subAnimateMurphy;
dx = aniMurphyEatRight;
dx2Step = 1;
- PlayField16[si] = 0x1B03;
- PlayField16[si + 2] = 0x300;
+ PlayField16[*si] = 0x1B03;
+ PlayField16[*si + 2] = 0x300;
loc_StopSplit:
MovingPictureSequencePhase = 0; // stop picture move sequence
loc_g_69A6:
dx = (MurphyVarFaceLeft == 0 ? aniMurphyEatUpRight : aniMurphyEatUpRight);
- PlayField16[si] = 0x1C03;
- PlayField16[si - FieldWidth] = 0x300;
+ PlayField16[*si] = 0x1C03;
+ PlayField16[*si - FieldWidth] = 0x300;
goto loc_StopNoSplit;
// ==========================================================================
loc_g_69CE:
dx = aniMurphyEatLeft;
- PlayField16[si] = 0x300; // !!!!!! this time we move murphy at sequence-start!
- PlayField16[si - 1] = 0x1D03;
- si = si - 1;
+ PlayField16[*si] = 0x300; // !!!!!! this time we move murphy at sequence-start!
+ PlayField16[*si - 1] = 0x1D03;
+ *si = *si - 1;
goto loc_StopNoSplit;
// ==========================================================================
loc_g_69F7:
dx = (MurphyVarFaceLeft == 0 ? aniMurphyEatUpRight : aniMurphyEatUpRight);
- PlayField16[si] = 0x1E03;
- PlayField16[si + FieldWidth] = 0x300;
+ PlayField16[*si] = 0x1E03;
+ PlayField16[*si + FieldWidth] = 0x300;
goto loc_StopNoSplit;
// ==========================================================================
// FS: for me this means to blit the first animation frame twice
// end of BugFix
// --------------------------------------------------------------------------
- PlayField16[si] = 0x300; // !!!!!! this time we move murphy at sequence-start!
- PlayField16[si + 1] = 0x1F03;
- si = si + 1;
+ PlayField16[*si] = 0x300; // !!!!!! this time we move murphy at sequence-start!
+ PlayField16[*si + 1] = 0x1F03;
+ *si = *si + 1;
goto loc_StopNoSplit;
// ==========================================================================
loc_g_6A48:
dx = aniTouchRedDisk;
- MovHighByte(&PlayField16[si], 0x20);
- MovHighByte(&PlayField16[si - FieldWidth], 3);
+ MovHighByte(&PlayField16[*si], 0x20);
+ MovHighByte(&PlayField16[*si - FieldWidth], 3);
goto loc_StopNoSplit;
// ==========================================================================
loc_g_6A64:
dx = aniTouchRedDisk;
- MovHighByte(&PlayField16[si], 0x21);
- MovHighByte(&PlayField16[si - 1], 3);
+ MovHighByte(&PlayField16[*si], 0x21);
+ MovHighByte(&PlayField16[*si - 1], 3);
goto loc_StopNoSplit;
// ==========================================================================
loc_g_6A80:
dx = aniTouchRedDisk;
- MovHighByte(&PlayField16[si], 0x22);
- MovHighByte(&PlayField16[si + FieldWidth], 3);
+ MovHighByte(&PlayField16[*si], 0x22);
+ MovHighByte(&PlayField16[*si + FieldWidth], 3);
goto loc_StopNoSplit;
// ==========================================================================
loc_g_6A9C:
dx = aniTouchRedDisk;
- MovHighByte(&PlayField16[si], 0x23);
- MovHighByte(&PlayField16[si + 1], 3);
+ MovHighByte(&PlayField16[*si], 0x23);
+ MovHighByte(&PlayField16[*si + 1], 3);
loc_StopNoSplit:
MovingPictureSequencePhase = 0; // stop picture move sequence
// ==========================================================================
loc_g_6AB8:
- if (PlayField16[si - 2 * FieldWidth] != 0)
+ if (PlayField16[*si - 2 * FieldWidth] != 0)
return subAnimateMurphy;
- PlayField16[si - 2 * FieldWidth] = 0x1200;
- subCopyFieldToScreen(si, aniPushRight);
+ PlayField16[*si - 2 * FieldWidth] = 0x1200;
+ subCopyFieldToScreen(*si, aniPushRight);
dx = aniYellowDisk;
- dxPos = si - FieldWidth;
+ dxPos = *si - FieldWidth;
dx2 = aniPushUpDown;
dx2Step = FieldWidth;
- PlayField16[si] = 0x2403;
+ PlayField16[*si] = 0x2403;
goto loc_MoveNoSplit;
// ==========================================================================
// ==========================================================================
loc_g_6AF1:
- if (PlayField16[si - 2] != 0)
+ if (PlayField16[*si - 2] != 0)
return subAnimateMurphy;
- PlayField16[si - 2] = 0x1200;
- subCopyFieldToScreen(si, aniPushLeft);
+ PlayField16[*si - 2] = 0x1200;
+ subCopyFieldToScreen(*si, aniPushLeft);
dx = aniYellowDisk;
- dxPos = si - 1;
+ dxPos = *si - 1;
dx2 = aniPushLeft;
dx2Step = 1;
- PlayField16[si] = 0x2503;
+ PlayField16[*si] = 0x2503;
goto loc_MoveNoSplit;
// ==========================================================================
// ==========================================================================
loc_g_6B2A:
- if (PlayField16[si + 2 * FieldWidth] != 0)
+ if (PlayField16[*si + 2 * FieldWidth] != 0)
return subAnimateMurphy;
- PlayField16[si + 2 * FieldWidth] = 0x1200;
- subCopyFieldToScreen(si, aniPushRight);
+ PlayField16[*si + 2 * FieldWidth] = 0x1200;
+ subCopyFieldToScreen(*si, aniPushRight);
dx = aniYellowDisk;
- dxPos = si + FieldWidth;
+ dxPos = *si + FieldWidth;
dx2 = aniPushUpDown;
dx2Step = -FieldWidth;
- PlayField16[si] = 0x2703;
+ PlayField16[*si] = 0x2703;
goto loc_MoveNoSplit;
// ==========================================================================
// ==========================================================================
loc_g_6B63:
- if (PlayField16[si + 2] != 0)
+ if (PlayField16[*si + 2] != 0)
return subAnimateMurphy;
- PlayField16[si + 2] = 0x1200;
- subCopyFieldToScreen(si, aniPushRight);
+ PlayField16[*si + 2] = 0x1200;
+ subCopyFieldToScreen(*si, aniPushRight);
dx = aniYellowDisk;
- dxPos = si + 1;
+ dxPos = *si + 1;
dx2 = aniPushRight;
dx2Step = -1;
- PlayField16[si] = 0x2603;
+ PlayField16[*si] = 0x2603;
goto loc_MoveNoSplit;
// ==========================================================================
// ==========================================================================
loc_g_6B9B:
- if (PlayField16[si - 2] != 0)
+ if (PlayField16[*si - 2] != 0)
return subAnimateMurphy;
- PlayField16[si - 2] = 0x800;
- subCopyFieldToScreen(si, aniPushLeft);
+ PlayField16[*si - 2] = 0x800;
+ subCopyFieldToScreen(*si, aniPushLeft);
dx = aniOrangeDisk;
- dxPos = si - 1;
+ dxPos = *si - 1;
dx2 = aniPushLeft;
dx2Step = 1;
- PlayField16[si] = 0x2803;
+ PlayField16[*si] = 0x2803;
goto loc_MoveNoSplit;
// ==========================================================================
// ==========================================================================
loc_g_6BD3:
- if (PlayField16[si + 2] != 0)
+ if (PlayField16[*si + 2] != 0)
return subAnimateMurphy;
- if (PlayField16[si + FieldWidth + 1] == 0) // falling goes before pushing
+ if (PlayField16[*si + FieldWidth + 1] == 0) // falling goes before pushing
return subAnimateMurphy;
- PlayField16[si + 2] = 0x100;
- subCopyFieldToScreen(si, aniPushRight);
+ PlayField16[*si + 2] = 0x100;
+ subCopyFieldToScreen(*si, aniPushRight);
dx = aniOrangeDisk;
- dxPos = si + 1;
+ dxPos = *si + 1;
dx2 = aniPushRight;
dx2Step = -1;
- PlayField16[si] = 0x2903;
+ PlayField16[*si] = 0x2903;
// ==========================================================================
// Copy screen animation action table to action work space
// (To paint sequence: Push Zonk/Disk / release red disk / Port passing)
if (ax == 0) // Sound effects
subSoundFXPush();
- bl = HighByte(PlayField16[si]);
+ bl = HighByte(PlayField16[*si]);
if (bl == 0xE) // Push Zonk to left
goto loc_g_6F7E;
// Follow-up after movement completed 'loc_g_6D35:
MurphyXPos = MurphyXPos + MurphyDX;
MurphyYPos = MurphyYPos + MurphyDY;
- bl = HighByte(PlayField16[si]); // animation phase
- MovHighByte(&PlayField16[si], 0);
+ bl = HighByte(PlayField16[*si]); // animation phase
+ MovHighByte(&PlayField16[*si], 0);
if (bl == 0x1) // space, moving up
goto loc_g_6EC8;
subDisplayInfotronsNeeded();
loc_g_6EC8: // space, base
- PlayField16[si] = fiMurphy;
- subAdjustZonksInfotronsAboveMurphy(si + FieldWidth);
+ PlayField16[*si] = fiMurphy;
+ subAdjustZonksInfotronsAboveMurphy(*si + FieldWidth);
return subAnimateMurphy;
// ==========================================================================
subDisplayInfotronsNeeded();
loc_g_6EE6: // space, base
- PlayField16[si] = fiMurphy;
- subAdjustZonksInfotronsAboveMurphy(si + 1);
+ PlayField16[*si] = fiMurphy;
+ subAdjustZonksInfotronsAboveMurphy(*si + 1);
return subAnimateMurphy;
// ==========================================================================
subDisplayInfotronsNeeded();
loc_g_6F04: // space, base
- if (LowByte(PlayField16[si - FieldWidth]) != fiExplosion)
- PlayField16[si - FieldWidth] = 0;
+ if (LowByte(PlayField16[*si - FieldWidth]) != fiExplosion)
+ PlayField16[*si - FieldWidth] = 0;
- PlayField16[si] = fiMurphy;
+ PlayField16[*si] = fiMurphy;
return subAnimateMurphy;
// ==========================================================================
subDisplayInfotronsNeeded();
loc_g_71C4: // space, base
- subAdjustZonksInfotronsAboveMurphy(si - 1);
- PlayField16[si] = fiMurphy;
+ subAdjustZonksInfotronsAboveMurphy(*si - 1);
+ PlayField16[*si] = fiMurphy;
return subAnimateMurphy;
// ==========================================================================
subDisplayInfotronsNeeded();
loc_g_71E2: // base
- if (LowByte(PlayField16[si - FieldWidth]) != fiExplosion)
- PlayField16[si - FieldWidth] = 0;
+ if (LowByte(PlayField16[*si - FieldWidth]) != fiExplosion)
+ PlayField16[*si - FieldWidth] = 0;
return subAnimateMurphy;
subDisplayInfotronsNeeded();
loc_g_71FE: // base
- if (LowByte(PlayField16[si - 1]) != fiExplosion)
- PlayField16[si - 1] = 0;
+ if (LowByte(PlayField16[*si - 1]) != fiExplosion)
+ PlayField16[*si - 1] = 0;
return subAnimateMurphy;
subDisplayInfotronsNeeded();
loc_g_721A: // base
- if (LowByte(PlayField16[si + FieldWidth]) != fiExplosion)
- PlayField16[si + FieldWidth] = 0;
+ if (LowByte(PlayField16[*si + FieldWidth]) != fiExplosion)
+ PlayField16[*si + FieldWidth] = 0;
return subAnimateMurphy;
subDisplayInfotronsNeeded();
loc_g_7236: // base
- if (LowByte(PlayField16[si + 1]) != fiExplosion)
- PlayField16[si + 1] = 0;
+ if (LowByte(PlayField16[*si + 1]) != fiExplosion)
+ PlayField16[*si + 1] = 0;
return subAnimateMurphy;
// ==========================================================================
loc_g_6F18:
- if (LowByte(PlayField16[si]) != fiExplosion)
- PlayField16[si] = 0;
+ if (LowByte(PlayField16[*si]) != fiExplosion)
+ PlayField16[*si] = 0;
- PlayField16[si - 1] = fiMurphy;
- PlayField16[si - 2] = fiZonk;
- subExplodeSnikSnaksBelow(si - 2);
- si = si - 1;
+ PlayField16[*si - 1] = fiMurphy;
+ PlayField16[*si - 2] = fiZonk;
+ subExplodeSnikSnaksBelow(*si - 2);
+ *si = *si - 1;
return subAnimateMurphy;
// ==========================================================================
// ==========================================================================
loc_g_6F3B:
- if (LowByte(PlayField16[si]) != fiExplosion)
- PlayField16[si] = 0;
+ if (LowByte(PlayField16[*si]) != fiExplosion)
+ PlayField16[*si] = 0;
- PlayField16[si + 1] = fiMurphy;
- PlayField16[si + 2] = fiZonk;
- subExplodeSnikSnaksBelow(si + 2);
- si = si + 1;
+ PlayField16[*si + 1] = fiMurphy;
+ PlayField16[*si + 2] = fiZonk;
+ subExplodeSnikSnaksBelow(*si + 2);
+ *si = *si + 1;
return subAnimateMurphy;
// ==========================================================================
// ==========================================================================
loc_g_6F7E:
- if (DemoKeyCode == keyLeft && PlayField16[si - 1] == fiZonk)
+ if (DemoKeyCode == keyLeft && PlayField16[*si - 1] == fiZonk)
return subAnimateMurphy;
- PlayField16[si] = fiMurphy; // else restore - no more zonk pushing!
- PlayField16[si - 1] = fiZonk;
- if (LowByte(PlayField16[si - 2]) != fiExplosion)
- PlayField16[si - 2] = 0;
+ PlayField16[*si] = fiMurphy; // else restore - no more zonk pushing!
+ PlayField16[*si - 1] = fiZonk;
+ if (LowByte(PlayField16[*si - 2]) != fiExplosion)
+ PlayField16[*si - 2] = 0;
- subCopyFieldToScreen(si, fiMurphy);
+ subCopyFieldToScreen(*si, fiMurphy);
return subAnimateMurphy;
// ==========================================================================
// ==========================================================================
loc_g_6FBC:
- if (DemoKeyCode == keyRight && PlayField16[si + 1] == fiZonk)
+ if (DemoKeyCode == keyRight && PlayField16[*si + 1] == fiZonk)
return subAnimateMurphy;
- PlayField16[si] = fiMurphy; // else restore - no more zonk pushing!
- PlayField16[si + 1] = fiZonk;
- if (LowByte(PlayField16[si + 2]) != fiExplosion)
- PlayField16[si + 2] = 0;
+ PlayField16[*si] = fiMurphy; // else restore - no more zonk pushing!
+ PlayField16[*si + 1] = fiZonk;
+ if (LowByte(PlayField16[*si + 2]) != fiExplosion)
+ PlayField16[*si + 2] = 0;
- subCopyFieldToScreen(si, fiMurphy);
+ subCopyFieldToScreen(*si, fiMurphy);
return subAnimateMurphy;
// ==========================================================================
// ==========================================================================
loc_g_6FFA:
- if (DemoKeyCode == keyLeft && PlayField16[si - 1] == fiOrangeDisk)
+ if (DemoKeyCode == keyLeft && PlayField16[*si - 1] == fiOrangeDisk)
return subAnimateMurphy;
- PlayField16[si] = fiMurphy; // else restore - no more pushing!
- PlayField16[si - 1] = fiOrangeDisk;
- if (LowByte(PlayField16[si - 2]) != fiExplosion)
- PlayField16[si - 2] = 0;
+ PlayField16[*si] = fiMurphy; // else restore - no more pushing!
+ PlayField16[*si - 1] = fiOrangeDisk;
+ if (LowByte(PlayField16[*si - 2]) != fiExplosion)
+ PlayField16[*si - 2] = 0;
- subCopyFieldToScreen(si, fiMurphy);
+ subCopyFieldToScreen(*si, fiMurphy);
return subAnimateMurphy;
// ==========================================================================
// ==========================================================================
loc_g_7038:
- if (DemoKeyCode == keyRight && PlayField16[si + 1] == fiOrangeDisk)
+ if (DemoKeyCode == keyRight && PlayField16[*si + 1] == fiOrangeDisk)
return subAnimateMurphy;
- PlayField16[si] = fiMurphy; // else restore - no more pushing!
- PlayField16[si + 1] = fiOrangeDisk;
- if (LowByte(PlayField16[si + 2]) != fiExplosion)
- PlayField16[si + 2] = 0;
+ PlayField16[*si] = fiMurphy; // else restore - no more pushing!
+ PlayField16[*si + 1] = fiOrangeDisk;
+ if (LowByte(PlayField16[*si + 2]) != fiExplosion)
+ PlayField16[*si + 2] = 0;
- subCopyFieldToScreen(si, fiMurphy);
+ subCopyFieldToScreen(*si, fiMurphy);
return subAnimateMurphy;
// ==========================================================================
// ==========================================================================
loc_g_7076:
- if (DemoKeyCode == keyUp && PlayField16[si - FieldWidth] == fiYellowDisk)
+ if (DemoKeyCode == keyUp && PlayField16[*si - FieldWidth] == fiYellowDisk)
return subAnimateMurphy;
- PlayField16[si] = fiMurphy; // else restore - no more pushing!
- PlayField16[si - FieldWidth] = fiYellowDisk;
- if (LowByte(PlayField16[si - 2 * FieldWidth]) != fiExplosion)
- PlayField16[si - 2 * FieldWidth] = 0;
+ PlayField16[*si] = fiMurphy; // else restore - no more pushing!
+ PlayField16[*si - FieldWidth] = fiYellowDisk;
+ if (LowByte(PlayField16[*si - 2 * FieldWidth]) != fiExplosion)
+ PlayField16[*si - 2 * FieldWidth] = 0;
- subCopyFieldToScreen(si, fiMurphy);
+ subCopyFieldToScreen(*si, fiMurphy);
return subAnimateMurphy;
// ==========================================================================
// ==========================================================================
loc_g_70B4:
- if (DemoKeyCode == keyLeft && PlayField16[si - 1] == fiYellowDisk)
+ if (DemoKeyCode == keyLeft && PlayField16[*si - 1] == fiYellowDisk)
return subAnimateMurphy;
- PlayField16[si] = fiMurphy; // else restore - no more pushing!
- PlayField16[si - 1] = fiYellowDisk;
- if (LowByte(PlayField16[si - 2]) != fiExplosion)
- PlayField16[si - 2] = 0;
+ PlayField16[*si] = fiMurphy; // else restore - no more pushing!
+ PlayField16[*si - 1] = fiYellowDisk;
+ if (LowByte(PlayField16[*si - 2]) != fiExplosion)
+ PlayField16[*si - 2] = 0;
- subCopyFieldToScreen(si, fiMurphy);
+ subCopyFieldToScreen(*si, fiMurphy);
return subAnimateMurphy;
// ==========================================================================
// ==========================================================================
loc_g_70F2:
- if (DemoKeyCode == keyDown && PlayField16[si + FieldWidth] == fiYellowDisk)
+ if (DemoKeyCode == keyDown && PlayField16[*si + FieldWidth] == fiYellowDisk)
return subAnimateMurphy;
- PlayField16[si] = fiMurphy; // else restore - no more pushing!
- PlayField16[si + FieldWidth] = fiYellowDisk;
- if (LowByte(PlayField16[si + 2 * FieldWidth]) != fiExplosion)
- PlayField16[si + 2 * FieldWidth] = 0;
+ PlayField16[*si] = fiMurphy; // else restore - no more pushing!
+ PlayField16[*si + FieldWidth] = fiYellowDisk;
+ if (LowByte(PlayField16[*si + 2 * FieldWidth]) != fiExplosion)
+ PlayField16[*si + 2 * FieldWidth] = 0;
- subCopyFieldToScreen(si, fiMurphy);
+ subCopyFieldToScreen(*si, fiMurphy);
return subAnimateMurphy;
// ==========================================================================
// ==========================================================================
loc_g_7130:
- if (DemoKeyCode == keyRight && PlayField16[si + 1] == fiYellowDisk)
+ if (DemoKeyCode == keyRight && PlayField16[*si + 1] == fiYellowDisk)
return subAnimateMurphy;
- PlayField16[si] = fiMurphy; // else restore - no more pushing!
- PlayField16[si + 1] = fiYellowDisk;
- if (LowByte(PlayField16[si + 2]) != fiExplosion)
- PlayField16[si + 2] = 0;
+ PlayField16[*si] = fiMurphy; // else restore - no more pushing!
+ PlayField16[*si + 1] = fiYellowDisk;
+ if (LowByte(PlayField16[*si + 2]) != fiExplosion)
+ PlayField16[*si + 2] = 0;
- subCopyFieldToScreen(si, fiMurphy);
+ subCopyFieldToScreen(*si, fiMurphy);
return subAnimateMurphy;
// ==========================================================================
loc_g_716E:
if (DemoKeyCode != keySpace)
{
- PlayField16[si] = fiMurphy;
- subCopyFieldToScreen(si, fiMurphy);
+ PlayField16[*si] = fiMurphy;
+ subCopyFieldToScreen(*si, fiMurphy);
RedDiskReleasePhase = 0;
}
else if (MovingPictureSequencePhase == 0x20)
{
- subCopyFieldToScreen(si, 43); // anxious murphy
+ subCopyFieldToScreen(*si, 43); // anxious murphy
RedDiskReleasePhase = 1;
}
// ==========================================================================
loc_g_7244:
- if (LowByte(PlayField16[si]) != fiExplosion)
- PlayField16[si] = 0;
+ if (LowByte(PlayField16[*si]) != fiExplosion)
+ PlayField16[*si] = 0;
- PlayField16[si - 2 * FieldWidth] = fiMurphy;
+ PlayField16[*si - 2 * FieldWidth] = fiMurphy;
SplitMoveFlag = 0;
- si = si - FieldWidth;
- if (HighByte(PlayField16[si]) == 1)
- subSpPortTest(si);
+ *si = *si - FieldWidth;
+ if (HighByte(PlayField16[*si]) == 1)
+ subSpPortTest(*si);
- si = si - FieldWidth;
+ *si = *si - FieldWidth;
return subAnimateMurphy;
// ==========================================================================
// ==========================================================================
loc_g_7272:
- if (LowByte(PlayField16[si]) != fiExplosion)
- PlayField16[si] = 0;
+ if (LowByte(PlayField16[*si]) != fiExplosion)
+ PlayField16[*si] = 0;
- PlayField16[si - 2] = fiMurphy;
+ PlayField16[*si - 2] = fiMurphy;
SplitMoveFlag = 0;
- si = si - 1;
- if (HighByte(PlayField16[si]) == 1)
- subSpPortTest(si);
+ *si = *si - 1;
+ if (HighByte(PlayField16[*si]) == 1)
+ subSpPortTest(*si);
- si = si - 1;
+ *si = *si - 1;
return subAnimateMurphy;
// ==========================================================================
// ==========================================================================
loc_g_729F:
- if (LowByte(PlayField16[si]) != fiExplosion)
- PlayField16[si] = 0;
+ if (LowByte(PlayField16[*si]) != fiExplosion)
+ PlayField16[*si] = 0;
- PlayField16[si + 2 * FieldWidth] = fiMurphy;
+ PlayField16[*si + 2 * FieldWidth] = fiMurphy;
SplitMoveFlag = 0;
- si = si + FieldWidth;
- if (HighByte(PlayField16[si]) == 1)
- subSpPortTest(si);
+ *si = *si + FieldWidth;
+ if (HighByte(PlayField16[*si]) == 1)
+ subSpPortTest(*si);
- si = si + FieldWidth;
+ *si = *si + FieldWidth;
return subAnimateMurphy;
// ==========================================================================
// ==========================================================================
loc_g_72CD:
- if (LowByte(PlayField16[si]) != fiExplosion)
- PlayField16[si] = 0;
+ if (LowByte(PlayField16[*si]) != fiExplosion)
+ PlayField16[*si] = 0;
- PlayField16[si + 2] = fiMurphy;
+ PlayField16[*si + 2] = fiMurphy;
SplitMoveFlag = 0;
- si = si + 1;
- if (HighByte(PlayField16[si]) == 1)
- subSpPortTest(si);
+ *si = *si + 1;
+ if (HighByte(PlayField16[*si]) == 1)
+ subSpPortTest(*si);
- si = si + 1;
+ *si = *si + 1;
return subAnimateMurphy;
// ==========================================================================
// ==========================================================================
loc_g_72FA:
- if (LowByte(PlayField16[si]) != fiExplosion)
- PlayField16[si] = 0;
+ if (LowByte(PlayField16[*si]) != fiExplosion)
+ PlayField16[*si] = 0;
- si = si - FieldWidth;
- PlayField16[si] = fiMurphy;
- subEatRedDisk(si); // inc+show Murphy's red disks
+ *si = *si - FieldWidth;
+ PlayField16[*si] = fiMurphy;
+ subEatRedDisk(*si); // inc+show Murphy's red disks
return subAnimateMurphy;
// ==========================================================================
// ==========================================================================
loc_g_7318:
- if (LowByte(PlayField16[si + 1]) != fiExplosion)
- PlayField16[si + 1] = 0;
+ if (LowByte(PlayField16[*si + 1]) != fiExplosion)
+ PlayField16[*si + 1] = 0;
- PlayField16[si] = fiMurphy;
- subEatRedDisk(si); // inc+show Murphy's red disks
+ PlayField16[*si] = fiMurphy;
+ subEatRedDisk(*si); // inc+show Murphy's red disks
return subAnimateMurphy;
// ==========================================================================
// ==========================================================================
loc_g_7333:
- if (LowByte(PlayField16[si]) != fiExplosion)
- PlayField16[si] = 0;
+ if (LowByte(PlayField16[*si]) != fiExplosion)
+ PlayField16[*si] = 0;
- si = si + FieldWidth;
- PlayField16[si] = fiMurphy;
- subEatRedDisk(si); // inc+show Murphy's red disks
+ *si = *si + FieldWidth;
+ PlayField16[*si] = fiMurphy;
+ subEatRedDisk(*si); // inc+show Murphy's red disks
return subAnimateMurphy;
// ==========================================================================
// ==========================================================================
loc_g_7351:
- if (LowByte(PlayField16[si - 1]) != fiExplosion)
- PlayField16[si - 1] = 0;
+ if (LowByte(PlayField16[*si - 1]) != fiExplosion)
+ PlayField16[*si - 1] = 0;
- PlayField16[si] = fiMurphy;
- subEatRedDisk(si); // inc+show Murphy's red disks
+ PlayField16[*si] = fiMurphy;
+ subEatRedDisk(*si); // inc+show Murphy's red disks
return subAnimateMurphy;
// ==========================================================================
// ==========================================================================
loc_g_736C:
- if (LowByte(PlayField16[si - FieldWidth]) != fiExplosion)
- PlayField16[si - FieldWidth] = 0;
+ if (LowByte(PlayField16[*si - FieldWidth]) != fiExplosion)
+ PlayField16[*si - FieldWidth] = 0;
- subEatRedDisk(si - FieldWidth); // inc+show Murphy's red disks
+ subEatRedDisk(*si - FieldWidth); // inc+show Murphy's red disks
return subAnimateMurphy;
// ==========================================================================
// ==========================================================================
loc_g_7381:
- if (LowByte(PlayField16[si - 1]) != fiExplosion)
- PlayField16[si - 1] = 0;
+ if (LowByte(PlayField16[*si - 1]) != fiExplosion)
+ PlayField16[*si - 1] = 0;
- subEatRedDisk(si - 1); // inc+show Murphy's red disks
+ subEatRedDisk(*si - 1); // inc+show Murphy's red disks
return subAnimateMurphy;
// ==========================================================================
// ==========================================================================
loc_g_7396:
- if (LowByte(PlayField16[si + FieldWidth]) != fiExplosion)
- PlayField16[si + FieldWidth] = 0;
+ if (LowByte(PlayField16[*si + FieldWidth]) != fiExplosion)
+ PlayField16[*si + FieldWidth] = 0;
- subEatRedDisk(si + FieldWidth); // inc+show Murphy's red disks
+ subEatRedDisk(*si + FieldWidth); // inc+show Murphy's red disks
return subAnimateMurphy;
// ==========================================================================
// ==========================================================================
loc_g_73AB:
- if (LowByte(PlayField16[si + 1]) != fiExplosion)
- PlayField16[si + 1] = 0;
+ if (LowByte(PlayField16[*si + 1]) != fiExplosion)
+ PlayField16[*si + 1] = 0;
- subEatRedDisk(si + 1); // inc+show Murphy's red disks
+ subEatRedDisk(*si + 1); // inc+show Murphy's red disks
return subAnimateMurphy;
// ==========================================================================
// ==========================================================================
loc_g_73C0:
- if (LowByte(PlayField16[si]) != fiExplosion)
- PlayField16[si] = 0;
+ if (LowByte(PlayField16[*si]) != fiExplosion)
+ PlayField16[*si] = 0;
- si = si - FieldWidth;
- PlayField16[si] = fiMurphy;
- PlayField16[si - FieldWidth] = fiYellowDisk;
+ *si = *si - FieldWidth;
+ PlayField16[*si] = fiMurphy;
+ PlayField16[*si - FieldWidth] = fiYellowDisk;
return subAnimateMurphy;
// ==========================================================================
// ==========================================================================
loc_g_73DD:
- if (LowByte(PlayField16[si]) != fiExplosion)
- PlayField16[si] = 0;
+ if (LowByte(PlayField16[*si]) != fiExplosion)
+ PlayField16[*si] = 0;
- si = si - 1;
- PlayField16[si] = fiMurphy;
- PlayField16[si - 1] = fiYellowDisk;
+ *si = *si - 1;
+ PlayField16[*si] = fiMurphy;
+ PlayField16[*si - 1] = fiYellowDisk;
return subAnimateMurphy;
// ==========================================================================
// ==========================================================================
loc_g_73FA:
- if (LowByte(PlayField16[si]) != fiExplosion)
- PlayField16[si] = 0;
+ if (LowByte(PlayField16[*si]) != fiExplosion)
+ PlayField16[*si] = 0;
- si = si + FieldWidth;
- PlayField16[si] = fiMurphy;
- PlayField16[si + FieldWidth] = fiYellowDisk;
+ *si = *si + FieldWidth;
+ PlayField16[*si] = fiMurphy;
+ PlayField16[*si + FieldWidth] = fiYellowDisk;
return subAnimateMurphy;
// ==========================================================================
// ==========================================================================
loc_g_7417:
- if (LowByte(PlayField16[si]) != fiExplosion)
- PlayField16[si] = 0;
+ if (LowByte(PlayField16[*si]) != fiExplosion)
+ PlayField16[*si] = 0;
- si = si + 1;
- PlayField16[si] = fiMurphy;
- PlayField16[si + 1] = fiYellowDisk;
+ *si = *si + 1;
+ PlayField16[*si] = fiMurphy;
+ PlayField16[*si + 1] = fiYellowDisk;
return subAnimateMurphy;
// ==========================================================================
// ==========================================================================
loc_g_7434:
- if (LowByte(PlayField16[si]) != fiExplosion)
- PlayField16[si] = 0;
+ if (LowByte(PlayField16[*si]) != fiExplosion)
+ PlayField16[*si] = 0;
- si = si - 1;
- PlayField16[si] = fiMurphy;
- PlayField16[si - 1] = fiOrangeDisk;
+ *si = *si - 1;
+ PlayField16[*si] = fiMurphy;
+ PlayField16[*si - 1] = fiOrangeDisk;
return subAnimateMurphy;
// ==========================================================================
// ==========================================================================
loc_g_7451:
- if (LowByte(PlayField16[si]) != fiExplosion)
- PlayField16[si] = 0;
+ if (LowByte(PlayField16[*si]) != fiExplosion)
+ PlayField16[*si] = 0;
- si = si + 1;
- PlayField16[si] = fiMurphy;
- PlayField16[si + 1] = fiOrangeDisk;
- if (PlayField16[si + FieldWidth + 1] == 0) // make it fall down if below is empty
+ *si = *si + 1;
+ PlayField16[*si] = fiMurphy;
+ PlayField16[*si + 1] = fiOrangeDisk;
+ if (PlayField16[*si + FieldWidth + 1] == 0) // make it fall down if below is empty
{
- MovHighByte(&PlayField16[si + 1], 0x20);
- MovHighByte(&PlayField16[si + FieldWidth + 1], fiOrangeDisk);
+ MovHighByte(&PlayField16[*si + 1], 0x20);
+ MovHighByte(&PlayField16[*si + FieldWidth + 1], fiOrangeDisk);
}
return subAnimateMurphy;
// ==========================================================================
loc_g_747F:
- PlayField16[si] = fiMurphy;
+ PlayField16[*si] = fiMurphy;
RedDiskReleasePhase = 2;
RedDiskCount = RedDiskCount - 1;
subDisplayRedDiskCount();