> 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
This is the most efficient solution in both speed, code and ram usage. You asked for "elegant" though ;-) var byte read var dword temp1=0 for 4 loop sd_read(read) temp1 = temp1 << 8 temp1 = temp1 | read end loop > > byte_1 + byte_2*256 +byte_3*65536 +... > > > > This did not work => warnings (limit to 256....) It would work with explicit casting: dword(byte_1) + dword(byte_2)*256 +dword(byte_3)*65536 +... But this is probably the worst solution regarding speed and ressources Greets, Kiste -- 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.
