public
/
FUZIX.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9e8124f
)
chmem: allow for 6502 and Z80
author
Alan Cox
<alan@linux.intel.com>
Sat, 24 Jan 2015 21:21:42 +0000
(21:21 +0000)
committer
Alan Cox
<alan@linux.intel.com>
Sat, 24 Jan 2015 21:21:42 +0000
(21:21 +0000)
Standalone/chmem.c
patch
|
blob
|
history
diff --git
a/Standalone/chmem.c
b/Standalone/chmem.c
index
5c682ec
..
1aaada6
100644
(file)
--- a/
Standalone/chmem.c
+++ b/
Standalone/chmem.c
@@
-27,7
+27,8
@@
int main(int argc, char *argv[])
fprintf(stderr, "%s: too short ?\n", argv[0]);
exit(1);
}
- if (buf[0] != 0xC3 || buf[3] != 'F' || buf[4] != 'Z'|| buf[5] != 'X' ||
+ /* FIXME : add 6809 but remember its big endian! */
+ if ((buf[0] != 0x4C && buf[0] != 0xC3) || buf[3] != 'F' || buf[4] != 'Z'|| buf[5] != 'X' ||
buf[6] != '1') {
fprintf(stderr, "%s: not a Fuzix binary format.\n", argv[1]);
exit(1);