summaryrefslogtreecommitdiffstats
path: root/src/devices/cpu/m6809/6809dasm.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/cpu/m6809/6809dasm.cpp')
-rw-r--r--src/devices/cpu/m6809/6809dasm.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/devices/cpu/m6809/6809dasm.cpp b/src/devices/cpu/m6809/6809dasm.cpp
index b2f3f44a7bb..971abc9b2a8 100644
--- a/src/devices/cpu/m6809/6809dasm.cpp
+++ b/src/devices/cpu/m6809/6809dasm.cpp
@@ -25,10 +25,10 @@
// Opcode structure
struct opcodeinfo
{
- UINT8 opcode; // 8-bit opcode value
- UINT8 length; // Opcode length in bytes
+ uint8_t opcode; // 8-bit opcode value
+ uint8_t length; // Opcode length in bytes
char name[6]; // Opcode name
- UINT8 mode; // Addressing mode
+ uint8_t mode; // Addressing mode
unsigned flags; // Disassembly flags
};
@@ -368,8 +368,8 @@ static const char *const m6809_regs_te[16] =
CPU_DISASSEMBLE( m6809 )
{
- UINT8 opcode, mode, pb, pbm, reg;
- const UINT8 *operandarray;
+ uint8_t opcode, mode, pb, pbm, reg;
+ const uint8_t *operandarray;
unsigned int ea, flags;
int numoperands, offset, indirect;
int i, p = 0, page = 0, opcode_found;
@@ -467,12 +467,12 @@ CPU_DISASSEMBLE( m6809 )
break;
case REL:
- offset = (INT8)operandarray[0];
+ offset = (int8_t)operandarray[0];
buffer += sprintf(buffer, "$%04X", (pc + offset) & 0xffff);
break;
case LREL:
- offset = (INT16)((operandarray[0] << 8) + operandarray[1]);
+ offset = (int16_t)((operandarray[0] << 8) + operandarray[1]);
buffer += sprintf(buffer, "$%04X", (pc + offset) & 0xffff);
break;
@@ -532,14 +532,14 @@ CPU_DISASSEMBLE( m6809 )
break;
case 0x88: // (+/- 7 bit offset),R
- offset = (INT8)opram[p++];
+ offset = (int8_t)opram[p++];
buffer += sprintf(buffer, "%s", (offset < 0) ? "-" : "");
buffer += sprintf(buffer, "$%02X,", (offset < 0) ? -offset : offset);
buffer += sprintf(buffer, "%s", m6809_regs[reg]);
break;
case 0x89: // (+/- 15 bit offset),R
- offset = (INT16)((opram[p+0] << 8) + opram[p+1]);
+ offset = (int16_t)((opram[p+0] << 8) + opram[p+1]);
p += 2;
buffer += sprintf(buffer, "%s", (offset < 0) ? "-" : "");
buffer += sprintf(buffer, "$%04X,", (offset < 0) ? -offset : offset);
@@ -555,13 +555,13 @@ CPU_DISASSEMBLE( m6809 )
break;
case 0x8c: // (+/- 7 bit offset),PC
- offset = (INT8)opram[p++];
+ offset = (int8_t)opram[p++];
buffer += sprintf(buffer, "%s", (offset < 0) ? "-" : "");
buffer += sprintf(buffer, "$%02X,PC", (offset < 0) ? -offset : offset);
break;
case 0x8d: // (+/- 15 bit offset),PC
- offset = (INT16)((opram[p+0] << 8) + opram[p+1]);
+ offset = (int16_t)((opram[p+0] << 8) + opram[p+1]);
p += 2;
buffer += sprintf(buffer, "%s", (offset < 0) ? "-" : "");
buffer += sprintf(buffer, "$%04X,PC", (offset < 0) ? -offset : offset);
@@ -572,7 +572,7 @@ CPU_DISASSEMBLE( m6809 )
break;
case 0x8f: // address
- ea = (UINT16)((opram[p+0] << 8) + opram[p+1]);
+ ea = (uint16_t)((opram[p+0] << 8) + opram[p+1]);
p += 2;
buffer += sprintf(buffer, "$%04X", ea);
break;