提交 8458f97d 编写于 作者: Y Yinan Xu

ram: load max RAM_SIZE data

上级 29ad9373
......@@ -110,6 +110,9 @@ void init_ram(const char *img) {
fseek(fp, 0, SEEK_END);
img_size = ftell(fp);
if (img_size > RAMSIZE) {
img_size = RAMSIZE;
}
fseek(fp, 0, SEEK_SET);
int ret = fread(ram, img_size, 1, fp);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册