diff --git a/B5500/b5500_defs.h b/B5500/b5500_defs.h index 707b62af..f9f73807 100644 --- a/B5500/b5500_defs.h +++ b/B5500/b5500_defs.h @@ -72,7 +72,7 @@ typedef struct _opcode } t_opcode; -void print_opcode(FILE * ofile, t_value val, int chr_mode); +void print_opcode(FILE * ofile, uint16 val, int chr_mode); t_stat chan_reset(DEVICE *); t_stat chan_boot(t_uint64); diff --git a/B5500/b5500_sys.c b/B5500/b5500_sys.c index 3eda2654..acea5c9a 100644 --- a/B5500/b5500_sys.c +++ b/B5500/b5500_sys.c @@ -341,7 +341,7 @@ t_opcode char_ops[] = { /* Print out an instruction */ void -print_opcode(FILE * of, t_value val, int chr_mode) +print_opcode(FILE * of, uint16 val, int chr_mode) { uint16 op; t_opcode *tab = (chr_mode) ? char_ops: word_ops; @@ -410,14 +410,14 @@ fprint_sym(FILE * of, t_addr addr, t_value * val, UNIT * uptr, int32 sw) if (sw & SWMASK('W')) { /* Word mode opcodes */ fputs(" ", of); for (i = 36; i >= 0; i-=12) { - int op = (int)(inst >> i) & 07777; + uint16 op = (uint16)(inst >> i) & 07777; print_opcode(of, op, 0); } } if (sw & SWMASK('C')) { /* Char mode opcodes */ fputs(" ", of); for (i = 36; i >= 0; i-=12) { - int op = (int)(inst >> i) & 07777; + uint16 op = (uint16)(inst >> i) & 07777; print_opcode(of, op, 1); } }