dz80/dissz80.c
/*
	PrepareOpMap()

	This was changed for dZ80 2.0 so that the opcode map is always allocated and initialised with
	all bits set to "code". This was to allow for the script to manipulate the opMap regardless of
	whether one had been loaded.
*/
PrepareOpMap()
This was changed for dZ80 2.0 so that the opcode map is always allocated and initialised with
all bits set to "code". This was to allow for the script to manipulate the opMap regardless of
whether one had been loaded.
PrepareOpMap () This was changed for dZ80 2 . 0 so that the opcode map is always allocated and initialised with all bits set to " code " . This was to allow for the script to manipulate the opMap regardless of whether one had been loaded .
int dZ80_AllocateOpMap(DISZ80 *d)
	{     
	if (d->opMap == NULL)
		{
		if ((d->opMap = AllocateMap(d, "Couldn't allocate memory for the opcode map.", Z80MEMSIZE/8)) == NULL)
			{
			DisZ80CleanUp(d);
			return DERR_OUTOFMEM;
			}
	memset(d->opMap, 0xff, Z80MEMSIZE / 8);
		}
	return DERR_NONE;
}
int dZ80_AllocateOpMap ( DISZ80 * d ) { if ( d -> opMap == NULL ) { if ( ( d -> opMap = AllocateMap ( d , " " , Z80MEMSIZE / 8 ) ) == NULL ) { DisZ80CleanUp ( d ) ; return DERR_OUTOFMEM ; } memset ( d -> opMap , 0xff , Z80MEMSIZE / 8 ) ; } return DERR_NONE ; }
PrepareOpMap()
This was changed for dZ80 2.0 so that the opcode map is always allocated and initialised with
all bits set to "code".
PrepareOpMap () This was changed for dZ80 2 . 0 so that the opcode map is always allocated and initialised with all bits set to " code " .
/* Set all the bits to "code" */