I have difficulty in understanding what you want to do! You should post the complete code to better understand what you have done and what you want to achieve.

Remember that you cannot write and read with the same control!

use:

WriteDev con %10100000
ReadDev con %10100001

Perhaps it will solve your present problem.

Al.