2 #include "m88k-opcode.h"
7 static void print_cond(void);
8 static void print_cmp(void);
18 for(i
= 0; i
< NUMOPCODES
- 1; i
++){
19 printf("\t%s\t", m88k_opcodes
[i
].name
);
20 if(m88k_opcodes
[i
].op
[0].type
== NIL
)
22 for(j
= 0; j
< 3 && m88k_opcodes
[i
].op
[j
].type
!= NIL
; j
++){
23 switch(m88k_opcodes
[i
].op
[j
].type
){
25 #ifdef SIGNED_IMMEDIATES
28 printf("0x%04x", cnst() );
31 printf("r%d", reg() );
34 printf("%d<%d>", reg(), reg() );
37 printf("[r%d]", reg() );
40 printf("cr%d", creg() );
43 printf("fcr%d", creg() );
55 printf("<%d>", reg() );
58 printf("<%d>", creg() & ~0x3);
61 printf("r%d", reg() & ~0x1);
67 if(j
== 2 || m88k_opcodes
[i
].op
[j
+1].type
== NIL
)
69 else if(m88k_opcodes
[i
].op
[j
+1].type
!= REGSC
)
101 x
= (x
+ 1) & 0xffff;
137 char *cmpslot
[] = { "**", "**", "eq", "ne", "gt", "le", "lt", "ge",
138 "hi", "ls", "lo", "hs", "be", "nb", "he", "nh" };
149 printf("%s", cmpslot
[x
]);