summaryrefslogtreecommitdiffstats
path: root/src/devices/cpu/cosmac/cosdasm.cpp
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2016-10-22 13:13:17 +0200
committer Miodrag Milanovic <mmicko@gmail.com>2016-10-22 13:13:17 +0200
commitddb290d5f615019c33c42b8d94e5a5254cabcf33 (patch)
treea70f688b0df3acd19da7b1151e5902e3c6af3fa5 /src/devices/cpu/cosmac/cosdasm.cpp
parent333bff8de64dfaeb98134000412796b4fdef970b (diff)
NOTICE (TYPE NAME CONSOLIDATION)
Use standard uint64_t, uint32_t, uint16_t or uint8_t instead of UINT64, UINT32, UINT16 or UINT8 also use standard int64_t, int32_t, int16_t or int8_t instead of INT64, INT32, INT16 or INT8
Diffstat (limited to 'src/devices/cpu/cosmac/cosdasm.cpp')
-rw-r--r--src/devices/cpu/cosmac/cosdasm.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/devices/cpu/cosmac/cosdasm.cpp b/src/devices/cpu/cosmac/cosdasm.cpp
index f8f41e2c4ce..ce93110e021 100644
--- a/src/devices/cpu/cosmac/cosdasm.cpp
+++ b/src/devices/cpu/cosmac/cosdasm.cpp
@@ -23,22 +23,22 @@ enum
#define CDP1802_OPCODE(...) \
if (variant < TYPE_1802) sprintf(buffer, "illegal"); else sprintf(buffer, __VA_ARGS__)
-static offs_t implied(const UINT8 opcode)
+static offs_t implied(const uint8_t opcode)
{
return opcode & 0x0f;
}
-static offs_t immediate(const UINT8 **opram)
+static offs_t immediate(const uint8_t **opram)
{
return *(*opram)++;
}
-static offs_t short_branch(offs_t pc, const UINT8 **opram)
+static offs_t short_branch(offs_t pc, const uint8_t **opram)
{
return (pc & 0xff00) | immediate(opram);
}
-static offs_t long_branch(const UINT8 **opram)
+static offs_t long_branch(const uint8_t **opram)
{
return (immediate(opram) << 8) | immediate(opram);
}
@@ -53,13 +53,13 @@ static offs_t long_skip(offs_t pc)
return pc + 3;
}
-static UINT32 disassemble(device_t *device, char *buffer, offs_t pc, const UINT8 *oprom, const UINT8 *opram, UINT32 variant)
+static uint32_t disassemble(device_t *device, char *buffer, offs_t pc, const uint8_t *oprom, const uint8_t *opram, uint32_t variant)
{
- const UINT8 *startram = opram;
- UINT32 flags = 0;
+ const uint8_t *startram = opram;
+ uint32_t flags = 0;
opram++;
- UINT8 opcode = *oprom++;
+ uint8_t opcode = *oprom++;
switch (opcode)
{