Code:
count PORTC.5, 1000, W1
write 1,W1
read 1,X1
write 2,X1
read 2,X2
Should be

Code:
count PORTC.5, 1000, W1
write 1,W1.byte0
write 2,W1.byte1
read 1,X1
read 2,X2
Al.