Fabio Fumi
/
send_to_sharp
Renamed
Diff: bin_file.h
- Revision:
- 5:062962db7a48
- Parent:
- 2:dff96be9617e
diff -r 6237f9e5e798 -r 062962db7a48 bin_file.h --- a/bin_file.h Wed Feb 23 12:24:16 2022 +0000 +++ b/bin_file.h Tue Mar 29 10:06:20 2022 +0000 @@ -1,14 +1,71 @@ #ifndef BIN_FILE_SIZE -#define BIN_FILE_SIZE 40 // need to set manually (does NOT include closing 0xFF) -char bin_file_name[] = "HELLO"; +#define BIN_FILE_SIZE 40 // HARDCODED file, size to be set manually (does NOT include closing EOF, 0xFF) + +static uint32_t file_pos ; +const char bin_file_name[] = "SUBMAR"; // Byte stream from file generated with BAS2IMG (PocketTools) -char bin_file_bytes[] = +const char bin_file_bytes[] = { +// HELLO.BAS , size 40 0x00, 0x01, 0x0D, 0xD7, 0x48, 0x65, 0x6C, 0x6C, 0x6F, 0x20, 0x57, 0x6F, 0x72, 0x6C, 0x64, 0x0D, 0x00, 0x0A, 0x10, 0xDE, 0x22, 0x48, 0x65, 0x6C, 0x6C, 0x6F, 0x20, 0x57, 0x6F, 0x72, 0x6C, 0x64, 0x21, 0x22, 0x0D, 0x00, 0x14, 0x02, 0xD8, 0x0D, +/* submarine , size 1030 + 0x0F, 0x3E, 0x11, 0x22, 0x41, 0x22, 0xC9, 0x3A, 0x58, 0x3D, 0x31, 0x32, 0x33, 0x31, 0x37, 0x3A, 0x59, 0x3D, 0x38, 0x0D, + 0x0F, 0x3F, 0x11, 0xDF, 0x22, 0x4B, 0x41, 0x52, 0x54, 0x45, 0x28, 0x31, 0x2D, 0x37, 0x29, 0x3A, 0x22, 0x3B, 0x5A, 0x0D, + 0x0F, 0x41, 0x07, 0xC5, 0x30, 0x3A, 0xDE, 0x22, 0x22, 0x0D, 0x0F, 0x46, 0x11, 0xCC, 0x31, 0x32, 0x30, 0x38, 0x3A, 0xE4, + 0x33, 0x39, 0x37, 0x30, 0x2B, 0x5A, 0x2A, 0x33, 0x30, 0x0D, 0x0F, 0x4B, 0x12, 0xD5, 0x49, 0x3D, 0x31, 0x32, 0x33, 0x31, + 0x37, 0xD0, 0x31, 0x32, 0x32, 0x38, 0x38, 0xD1, 0x2D, 0x31, 0x0D, 0x0F, 0x50, 0x08, 0xDB, 0x41, 0x3A, 0xCD, 0x49, 0x2C, + 0x41, 0x0D, 0x0F, 0x5A, 0x03, 0xD9, 0x49, 0x0D, 0x0F, 0x5F, 0x0B, 0xE4, 0x33, 0x39, 0x37, 0x30, 0x2B, 0x5A, 0x2A, 0x33, + 0x30, 0x0D, 0x0F, 0x64, 0x2A, 0x22, 0x22, 0x58, 0x3D, 0x58, 0x2D, 0x31, 0x3A, 0xD4, 0x58, 0x3C, 0x31, 0x32, 0x32, 0x38, + 0x38, 0xC4, 0x33, 0x3A, 0xDD, 0x22, 0x4B, 0x41, 0x52, 0x54, 0x45, 0x22, 0x3B, 0x5A, 0x3B, 0x22, 0x47, 0x45, 0x53, 0x43, + 0x48, 0x41, 0x46, 0x46, 0x54, 0x22, 0x0D, 0x0F, 0x66, 0x15, 0xD4, 0x28, 0x59, 0xA1, 0x28, 0xA7, 0x58, 0x29, 0x29, 0x3C, + 0x3E, 0x30, 0xC4, 0x31, 0x3A, 0xC6, 0x33, 0x39, 0x30, 0x32, 0x0D, 0x0F, 0x69, 0x16, 0xCD, 0x58, 0x2C, 0x59, 0xA2, 0x28, + 0xA7, 0x58, 0x29, 0x3A, 0xDB, 0x58, 0x31, 0x3A, 0xCD, 0x58, 0x2B, 0x31, 0x2C, 0x58, 0x31, 0x0D, 0x0F, 0x6E, 0x03, 0xC6, + 0xAD, 0x0D, 0x0F, 0x78, 0x15, 0x22, 0x38, 0x22, 0x59, 0x3D, 0x59, 0x2F, 0x28, 0x28, 0x59, 0x3E, 0x31, 0x29, 0x2B, 0x31, + 0x29, 0x3A, 0xC6, 0x22, 0x22, 0x0D, 0x0F, 0x82, 0x16, 0x22, 0x32, 0x22, 0x59, 0x3D, 0x59, 0x2A, 0x28, 0x28, 0x59, 0x3C, + 0x36, 0x34, 0x29, 0x2B, 0x31, 0x29, 0x3A, 0xC6, 0x22, 0x22, 0x0D, 0x0F, 0xA0, 0x4C, 0xDC, 0x31, 0x31, 0x33, 0x2C, 0x39, + 0x39, 0x2C, 0x39, 0x39, 0x2C, 0x31, 0x30, 0x33, 0x2C, 0x31, 0x31, 0x33, 0x2C, 0x39, 0x37, 0x2C, 0x36, 0x37, 0x2C, 0x37, + 0x2C, 0x31, 0x35, 0x2C, 0x37, 0x31, 0x2C, 0x39, 0x35, 0x2C, 0x36, 0x37, 0x2C, 0x36, 0x37, 0x2C, 0x31, 0x30, 0x33, 0x2C, + 0x31, 0x31, 0x33, 0x2C, 0x39, 0x37, 0x2C, 0x37, 0x31, 0x2C, 0x31, 0x31, 0x35, 0x2C, 0x36, 0x37, 0x2C, 0x37, 0x31, 0x2C, + 0x31, 0x31, 0x35, 0x2C, 0x37, 0x31, 0x2C, 0x37, 0x39, 0x0D, 0x0F, 0xA5, 0x17, 0xDC, 0x39, 0x39, 0x2C, 0x36, 0x35, 0x2C, + 0x37, 0x39, 0x2C, 0x36, 0x37, 0x2C, 0x31, 0x31, 0x33, 0x2C, 0x37, 0x39, 0x2C, 0x39, 0x39, 0x0D, 0x0F, 0xBE, 0x49, 0xDC, + 0x36, 0x37, 0x2C, 0x37, 0x31, 0x2C, 0x37, 0x39, 0x2C, 0x39, 0x39, 0x2C, 0x39, 0x37, 0x2C, 0x36, 0x35, 0x2C, 0x31, 0x31, + 0x35, 0x2C, 0x31, 0x30, 0x33, 0x2C, 0x36, 0x37, 0x2C, 0x37, 0x31, 0x2C, 0x33, 0x31, 0x2C, 0x31, 0x35, 0x2C, 0x33, 0x31, + 0x2C, 0x36, 0x33, 0x2C, 0x33, 0x31, 0x2C, 0x37, 0x39, 0x2C, 0x31, 0x30, 0x33, 0x2C, 0x36, 0x37, 0x2C, 0x31, 0x31, 0x33, + 0x2C, 0x37, 0x31, 0x2C, 0x31, 0x31, 0x35, 0x2C, 0x31, 0x30, 0x33, 0x0D, 0x0F, 0xC3, 0x1B, 0xDC, 0x31, 0x30, 0x33, 0x2C, + 0x31, 0x31, 0x35, 0x2C, 0x31, 0x31, 0x35, 0x2C, 0x37, 0x31, 0x2C, 0x37, 0x39, 0x2C, 0x33, 0x2C, 0x33, 0x31, 0x2C, 0x36, + 0x37, 0x0D, 0x0F, 0xDC, 0x48, 0xDC, 0x39, 0x37, 0x2C, 0x39, 0x37, 0x2C, 0x31, 0x32, 0x33, 0x2C, 0x31, 0x32, 0x33, 0x2C, + 0x36, 0x37, 0x2C, 0x37, 0x31, 0x2C, 0x36, 0x37, 0x2C, 0x31, 0x31, 0x35, 0x2C, 0x31, 0x31, 0x35, 0x2C, 0x39, 0x39, 0x2C, + 0x39, 0x37, 0x2C, 0x31, 0x32, 0x31, 0x2C, 0x39, 0x37, 0x2C, 0x39, 0x39, 0x2C, 0x31, 0x31, 0x35, 0x2C, 0x31, 0x31, 0x35, + 0x2C, 0x31, 0x31, 0x35, 0x2C, 0x36, 0x37, 0x2C, 0x36, 0x37, 0x2C, 0x37, 0x39, 0x2C, 0x37, 0x39, 0x0D, 0x0F, 0xE1, 0x1E, + 0xDC, 0x39, 0x37, 0x2C, 0x39, 0x37, 0x2C, 0x39, 0x39, 0x2C, 0x37, 0x39, 0x2C, 0x37, 0x31, 0x2C, 0x39, 0x39, 0x2C, 0x31, + 0x31, 0x33, 0x2C, 0x31, 0x31, 0x35, 0x2C, 0x37, 0x31, 0x0D, 0x0F, 0xFA, 0x49, 0xDC, 0x31, 0x30, 0x33, 0x2C, 0x31, 0x30, + 0x33, 0x2C, 0x31, 0x31, 0x35, 0x2C, 0x31, 0x31, 0x35, 0x2C, 0x31, 0x32, 0x31, 0x2C, 0x31, 0x32, 0x31, 0x2C, 0x39, 0x37, + 0x2C, 0x39, 0x39, 0x2C, 0x37, 0x31, 0x2C, 0x39, 0x39, 0x2C, 0x31, 0x30, 0x33, 0x2C, 0x31, 0x31, 0x35, 0x2C, 0x31, 0x30, + 0x33, 0x2C, 0x33, 0x2C, 0x31, 0x32, 0x31, 0x2C, 0x31, 0x32, 0x31, 0x2C, 0x31, 0x32, 0x31, 0x2C, 0x31, 0x31, 0x33, 0x2C, + 0x39, 0x39, 0x2C, 0x37, 0x31, 0x0D, 0x0F, 0xFF, 0x25, 0xDC, 0x37, 0x39, 0x2C, 0x37, 0x31, 0x2C, 0x31, 0x30, 0x33, 0x2C, + 0x31, 0x30, 0x33, 0x2C, 0x31, 0x30, 0x33, 0x2C, 0x31, 0x30, 0x33, 0x2C, 0x39, 0x39, 0x2C, 0x31, 0x31, 0x33, 0x2C, 0x31, + 0x32, 0x31, 0x2C, 0x39, 0x39, 0x0D, 0x10, 0x18, 0x47, 0xDC, 0x37, 0x31, 0x2C, 0x37, 0x31, 0x2C, 0x39, 0x39, 0x2C, 0x31, + 0x31, 0x33, 0x2C, 0x31, 0x32, 0x30, 0x2C, 0x31, 0x32, 0x34, 0x2C, 0x31, 0x32, 0x30, 0x2C, 0x36, 0x34, 0x2C, 0x39, 0x39, + 0x2C, 0x31, 0x31, 0x32, 0x2C, 0x31, 0x31, 0x33, 0x2C, 0x39, 0x39, 0x2C, 0x39, 0x39, 0x2C, 0x39, 0x39, 0x2C, 0x31, 0x31, + 0x33, 0x2C, 0x31, 0x32, 0x34, 0x2C, 0x39, 0x36, 0x2C, 0x31, 0x32, 0x30, 0x2C, 0x39, 0x36, 0x2C, 0x31, 0x32, 0x36, 0x0D, + 0x10, 0x1D, 0x25, 0xDC, 0x31, 0x32, 0x34, 0x2C, 0x31, 0x31, 0x32, 0x2C, 0x39, 0x37, 0x2C, 0x37, 0x31, 0x2C, 0x31, 0x30, + 0x33, 0x2C, 0x31, 0x30, 0x33, 0x2C, 0x39, 0x39, 0x2C, 0x31, 0x31, 0x33, 0x2C, 0x31, 0x32, 0x31, 0x2C, 0x36, 0x37, 0x0D, + 0x10, 0x36, 0x48, 0xDC, 0x36, 0x35, 0x2C, 0x39, 0x39, 0x2C, 0x31, 0x31, 0x35, 0x2C, 0x31, 0x31, 0x35, 0x2C, 0x31, 0x31, + 0x35, 0x2C, 0x31, 0x31, 0x33, 0x2C, 0x31, 0x32, 0x31, 0x2C, 0x31, 0x32, 0x30, 0x2C, 0x31, 0x32, 0x30, 0x2C, 0x31, 0x32, + 0x34, 0x2C, 0x31, 0x32, 0x35, 0x2C, 0x31, 0x32, 0x31, 0x2C, 0x31, 0x31, 0x33, 0x2C, 0x39, 0x39, 0x2C, 0x36, 0x37, 0x2C, + 0x37, 0x31, 0x2C, 0x31, 0x35, 0x2C, 0x31, 0x35, 0x2C, 0x31, 0x35, 0x2C, 0x33, 0x31, 0x0D, 0x10, 0x3B, 0x1F, 0xDC, 0x37, + 0x2C, 0x33, 0x2C, 0x36, 0x35, 0x2C, 0x39, 0x37, 0x2C, 0x31, 0x31, 0x35, 0x2C, 0x31, 0x31, 0x35, 0x2C, 0x39, 0x39, 0x2C, + 0x36, 0x37, 0x2C, 0x39, 0x35, 0x2C, 0x37, 0x31, 0x0D, 0x10, 0x54, 0x4B, 0xDC, 0x31, 0x31, 0x39, 0x2C, 0x31, 0x31, 0x39, + 0x2C, 0x39, 0x39, 0x2C, 0x39, 0x37, 0x2C, 0x39, 0x37, 0x2C, 0x31, 0x30, 0x35, 0x2C, 0x37, 0x33, 0x2C, 0x37, 0x33, 0x2C, + 0x39, 0x2C, 0x33, 0x31, 0x2C, 0x37, 0x35, 0x2C, 0x37, 0x35, 0x2C, 0x33, 0x2C, 0x33, 0x2C, 0x31, 0x30, 0x33, 0x2C, 0x31, + 0x30, 0x33, 0x2C, 0x31, 0x35, 0x2C, 0x31, 0x35, 0x2C, 0x33, 0x31, 0x2C, 0x33, 0x31, 0x2C, 0x31, 0x35, 0x2C, 0x31, 0x35, + 0x2C, 0x31, 0x35, 0x2C, 0x37, 0x31, 0x0D, 0x10, 0x59, 0x14, 0xDC, 0x37, 0x31, 0x2C, 0x36, 0x37, 0x2C, 0x36, 0x35, 0x2C, + 0x37, 0x32, 0x2C, 0x37, 0x36, 0x2C, 0x31, 0x32, 0x35, 0x0D, +*/ 0xFF // BAS_NEW_EOF }; #endif