Some silly bugs are undoubtedly lurking here, but sometimes this will successfully read and write target RAM :)