@Override
	public final void setMemoryBank(MemoryBank bank) {
		AddressSpace spc = bank.getSpace();
		int index = spc.getUnique();

		while (index >= memspace.size())
			memspace.push_back(null);

		memspace.set(index, bank);
	}
MemoryBanks associated with specific address spaces must be registers with this MemoryState
via this method. Each address space that will be used during emulation must be registered
separately. The MemoryState object does not assume responsibility for freeing the MemoryBank.

@param bank is a pointer to the MemoryBank to be registered
Ghidra/Framework/Emulation/src/main/java/ghidra/pcode/memstate/DefaultMemoryState.java