Hello everyone,

I've been banging my head with this for the past 2 days
and it's time to ask you guys and gals for advice. Here's
the code:


Start:
Pulse = 0
PULSIN Rx_Pin, 0, Pulse
IF Pulse < 290 THEN Start

Get_Data:
FOR i = 0 to 6
FOR w = 0 TO 5
Pulse = 0
PULSIN Rx_Pin, 0, Pulse
If Pulse > 80 and Pulse < 120 THEN Rx_Bit = 0
IF Pulse > 180 AND Pulse < 220 Then Rx_Bit = 1
Rx_Byte = Rx_Byte << 1
Rx_Byte.0 = Rx_bit
NEXT w
Rx_Data[i] = Rx_Byte
NEXT i
i = 0
w = 0
GOSUB Send_Data
GOTO Start

END

Now, when I send this to hyperterminal all bits are shifted
one place to the left. I understand that I operate with
8 bits per Byte and receive only 6 bits (LSB) but I can't
figure out why my 6 bits get placed between Rx_Byte.7
and Rx_Byte.0. I'd like it to be right justified. can someone
help? Thanks!

YZ7REA Vladimir