projects
/
YACASL2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a0ac17f
)
comet2コマンド実行時、SP領域を確保できない場合はエラー
author
j8takagi
<j8takagi@nifty.com>
Sat, 13 Feb 2010 03:31:39 +0000
(12:31 +0900)
committer
j8takagi
<j8takagi@nifty.com>
Sat, 13 Feb 2010 03:31:39 +0000
(12:31 +0900)
src/comet2.c
patch
|
blob
|
history
diff --git
a/src/comet2.c
b/src/comet2.c
index
1adf426
..
c612995
100644
(file)
--- a/
src/comet2.c
+++ b/
src/comet2.c
@@
-37,7
+37,7
@@
bool loadassemble(char *file) {
perror(file);
return false;
}
- fread(memory, sizeof(WORD), memsize, fp);
+
endptr = startptr +
fread(memory, sizeof(WORD), memsize, fp);
fclose(fp);
return true;
}
@@
-75,6
+75,7
@@
int main(int argc, char *argv[])
}
}
reset();
+ startptr = 0;
if(loadassemble(argv[optind]) == true) {
exec(); /* プログラム実行 */
}