Memory.write8 bugfix