added Memory.write8 and a makeshift i2b