diff options
Diffstat (limited to 'src/devices/cpu/e132xs/32xsdasm.cpp')
-rw-r--r-- | src/devices/cpu/e132xs/32xsdasm.cpp | 178 |
1 files changed, 89 insertions, 89 deletions
diff --git a/src/devices/cpu/e132xs/32xsdasm.cpp b/src/devices/cpu/e132xs/32xsdasm.cpp index 48f3e97968f..a69f5d9dbcd 100644 --- a/src/devices/cpu/e132xs/32xsdasm.cpp +++ b/src/devices/cpu/e132xs/32xsdasm.cpp @@ -49,17 +49,17 @@ static const char *const SETxx[] = static int size, global_fp; static offs_t base_pc; -static const UINT8 *base_oprom; +static const uint8_t *base_oprom; #define READ_OP_DASM(p) ((base_oprom[(p) - base_pc] << 8) | base_oprom[(p) + 1 - base_pc]) -static void LL_format(char *source, char *dest, UINT16 op) +static void LL_format(char *source, char *dest, uint16_t op) { strcpy(source, L_REG[(SOURCECODE(op)+global_fp)%64]); strcpy(dest, L_REG[(DESTCODE(op)+global_fp)%64]); } -static void LR_format(char *source, char *dest, UINT16 op) +static void LR_format(char *source, char *dest, uint16_t op) { if( SOURCEBIT(op) ) { @@ -73,7 +73,7 @@ static void LR_format(char *source, char *dest, UINT16 op) strcpy(dest, L_REG[(DESTCODE(op)+global_fp)%64]); } -static void RR_format(char *source, char *dest, UINT16 op, unsigned h_flag) +static void RR_format(char *source, char *dest, uint16_t op, unsigned h_flag) { if( SOURCEBIT(op) ) { @@ -94,10 +94,10 @@ static void RR_format(char *source, char *dest, UINT16 op, unsigned h_flag) } } -static UINT32 LRconst_format(char *source, char *dest, UINT16 op, unsigned *pc) +static uint32_t LRconst_format(char *source, char *dest, uint16_t op, unsigned *pc) { - UINT16 next_op; - UINT32 const_val; + uint16_t next_op; + uint32_t const_val; if( SOURCEBIT(op) ) { @@ -117,7 +117,7 @@ static UINT32 LRconst_format(char *source, char *dest, UINT16 op, unsigned *pc) if( E_BIT(next_op) ) { - UINT16 next_op2; + uint16_t next_op2; size = 6; @@ -144,10 +144,10 @@ static UINT32 LRconst_format(char *source, char *dest, UINT16 op, unsigned *pc) return const_val; } -static UINT32 RRconst_format(char *source, char *dest, UINT16 op, unsigned *pc) +static uint32_t RRconst_format(char *source, char *dest, uint16_t op, unsigned *pc) { - UINT16 next_op; - UINT32 const_val; + uint16_t next_op; + uint32_t const_val; if( SOURCEBIT(op) ) { @@ -174,7 +174,7 @@ static UINT32 RRconst_format(char *source, char *dest, UINT16 op, unsigned *pc) if( E_BIT(next_op) ) { - UINT16 next_op2; + uint16_t next_op2; size = 6; @@ -201,10 +201,10 @@ static UINT32 RRconst_format(char *source, char *dest, UINT16 op, unsigned *pc) return const_val; } -static INT32 Rimm_format(char *dest, UINT16 op, unsigned *pc, unsigned h_flag) +static int32_t Rimm_format(char *dest, uint16_t op, unsigned *pc, unsigned h_flag) { - UINT16 imm1, imm2; - INT32 ret; + uint16_t imm1, imm2; + int32_t ret; int n = N_VALUE(op); @@ -243,7 +243,7 @@ static INT32 Rimm_format(char *dest, UINT16 op, unsigned *pc, unsigned h_flag) case 19: *pc += 2; - ret = (INT32) (0xffff0000 | READ_OP_DASM(*pc)); + ret = (int32_t) (0xffff0000 | READ_OP_DASM(*pc)); size = 4; return ret; @@ -289,14 +289,14 @@ static INT32 Rimm_format(char *dest, UINT16 op, unsigned *pc, unsigned h_flag) } } -static UINT8 Ln_format(char *dest, UINT16 op) +static uint8_t Ln_format(char *dest, uint16_t op) { strcpy(dest, L_REG[(DESTCODE(op)+global_fp)%64]); return N_VALUE(op); } -static UINT8 Rn_format(char *dest, UINT16 op) +static uint8_t Rn_format(char *dest, uint16_t op) { if( DESTBIT(op) ) { @@ -310,13 +310,13 @@ static UINT8 Rn_format(char *dest, UINT16 op) return N_VALUE(op); } -static INT32 PCrel_format(UINT16 op, unsigned pc) +static int32_t PCrel_format(uint16_t op, unsigned pc) { - INT32 ret; + int32_t ret; if( op & 0x80 ) //bit 7 = 1 { - UINT16 next; + uint16_t next; size = 4; @@ -342,9 +342,9 @@ static INT32 PCrel_format(UINT16 op, unsigned pc) return (pc + ret); } -static UINT32 RRdis_format(char *source, char *dest, UINT16 op, UINT16 next_op, unsigned pc) +static uint32_t RRdis_format(char *source, char *dest, uint16_t op, uint16_t next_op, unsigned pc) { - UINT32 ret; + uint32_t ret; if( SOURCEBIT(op) ) { @@ -366,7 +366,7 @@ static UINT32 RRdis_format(char *source, char *dest, UINT16 op, UINT16 next_op, if( E_BIT(next_op) ) { - UINT16 next; + uint16_t next; size = 6; @@ -392,15 +392,15 @@ static UINT32 RRdis_format(char *source, char *dest, UINT16 op, UINT16 next_op, return ret; } -unsigned dasm_hyperstone(char *buffer, unsigned pc, const UINT8 *oprom, unsigned h_flag, int private_fp) +unsigned dasm_hyperstone(char *buffer, unsigned pc, const uint8_t *oprom, unsigned h_flag, int private_fp) { - UINT16 op; - UINT8 op_num; + uint16_t op; + uint8_t op_num; - UINT8 source_code, dest_code, source_bit, dest_bit; + uint8_t source_code, dest_code, source_bit, dest_bit; char source[5] = "\0", dest[5] = "\0"; - UINT32 flags = 0; + uint32_t flags = 0; base_pc = pc; base_oprom = oprom; @@ -498,11 +498,11 @@ unsigned dasm_hyperstone(char *buffer, unsigned pc, const UINT8 *oprom, unsigned if( xcode < 4 ) { - UINT16 lim; + uint16_t lim; if( E_BIT(op) ) { - UINT16 next_op; + uint16_t next_op; size = 6; @@ -516,12 +516,12 @@ unsigned dasm_hyperstone(char *buffer, unsigned pc, const UINT8 *oprom, unsigned lim = op & 0xfff; } - sprintf(buffer, "XM%x %s, %s, $%x", (UINT8)(float) pow(2.0, xcode), dest, source, lim); + sprintf(buffer, "XM%x %s, %s, $%x", (uint8_t)(float) pow(2.0, xcode), dest, source, lim); } else { - sprintf(buffer, "XX%x %s, %s, 0", (UINT8)(float) pow(2.0, (xcode - 4)), dest, source); + sprintf(buffer, "XX%x %s, %s, 0", (uint8_t)(float) pow(2.0, (xcode - 4)), dest, source); } break; @@ -530,7 +530,7 @@ unsigned dasm_hyperstone(char *buffer, unsigned pc, const UINT8 *oprom, unsigned // MASK case 0x14: case 0x15: case 0x16: case 0x17: { - UINT32 const_val = RRconst_format(source, dest, op, &pc); + uint32_t const_val = RRconst_format(source, dest, op, &pc); sprintf(buffer, "MASK %s, %s, $%x", dest, source, const_val); @@ -540,7 +540,7 @@ unsigned dasm_hyperstone(char *buffer, unsigned pc, const UINT8 *oprom, unsigned // SUM case 0x18: case 0x19: case 0x1a: case 0x1b: { - UINT32 const_val = RRconst_format(source, dest, op, &pc); + uint32_t const_val = RRconst_format(source, dest, op, &pc); if( source_code == SR_REGISTER && !source_bit ) { @@ -557,7 +557,7 @@ unsigned dasm_hyperstone(char *buffer, unsigned pc, const UINT8 *oprom, unsigned // SUMS case 0x1c: case 0x1d: case 0x1e: case 0x1f: { - UINT32 const_val = RRconst_format(source, dest, op, &pc); + uint32_t const_val = RRconst_format(source, dest, op, &pc); if( source_code == SR_REGISTER && !source_bit ) { @@ -775,7 +775,7 @@ unsigned dasm_hyperstone(char *buffer, unsigned pc, const UINT8 *oprom, unsigned // CMPI case 0x60: case 0x61: case 0x62: case 0x63: { - UINT32 imm = Rimm_format(dest, op, &pc, 0); + uint32_t imm = Rimm_format(dest, op, &pc, 0); sprintf(buffer, "CMPI %s, $%x", dest, imm); @@ -785,7 +785,7 @@ unsigned dasm_hyperstone(char *buffer, unsigned pc, const UINT8 *oprom, unsigned // MOVI case 0x64: case 0x65: case 0x66: case 0x67: { - UINT32 imm = Rimm_format(dest, op, &pc, h_flag); + uint32_t imm = Rimm_format(dest, op, &pc, h_flag); sprintf(buffer, "MOVI %s, $%x", dest, imm); @@ -795,7 +795,7 @@ unsigned dasm_hyperstone(char *buffer, unsigned pc, const UINT8 *oprom, unsigned // ADDI case 0x68: case 0x69: case 0x6a: case 0x6b: { - UINT32 imm = Rimm_format(dest, op, &pc, 0); + uint32_t imm = Rimm_format(dest, op, &pc, 0); if( !N_VALUE(op) ) { @@ -812,7 +812,7 @@ unsigned dasm_hyperstone(char *buffer, unsigned pc, const UINT8 *oprom, unsigned // ADDSI case 0x6c: case 0x6d: case 0x6e: case 0x6f: { - UINT32 imm = Rimm_format(dest, op, &pc, 0); + uint32_t imm = Rimm_format(dest, op, &pc, 0); if( !N_VALUE(op) ) { @@ -829,7 +829,7 @@ unsigned dasm_hyperstone(char *buffer, unsigned pc, const UINT8 *oprom, unsigned // CMPBI case 0x70: case 0x71: case 0x72: case 0x73: { - UINT32 imm = Rimm_format(dest, op, &pc, 0); + uint32_t imm = Rimm_format(dest, op, &pc, 0); if( !N_VALUE(op) ) { @@ -849,7 +849,7 @@ unsigned dasm_hyperstone(char *buffer, unsigned pc, const UINT8 *oprom, unsigned // ANDNI case 0x74: case 0x75: case 0x76: case 0x77: { - UINT32 imm = Rimm_format(dest, op, &pc, 0); + uint32_t imm = Rimm_format(dest, op, &pc, 0); if( N_VALUE(op) == 31 ) imm = 0x7fffffff; //bit 31 = 0, others = 1 @@ -862,7 +862,7 @@ unsigned dasm_hyperstone(char *buffer, unsigned pc, const UINT8 *oprom, unsigned // ORI case 0x78: case 0x79: case 0x7a: case 0x7b: { - UINT32 imm = Rimm_format(dest, op, &pc, 0); + uint32_t imm = Rimm_format(dest, op, &pc, 0); sprintf(buffer, "ORI %s, $%x", dest, imm); @@ -872,7 +872,7 @@ unsigned dasm_hyperstone(char *buffer, unsigned pc, const UINT8 *oprom, unsigned // XORI case 0x7c: case 0x7d: case 0x7e: case 0x7f: { - UINT32 imm = Rimm_format(dest, op, &pc, 0); + uint32_t imm = Rimm_format(dest, op, &pc, 0); sprintf(buffer, "XORI %s, $%x", dest, imm); @@ -882,7 +882,7 @@ unsigned dasm_hyperstone(char *buffer, unsigned pc, const UINT8 *oprom, unsigned // SHRDI case 0x80: case 0x81: { - UINT8 n = Ln_format(dest, op); + uint8_t n = Ln_format(dest, op); sprintf(buffer, "SHRDI %s, $%x", dest, n); @@ -910,7 +910,7 @@ unsigned dasm_hyperstone(char *buffer, unsigned pc, const UINT8 *oprom, unsigned // SARDI case 0x84: case 0x85: { - UINT8 n = Ln_format(dest, op); + uint8_t n = Ln_format(dest, op); sprintf(buffer, "SARDI %s, $%x", dest, n); @@ -938,7 +938,7 @@ unsigned dasm_hyperstone(char *buffer, unsigned pc, const UINT8 *oprom, unsigned // SHLDI case 0x88: case 0x89: { - UINT8 n = Ln_format(dest, op); + uint8_t n = Ln_format(dest, op); sprintf(buffer, "SHLDI %s, $%x", dest, n); @@ -992,8 +992,8 @@ unsigned dasm_hyperstone(char *buffer, unsigned pc, const UINT8 *oprom, unsigned // LDxx.D/A/IOD/IOA case 0x90: case 0x91: case 0x92: case 0x93: { - UINT16 next_op = READ_OP_DASM(pc + 2); - UINT32 dis = RRdis_format(source, dest, op, next_op, pc); + uint16_t next_op = READ_OP_DASM(pc + 2); + uint32_t dis = RRdis_format(source, dest, op, next_op, pc); if( size == 2 ) size = 4; @@ -1110,8 +1110,8 @@ unsigned dasm_hyperstone(char *buffer, unsigned pc, const UINT8 *oprom, unsigned // LDxx.N/S case 0x94: case 0x95: case 0x96: case 0x97: { - UINT16 next_op = READ_OP_DASM(pc + 2); - UINT32 dis = RRdis_format(source, dest, op, next_op, pc); + uint16_t next_op = READ_OP_DASM(pc + 2); + uint32_t dis = RRdis_format(source, dest, op, next_op, pc); if( size == 2 ) size = 4; @@ -1179,8 +1179,8 @@ unsigned dasm_hyperstone(char *buffer, unsigned pc, const UINT8 *oprom, unsigned // STxx.D/A/IOD/IOA case 0x98: case 0x99: case 0x9a: case 0x9b: { - UINT16 next_op = READ_OP_DASM(pc + 2); - UINT32 dis = RRdis_format(source, dest, op, next_op, pc); + uint16_t next_op = READ_OP_DASM(pc + 2); + uint32_t dis = RRdis_format(source, dest, op, next_op, pc); if( size == 2 ) size = 4; @@ -1300,8 +1300,8 @@ unsigned dasm_hyperstone(char *buffer, unsigned pc, const UINT8 *oprom, unsigned // STxx.N/S case 0x9c: case 0x9d: case 0x9e: case 0x9f: { - UINT16 next_op = READ_OP_DASM(pc + 2); - UINT32 dis = RRdis_format(source, dest, op, next_op, pc); + uint16_t next_op = READ_OP_DASM(pc + 2); + uint32_t dis = RRdis_format(source, dest, op, next_op, pc); if( size == 2 ) size = 4; @@ -1372,7 +1372,7 @@ unsigned dasm_hyperstone(char *buffer, unsigned pc, const UINT8 *oprom, unsigned // SHRI case 0xa0: case 0xa1: case 0xa2: case 0xa3: { - UINT8 n = Rn_format(dest, op); + uint8_t n = Rn_format(dest, op); sprintf(buffer, "SHRI %s, $%x", dest, n); @@ -1382,7 +1382,7 @@ unsigned dasm_hyperstone(char *buffer, unsigned pc, const UINT8 *oprom, unsigned // SARI case 0xa4: case 0xa5: case 0xa6: case 0xa7: { - UINT8 n = Rn_format(dest, op); + uint8_t n = Rn_format(dest, op); sprintf(buffer, "SARI %s, $%x", dest, n); @@ -1392,7 +1392,7 @@ unsigned dasm_hyperstone(char *buffer, unsigned pc, const UINT8 *oprom, unsigned // SHLI case 0xa8: case 0xa9: case 0xaa: case 0xab: { - UINT8 n = Rn_format(dest, op); + uint8_t n = Rn_format(dest, op); sprintf(buffer, "SHLI %s, $%x", dest, n); @@ -1420,7 +1420,7 @@ unsigned dasm_hyperstone(char *buffer, unsigned pc, const UINT8 *oprom, unsigned // SETxx - SETADR - FETCH case 0xb8: case 0xb9: case 0xba: case 0xbb: { - UINT8 n = Rn_format(dest, op); + uint8_t n = Rn_format(dest, op); if( dest_code == PC_REGISTER && !dest_bit ) { @@ -1576,7 +1576,7 @@ unsigned dasm_hyperstone(char *buffer, unsigned pc, const UINT8 *oprom, unsigned // EXTEND case 0xce: { - UINT16 extended_op; + uint16_t extended_op; LL_format(source, dest, op); @@ -1749,7 +1749,7 @@ unsigned dasm_hyperstone(char *buffer, unsigned pc, const UINT8 *oprom, unsigned // DBV case 0xe0: { - INT32 rel = PCrel_format(op, pc) + 2; + int32_t rel = PCrel_format(op, pc) + 2; sprintf(buffer, "DBV $%x", rel); flags = DASMFLAG_STEP_OVER | DASMFLAG_STEP_OVER_EXTRA(1); @@ -1760,7 +1760,7 @@ unsigned dasm_hyperstone(char *buffer, unsigned pc, const UINT8 *oprom, unsigned // DBNV case 0xe1: { - INT32 rel = PCrel_format(op, pc) + 2; + int32_t rel = PCrel_format(op, pc) + 2; sprintf(buffer, "DBNV $%x", rel); flags = DASMFLAG_STEP_OVER | DASMFLAG_STEP_OVER_EXTRA(1); @@ -1771,7 +1771,7 @@ unsigned dasm_hyperstone(char *buffer, unsigned pc, const UINT8 *oprom, unsigned // DBE case 0xe2: { - INT32 rel = PCrel_format(op, pc) + 2; + int32_t rel = PCrel_format(op, pc) + 2; sprintf(buffer, "DBE $%x", rel); flags = DASMFLAG_STEP_OVER | DASMFLAG_STEP_OVER_EXTRA(1); @@ -1782,7 +1782,7 @@ unsigned dasm_hyperstone(char *buffer, unsigned pc, const UINT8 *oprom, unsigned // DBNE case 0xe3: { - INT32 rel = PCrel_format(op, pc) + 2; + int32_t rel = PCrel_format(op, pc) + 2; sprintf(buffer, "DBNE $%x", rel); flags = DASMFLAG_STEP_OVER | DASMFLAG_STEP_OVER_EXTRA(1); @@ -1793,7 +1793,7 @@ unsigned dasm_hyperstone(char *buffer, unsigned pc, const UINT8 *oprom, unsigned // DBC case 0xe4: { - INT32 rel = PCrel_format(op, pc) + 2; + int32_t rel = PCrel_format(op, pc) + 2; sprintf(buffer, "DBC $%x", rel); flags = DASMFLAG_STEP_OVER | DASMFLAG_STEP_OVER_EXTRA(1); @@ -1804,7 +1804,7 @@ unsigned dasm_hyperstone(char *buffer, unsigned pc, const UINT8 *oprom, unsigned // DBNC case 0xe5: { - INT32 rel = PCrel_format(op, pc) + 2; + int32_t rel = PCrel_format(op, pc) + 2; sprintf(buffer, "DBNC $%x", rel); flags = DASMFLAG_STEP_OVER | DASMFLAG_STEP_OVER_EXTRA(1); @@ -1815,7 +1815,7 @@ unsigned dasm_hyperstone(char *buffer, unsigned pc, const UINT8 *oprom, unsigned // DBSE case 0xe6: { - INT32 rel = PCrel_format(op, pc) + 2; + int32_t rel = PCrel_format(op, pc) + 2; sprintf(buffer, "DBSE $%x", rel); flags = DASMFLAG_STEP_OVER | DASMFLAG_STEP_OVER_EXTRA(1); @@ -1826,7 +1826,7 @@ unsigned dasm_hyperstone(char *buffer, unsigned pc, const UINT8 *oprom, unsigned // DBHT case 0xe7: { - INT32 rel = PCrel_format(op, pc) + 2; + int32_t rel = PCrel_format(op, pc) + 2; sprintf(buffer, "DBHT $%x", rel); flags = DASMFLAG_STEP_OVER | DASMFLAG_STEP_OVER_EXTRA(1); @@ -1837,7 +1837,7 @@ unsigned dasm_hyperstone(char *buffer, unsigned pc, const UINT8 *oprom, unsigned // DBN case 0xe8: { - INT32 rel = PCrel_format(op, pc) + 2; + int32_t rel = PCrel_format(op, pc) + 2; sprintf(buffer, "DBN $%x", rel); flags = DASMFLAG_STEP_OVER | DASMFLAG_STEP_OVER_EXTRA(1); @@ -1848,7 +1848,7 @@ unsigned dasm_hyperstone(char *buffer, unsigned pc, const UINT8 *oprom, unsigned // DBNN case 0xe9: { - INT32 rel = PCrel_format(op, pc) + 2; + int32_t rel = PCrel_format(op, pc) + 2; sprintf(buffer, "DBNN $%x", rel); flags = DASMFLAG_STEP_OVER | DASMFLAG_STEP_OVER_EXTRA(1); @@ -1859,7 +1859,7 @@ unsigned dasm_hyperstone(char *buffer, unsigned pc, const UINT8 *oprom, unsigned // DBLE case 0xea: { - INT32 rel = PCrel_format(op, pc) + 2; + int32_t rel = PCrel_format(op, pc) + 2; sprintf(buffer, "DBLE $%x", rel); flags = DASMFLAG_STEP_OVER | DASMFLAG_STEP_OVER_EXTRA(1); @@ -1870,7 +1870,7 @@ unsigned dasm_hyperstone(char *buffer, unsigned pc, const UINT8 *oprom, unsigned // DBGT case 0xeb: { - INT32 rel = PCrel_format(op, pc) + 2; + int32_t rel = PCrel_format(op, pc) + 2; sprintf(buffer, "DBGT $%x", rel); flags = DASMFLAG_STEP_OVER | DASMFLAG_STEP_OVER_EXTRA(1); @@ -1881,7 +1881,7 @@ unsigned dasm_hyperstone(char *buffer, unsigned pc, const UINT8 *oprom, unsigned // DBR case 0xec: { - INT32 rel = PCrel_format(op, pc) + 2; + int32_t rel = PCrel_format(op, pc) + 2; sprintf(buffer, "DBR $%x", rel); flags = DASMFLAG_STEP_OVER | DASMFLAG_STEP_OVER_EXTRA(1); @@ -1902,7 +1902,7 @@ unsigned dasm_hyperstone(char *buffer, unsigned pc, const UINT8 *oprom, unsigned // CALL case 0xee: case 0xef: { - UINT32 const_val = LRconst_format(source, dest, op, &pc); + uint32_t const_val = LRconst_format(source, dest, op, &pc); if( source_code == SR_REGISTER && !source_bit ) { @@ -1921,7 +1921,7 @@ unsigned dasm_hyperstone(char *buffer, unsigned pc, const UINT8 *oprom, unsigned // BV case 0xf0: { - INT32 rel = PCrel_format(op, pc) + 2; + int32_t rel = PCrel_format(op, pc) + 2; sprintf(buffer, "BV $%x", rel); @@ -1931,7 +1931,7 @@ unsigned dasm_hyperstone(char *buffer, unsigned pc, const UINT8 *oprom, unsigned // BNV case 0xf1: { - INT32 rel = PCrel_format(op, pc) + 2; + int32_t rel = PCrel_format(op, pc) + 2; sprintf(buffer, "BNV $%x", rel); @@ -1941,7 +1941,7 @@ unsigned dasm_hyperstone(char *buffer, unsigned pc, const UINT8 *oprom, unsigned // BE case 0xf2: { - INT32 rel = PCrel_format(op, pc) + 2; + int32_t rel = PCrel_format(op, pc) + 2; sprintf(buffer, "BE $%x", rel); @@ -1951,7 +1951,7 @@ unsigned dasm_hyperstone(char *buffer, unsigned pc, const UINT8 *oprom, unsigned // BNE case 0xf3: { - INT32 rel = PCrel_format(op, pc) + 2; + int32_t rel = PCrel_format(op, pc) + 2; sprintf(buffer, "BNE $%x", rel); @@ -1961,7 +1961,7 @@ unsigned dasm_hyperstone(char *buffer, unsigned pc, const UINT8 *oprom, unsigned // BC case 0xf4: { - INT32 rel = PCrel_format(op, pc) + 2; + int32_t rel = PCrel_format(op, pc) + 2; sprintf(buffer, "BC $%x", rel); @@ -1971,7 +1971,7 @@ unsigned dasm_hyperstone(char *buffer, unsigned pc, const UINT8 *oprom, unsigned // BNC case 0xf5: { - INT32 rel = PCrel_format(op, pc) + 2; + int32_t rel = PCrel_format(op, pc) + 2; sprintf(buffer, "BNC $%x", rel); @@ -1981,7 +1981,7 @@ unsigned dasm_hyperstone(char *buffer, unsigned pc, const UINT8 *oprom, unsigned // BSE case 0xf6: { - INT32 rel = PCrel_format(op, pc) + 2; + int32_t rel = PCrel_format(op, pc) + 2; sprintf(buffer, "BSE $%x", rel); @@ -1991,7 +1991,7 @@ unsigned dasm_hyperstone(char *buffer, unsigned pc, const UINT8 *oprom, unsigned // BHT case 0xf7: { - INT32 rel = PCrel_format(op, pc) + 2; + int32_t rel = PCrel_format(op, pc) + 2; sprintf(buffer, "BHT $%x", rel); @@ -2001,7 +2001,7 @@ unsigned dasm_hyperstone(char *buffer, unsigned pc, const UINT8 *oprom, unsigned // BN case 0xf8: { - INT32 rel = PCrel_format(op, pc) + 2; + int32_t rel = PCrel_format(op, pc) + 2; sprintf(buffer, "BN $%x", rel); @@ -2011,7 +2011,7 @@ unsigned dasm_hyperstone(char *buffer, unsigned pc, const UINT8 *oprom, unsigned // BNN case 0xf9: { - INT32 rel = PCrel_format(op, pc) + 2; + int32_t rel = PCrel_format(op, pc) + 2; sprintf(buffer, "BNN $%x", rel); @@ -2021,7 +2021,7 @@ unsigned dasm_hyperstone(char *buffer, unsigned pc, const UINT8 *oprom, unsigned // BLE case 0xfa: { - INT32 rel = PCrel_format(op, pc) + 2; + int32_t rel = PCrel_format(op, pc) + 2; sprintf(buffer, "BLE $%x", rel); @@ -2031,7 +2031,7 @@ unsigned dasm_hyperstone(char *buffer, unsigned pc, const UINT8 *oprom, unsigned // BGT case 0xfb: { - INT32 rel = PCrel_format(op, pc) + 2; + int32_t rel = PCrel_format(op, pc) + 2; sprintf(buffer, "BGT $%x", rel); @@ -2041,7 +2041,7 @@ unsigned dasm_hyperstone(char *buffer, unsigned pc, const UINT8 *oprom, unsigned // BR case 0xfc: { - INT32 rel = PCrel_format(op, pc) + 2; + int32_t rel = PCrel_format(op, pc) + 2; sprintf(buffer, "BR $%x", rel); @@ -2051,8 +2051,8 @@ unsigned dasm_hyperstone(char *buffer, unsigned pc, const UINT8 *oprom, unsigned // TRAPxx - TRAP case 0xfd: case 0xfe: case 0xff: { - UINT8 code = ((op & 0x300) >> 6) | (op & 0x03); - UINT8 trapno = (op & 0xfc) >> 2; + uint8_t code = ((op & 0x300) >> 6) | (op & 0x03); + uint8_t trapno = (op & 0xfc) >> 2; switch( code ) { |