diff options
| author | hatal175 <hatal175@users.noreply.github.com> | 2025-11-25 01:28:20 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-11-24 15:28:20 -0800 |
| commit | c4df6a577121f3bc0c8c63a4194a55a107def255 (patch) | |
| tree | a0cc18c03fd4d5478e9dd857a38b594821285aab /tools | |
| parent | 97c60c9092016f609a6bf432519f322db8940f33 (diff) | |
d_a_grass Matching (#2858)
Diffstat (limited to 'tools')
| -rwxr-xr-x | tools/converters/matDL_dis.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/converters/matDL_dis.py b/tools/converters/matDL_dis.py index 56ed3f3f4d..6bdea71b48 100755 --- a/tools/converters/matDL_dis.py +++ b/tools/converters/matDL_dis.py @@ -330,7 +330,7 @@ def convert_binary_to_matDL_c_source(src_path, dest_path, symbol_name, scope): with open(src_path, "rb") as binary_file, open(dest_path, "w") as c_file: c_file.write("#ifndef LOAD_BP_REG\n") c_file.write("#define U32_AS_U8(v) ((u8)((v) >> 24)), ((u8)((v) >> 16)), ((u8)((v) >> 8)), ((u8)((v) >> 0))\n") - c_file.write("#define U24_AS_U8(v) ((u8)((v) >> 16)), ((u8)((v) >> 8)), ((u8)((v) >> 0))\n") + c_file.write("#define U24_AS_U8(v) (((v) >> 16) & 0xff), (((v) >> 8)& 0xff), (((v) >> 0) & 0xff)\n") c_file.write("#define U16_AS_U8(v) ((u8)((v) >> 8)), ((u8)((v) >> 0))\n") c_file.write("#define IMAGE_ADDR(addr) (u32)(addr) >> 5\n") c_file.write("#define LOAD_BP_REG(reg, value) GX_CMD_LOAD_BP_REG, reg, U24_AS_U8(value)\n") |
