implement read/write registry func
implement read/write registry test func
send correct value to reg 0