write to memory function complete, still working on the fetch and decode function -- compiles