From: Alan Cox Date: Sat, 24 Jan 2015 21:21:42 +0000 (+0000) Subject: chmem: allow for 6502 and Z80 X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=2105b9e3905c86b6cb692efbafb7e89e8c899623;p=FUZIX.git chmem: allow for 6502 and Z80 --- diff --git a/Standalone/chmem.c b/Standalone/chmem.c index 5c682ec5..1aaada65 100644 --- 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);