private String DisplayMemoryMap(int position)
	{
		String tempMemory = "";
		String memoryMap = "";
		byte cpuMemory[] = emulator.getMemoryArray();
		int x = 0;
		int y = 0;
		
		//confirm that the position is a valid memory address value
		if(position >= 0 && position <= 65535)
		{
			//loop until 256 bytes have been constructed or the value exceeds 65535
			for(x = position;(x < position + 256) && (x <= 65535);x += 10)
			{
				tempMemory = String.format("%04X  :  ", x);
				
				//loop until 10 bytes have been printed (10 addresses per line)
				for(y = 0; y < 10; y++)
				{
					//confirm value is within the 256 address range and it is less than or equal to address 65535
					if((x + y) < position + 256 && (x + y) <= 65535)
					{
						tempMemory += String.format("%02X  ", cpuMemory[x + y]);
					}
				}
				
				//build up memory map to display on the console
				memoryMap += tempMemory + "\n";
			}
		}
		else
		{
			//usage error due to invalid position value
			memoryMap = "\nUsage : M or MEMORY [address]\n";
		}
		
		return memoryMap;
	}