Rectified read.S and write.S
r2 to r0
Add comments