OpenCores
URL https://opencores.org/ocsvn/zipcpu/zipcpu/trunk

Subversion Repositories zipcpu

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /zipcpu/trunk/sw
    from Rev 51 to Rev 52
    Reverse comparison

Rev 51 → Rev 52

/zasm/zdump.cpp
35,6 → 35,7
////////////////////////////////////////////////////////////////////////////////
#include <stdio.h>
#include <unistd.h>
#include <ctype.h>
 
#include "zopcodes.h"
 
54,7 → 55,13
for(int i=0; i<nr; i++) {
zipi_to_string(ibuf[i], ln);
// printf("%s\n", ln);
printf("%08x: (0x%08x) %s\n", addr++, ibuf[i], ln);
printf("%08x: (0x%08x %c%c%c%c) %s\n", addr++,
ibuf[i],
isgraph((ibuf[i]>>24)&0x0ff)?((ibuf[i]>>24)&0x0ff) : '.',
isgraph((ibuf[i]>>16)&0x0ff)?((ibuf[i]>>16)&0x0ff) : '.',
isgraph((ibuf[i]>> 8)&0x0ff)?((ibuf[i]>> 8)&0x0ff) : '.',
isgraph((ibuf[i] )&0x0ff)?((ibuf[i] )&0x0ff) : '.',
ln);
}
} fclose(fp);
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.