/* Make sure the memory buffer is in physical memory... */
if (!physicalAddressOk (diskBufferLow) ||
!physicalAddressOk (diskBufferHigh-1) ||
inMemoryMappedArea (diskBufferLow) ||
inMemoryMappedArea (diskBufferHigh-1)) {
fprintf (stderr, "\n\rDISK ERROR: The memory buffer is not all in physical memory or is in the memory-mapped region. An interrupt will occur when you proceed!\n\r");
fprintf (stderr, "\n\rMEMORY ACCESS ERROR: The BLITZ program has attempted to read or write a memory word that is currently involved in a disk read or write operation!\n\r");
controlCPressed = 1;
}
}
/* setSimulationConstants ()
**
** This routine initializes some important constants related to the simulation.
** It gets values from the ".blitzrc" file if it exists, or uses defaults, if not.
*/
void setSimulationConstants () {
int i, errorInValue;
FILE * blitzrc;
char * first, * second, * p;
errorInValue = 0;
defaultSimulationConstants ();
// Try to open the ".blitzrc" file...
blitzrc = fopen (".blitzrc", "r");
if (blitzrc != NULL) {
// printf ("Reading simulation values from file \".blitzrc\"...\n");