URL
https://opencores.org/ocsvn/or1k/or1k/trunk
Subversion Repositories or1k
Compare Revisions
- This comparison shows the changes necessary to convert path
/
- from Rev 35 to Rev 36
- ↔ Reverse comparison
Rev 35 → Rev 36
/trunk/or1ksim/cpu/common/parse.c
106,7 → 106,7
unsigned long num; |
|
if (isdigit(*item)) |
num = atol(item); |
num = strtoul(item, NULL, 0); |
else |
num = eval_label(item); |
|
124,7 → 124,7
unsigned long num; |
|
if (isdigit(*item)) |
num = atol(item); |
num = strtoul(item, NULL, 0); |
else |
num = eval_label(item); |
|
139,7 → 139,7
unsigned long num; |
|
if (isdigit(*item)) |
num = atol(item); |
num = strtoul(item, NULL, 0); |
else |
num = eval_label(item); |
|
453,6 → 453,9
while ((len = fread(&inputbuf, sizeof(inputbuf), 1, inputfs))) { |
insn = COFF_LONG_H(inputbuf); |
len = disassemble_insn(insn); |
sprintf(item, "%u", insn); |
adddataword(item); |
freemem -= len; |
if (len == 2) { |
fseek(inputfs, -2, SEEK_CUR); |
printf("readfile_coff: %x 0x%x ", tsize, insn >> 16); |