Add basic support for memory accesses