我如何将带有机器代码的文件存储到数组中
How do i store a file with machine code into an array
我将如何存储带有文本 ex 的任何类型的文件。 sasm、mach(用于机器码)等
我不想这样写直接放到数组里https://ttm.sh/hPS.png
我希望能够像这样从带有文本的文件中获取文本
0x1000
0x30C3
0x11FC
并将其存储到数组程序中[]并将新行作为数组中的新点
怎么样:
unsigned program[] = {
#include "program.mach"
};
program.mach 看起来像:
0x1000,
0x30C3,
0x11FC
我将如何存储带有文本 ex 的任何类型的文件。 sasm、mach(用于机器码)等 我不想这样写直接放到数组里https://ttm.sh/hPS.png 我希望能够像这样从带有文本的文件中获取文本
0x1000
0x30C3
0x11FC
并将其存储到数组程序中[]并将新行作为数组中的新点
怎么样:
unsigned program[] = {
#include "program.mach"
};
program.mach 看起来像:
0x1000,
0x30C3,
0x11FC