- word = a2word(argv[optind]);
- if(cerrno > 0) {
- fprintf(stderr, "Dumpword Error - %d: %s\n", cerrno, cerrmsg);
- exit(-1);
- }
- if(logicalmode == true) {
- fprintf(stdout, "%6s: %6d = #%04X = %s\n", argv[optind], word, word, word2bit(word));
- } else {
- fprintf(stdout, "%6s: %6d = #%04X = %s\n", argv[optind], (short)word, word, word2bit(word));
+ word = nh2word(argv[optind]);
+ if(cerr->num > 0) {
+ fprintf(stderr, "Dumpword Error - %d: %s\n", cerr->num, cerr->msg);
+ exit(1);