> var dword temp1 > var byte temp1_array[4] at temp1 > > temp1_array[0] = 0xAA > temp1_array[1] = 0xBB > temp1_array[2] = 0xCC > temp1_array[3] = 0xDD > > print_byte_hex(serial_hw_data, temp1) -- will send DDCCBBAA to the > serial port > > Matt.
Thanks, I must say, I would not have thought of these solutions. I was not completely clear in my question (sorry). The main reason was to have a dword var as result that I could use in a FOR-LOOP. (ofcourse your print_... is nice to know also) @ Matt: Is it correct now to say that the result of the four bytes will be in the var temp1? I realy need to "open" my eyes more for the "array" functionality. for 4 loop sd_read(read) temp1 = temp1 << 8 temp1 = temp1 | read end loop This solution is indeed "elegant". Shift your data and .... -- You received this message because you are subscribed to the Google Groups "jallib" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/jallib?hl=en.
