Hi, I solved my problem in this way (bottom). I do not now if this is the "best" way to do it? I read 4 bytes of data from a WAV file to determine the length of the file. The result must be calculated to determine the total length.
byte_1 + byte_2*256 +byte_3*65536 +... This did not work => warnings (limit to 256....) var byte x var dword Size var dword y ; Reads 4 chars to reach the length of the file fat32_small_file_read(x) ; get one byte of data serial_data = x ; send it to the serial port Size=x fat32_small_file_read(x) ; get one byte of data serial_data = x ; send it to the serial port Size=Size+256*x fat32_small_file_read(x) ; get one byte of data serial_data = x ; send it to the serial port Size=Size+65536*x This works, but I want to know if this is the most elegant solution in Jal?? var byte x var dword Size var dword y ; Reads 4 chars to reach the length of the file fat32_small_file_read(x) ; get one byte of data serial_data = x ; send it to the serial port Size=x fat32_small_file_read(x) ; get one byte of data serial_data = x ; send it to the serial port y=x Size=Size+256*y fat32_small_file_read(x) ; get one byte of data serial_data = x ; send it to the serial port y=x Size=Size+65536*y Thanks YoBe -- 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.
