implement read/write. add few examples of translating to asm