writes code and rw memory but has 64/32 bit issues