mirror of
https://github.com/byteworksinc/DumpObj.git
synced 2024-10-31 23:05:20 +00:00
with +D disassembly, support for cRELOC, cINTERSEG, and SUPER records.
This commit is contained in:
parent
ebab9328f6
commit
e3b40e4da1
28
DumpOBJ.cc
28
DumpOBJ.cc
@ -2019,6 +2019,34 @@ switch(op) {
|
||||
printf(" : ");
|
||||
PutSymbol();
|
||||
break;
|
||||
case OPSRELOC: /* handle short reloc opcode */
|
||||
p1 = fgetc(input);
|
||||
p2 = fgetc(input);
|
||||
printf("! cRELOC ($F5) | %02X : %02X : ", p1, p2);
|
||||
ReadInt(&number,2,input,numsex);
|
||||
printf("%04X : ", (int) number);
|
||||
ReadInt(&number,2,input,numsex);
|
||||
printf("%04X", (int) number);
|
||||
count = count + 6;
|
||||
break;
|
||||
case OPSINTSEG: /* handle short interseg opcode */
|
||||
p1 = fgetc(input);
|
||||
p2 = fgetc(input);
|
||||
printf("! cINTRSEG ($F6) | %02X : %02X : ", p1, p2);
|
||||
ReadInt(&number,2,input,numsex);
|
||||
printf("%04X : %02X : ", (int) number, (int) fgetc(input));
|
||||
ReadInt(&number,2,input,numsex);
|
||||
printf("%04X", (int) number);
|
||||
count = count + 7;
|
||||
break;
|
||||
case OPSUPER: /* handle short interseg opcode */
|
||||
printf("! SUPER ($F7) | ");
|
||||
ReadInt(&number,4,input,numsex);
|
||||
printf("%08lX : %02X", (long) number, (int) fgetc(input));
|
||||
NewLine();
|
||||
count = count + number;
|
||||
PutConst(number-1,1);
|
||||
break;
|
||||
default:
|
||||
Error(7," ");
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user