Updated MAX_MEMORY from FFFF to 3FFF