diff options
Diffstat (limited to 'src/devices/cpu/mb86233/mb86233d.cpp')
-rw-r--r-- | src/devices/cpu/mb86233/mb86233d.cpp | 62 |
1 files changed, 31 insertions, 31 deletions
diff --git a/src/devices/cpu/mb86233/mb86233d.cpp b/src/devices/cpu/mb86233/mb86233d.cpp index f75053c07ff..db830e7463d 100644 --- a/src/devices/cpu/mb86233/mb86233d.cpp +++ b/src/devices/cpu/mb86233/mb86233d.cpp @@ -47,7 +47,7 @@ static char * COND(unsigned int cond) return buf; } -static char * REGS( UINT32 reg, int IsSource ) +static char * REGS( uint32_t reg, int IsSource ) { static char bufs[4][256]; static int bufindex = 0; @@ -194,7 +194,7 @@ static char * REGS( UINT32 reg, int IsSource ) return buf; } -static char * INDIRECT( UINT32 reg, int IsSource ) +static char * INDIRECT( uint32_t reg, int IsSource ) { static char bufs[4][256]; static int bufindex = 0; @@ -261,7 +261,7 @@ static char * INDIRECT( UINT32 reg, int IsSource ) } -static char * ALU( UINT32 alu) +static char * ALU( uint32_t alu) { static char bufs[4][256]; static int bufindex = 0; @@ -375,19 +375,19 @@ static char * ALU( UINT32 alu) return buf; } -static unsigned dasm_mb86233(char *buffer, UINT32 opcode ) +static unsigned dasm_mb86233(char *buffer, uint32_t opcode ) { char *p = buffer; - UINT32 grp = ( opcode >> 26 ) & 0x3f; + uint32_t grp = ( opcode >> 26 ) & 0x3f; switch( grp ) { case 0x0: /* Dual move */ { - UINT32 r1=opcode & 0x1ff; - UINT32 r2=(opcode>>9) & 0x7f; - UINT32 alu=(opcode>>21) & 0x1f; - UINT32 op=(opcode>>16) & 0x1f; + uint32_t r1=opcode & 0x1ff; + uint32_t r2=(opcode>>9) & 0x7f; + uint32_t alu=(opcode>>21) & 0x1f; + uint32_t op=(opcode>>16) & 0x1f; if ( alu != 0 ) p += sprintf(p, "%s, ", ALU(alu) ); @@ -419,10 +419,10 @@ static unsigned dasm_mb86233(char *buffer, UINT32 opcode ) case 0x7: /* LD/MOV */ { - UINT32 r1=opcode & 0x1ff; - UINT32 r2=(opcode>>9) & 0x7f; - UINT32 alu=(opcode>>21) & 0x1f; - UINT32 op=(opcode>>16) & 0x1f; + uint32_t r1=opcode & 0x1ff; + uint32_t r2=(opcode>>9) & 0x7f; + uint32_t alu=(opcode>>21) & 0x1f; + uint32_t op=(opcode>>16) & 0x1f; if ( alu != 0 ) { @@ -541,7 +541,7 @@ static unsigned dasm_mb86233(char *buffer, UINT32 opcode ) case 0x0e: /* Load 24 bit val */ { - UINT32 sub=(opcode>>24)&0x3; + uint32_t sub=(opcode>>24)&0x3; static const char regs[4] = { 'p', 'a', 'b', 'd' }; p += sprintf(p,"LDIMM24 0x%X->%c",opcode&0xffffff, regs[sub]); @@ -550,8 +550,8 @@ static unsigned dasm_mb86233(char *buffer, UINT32 opcode ) case 0x0f: /* repeat */ { - UINT32 alu = ( opcode >> 20 ) & 0x1f; - UINT32 sub2 = ( opcode >> 16 ) & 0x0f; + uint32_t alu = ( opcode >> 20 ) & 0x1f; + uint32_t sub2 = ( opcode >> 16 ) & 0x0f; if ( alu != 0 ) p += sprintf(p, "%s, ", ALU(alu) ); @@ -584,8 +584,8 @@ static unsigned dasm_mb86233(char *buffer, UINT32 opcode ) case 0x10: { - UINT32 dst=(opcode>>24)&0xf; - UINT32 imm=(opcode)&0xFFFF; + uint32_t dst=(opcode>>24)&0xf; + uint32_t imm=(opcode)&0xFFFF; if ( dst <= 3 ) p += sprintf(p,"LDIMM 0x%x->r%d",imm,dst); @@ -596,7 +596,7 @@ static unsigned dasm_mb86233(char *buffer, UINT32 opcode ) case 0x13: { - UINT32 sub = ( opcode >> 24 ) & 0x03; + uint32_t sub = ( opcode >> 24 ) & 0x03; p += sprintf(p,"LDIMM 0x%X->",opcode&0xffffff); @@ -608,7 +608,7 @@ static unsigned dasm_mb86233(char *buffer, UINT32 opcode ) case 0x14: { - UINT32 sub = ( opcode >> 24 ) & 0x03; + uint32_t sub = ( opcode >> 24 ) & 0x03; p += sprintf(p,"LDIMM 0x%X->",opcode&0xffffff); @@ -621,7 +621,7 @@ static unsigned dasm_mb86233(char *buffer, UINT32 opcode ) case 0x15: { - UINT32 sub = ( opcode >> 24 ) & 0x03; + uint32_t sub = ( opcode >> 24 ) & 0x03; p += sprintf(p,"LDIMM 0x%X->",opcode&0xffffff); @@ -634,7 +634,7 @@ static unsigned dasm_mb86233(char *buffer, UINT32 opcode ) case 0x16: { - UINT32 sub = ( opcode >> 24 ) & 0x03; + uint32_t sub = ( opcode >> 24 ) & 0x03; p += sprintf(p,"LDIMM 0x%X->",opcode&0xffffff); @@ -646,7 +646,7 @@ static unsigned dasm_mb86233(char *buffer, UINT32 opcode ) case 0x17: { - UINT32 sub = ( opcode >> 24 ) & 0x03; + uint32_t sub = ( opcode >> 24 ) & 0x03; p += sprintf(p,"LDIMM 0x%X->",opcode&0xffffff); @@ -657,7 +657,7 @@ static unsigned dasm_mb86233(char *buffer, UINT32 opcode ) case 0x18: { - UINT32 sub = ( opcode >> 24 ) & 0x03; + uint32_t sub = ( opcode >> 24 ) & 0x03; p += sprintf(p,"LDIMM24 0x%X->",opcode&0xffffff); @@ -668,9 +668,9 @@ static unsigned dasm_mb86233(char *buffer, UINT32 opcode ) case 0x2f: { - UINT32 cond = ( opcode >> 20 ) & 0x1f; - UINT32 subtype = ( opcode >> 16 ) & 0x0f; - UINT32 data = opcode & 0xffff; + uint32_t cond = ( opcode >> 20 ) & 0x1f; + uint32_t subtype = ( opcode >> 16 ) & 0x0f; + uint32_t data = opcode & 0xffff; switch( subtype ) { @@ -719,9 +719,9 @@ static unsigned dasm_mb86233(char *buffer, UINT32 opcode ) case 0x3f: { - UINT32 cond = ( opcode >> 20 ) & 0x1f; - UINT32 subtype = ( opcode >> 16 ) & 0x0f; - UINT32 data = opcode & 0xffff; + uint32_t cond = ( opcode >> 20 ) & 0x1f; + uint32_t subtype = ( opcode >> 16 ) & 0x0f; + uint32_t data = opcode & 0xffff; switch( subtype ) { @@ -778,7 +778,7 @@ static unsigned dasm_mb86233(char *buffer, UINT32 opcode ) CPU_DISASSEMBLE( mb86233 ) { - UINT32 op = *(UINT32 *)oprom; + uint32_t op = *(uint32_t *)oprom; op = little_endianize_int32(op); return dasm_mb86233(buffer, op); } |