Fix 1 in Version 1 of Phase-I of the OS

The WRITE and READ function has been re-implemented as by converting
IR[3]=0 instead of passing the value to the function