summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/debug/dvmemory.h
diff options
context:
space:
mode:
author Vas Crabb <vas@vastheman.com>2016-11-19 05:35:54 +1100
committer Vas Crabb <vas@vastheman.com>2016-11-19 05:38:48 +1100
commit8179a84458204a5e767446fcf7d10f032a40fd0c (patch)
tree16105e1667f811dcb24dbf0fc255166cb06df5c2 /src/emu/debug/dvmemory.h
parent1b489fe83034072149fb0637b20c7ba57dc72a7a (diff)
Introduce u8/u16/u32/u64/s8/s16/s32/s64
* New abbreviated types are in osd and util namespaces, and also in global namespace for things that #include "emu.h" * Get rid of import of cstdint types to global namespace (C99 does this anyway) * Remove the cstdint types from everything in emu * Get rid of U64/S64 macros * Fix a bug in dps16 caused by incorrect use of macro * Fix debugcon not checking for "do " prefix case-insensitively * Fix a lot of messed up tabulation * More constexpr * Fix up many __names
Diffstat (limited to 'src/emu/debug/dvmemory.h')
-rw-r--r--src/emu/debug/dvmemory.h38
1 files changed, 19 insertions, 19 deletions
diff --git a/src/emu/debug/dvmemory.h b/src/emu/debug/dvmemory.h
index 695ba5909b0..ca659b64bda 100644
--- a/src/emu/debug/dvmemory.h
+++ b/src/emu/debug/dvmemory.h
@@ -8,8 +8,8 @@
***************************************************************************/
-#ifndef __DVMEMORY_H__
-#define __DVMEMORY_H__
+#ifndef MAME_EMU_DEBUG_DVMEMORY_H
+#define MAME_EMU_DEBUG_DVMEMORY_H
#include "softfloat/mamesf.h"
#include "softfloat/softfloat.h"
@@ -37,7 +37,7 @@ private:
offs_t m_length; // length of memory
offs_t m_offsetxor; // XOR to apply to offsets
endianness_t m_endianness; // endianness of memory
- uint8_t m_prefsize; // preferred bytes per chunk
+ u8 m_prefsize; // preferred bytes per chunk
};
@@ -54,7 +54,7 @@ public:
// getters
const char *expression() const { return m_expression.string(); }
int get_data_format() { flush_updates(); return m_data_format; }
- uint32_t chunks_per_row() { flush_updates(); return m_chunks_per_row; }
+ u32 chunks_per_row() { flush_updates(); return m_chunks_per_row; }
bool reverse() const { return m_reverse_view; }
bool ascii() const { return m_ascii_view; }
bool physical() const { return m_no_translation; }
@@ -62,7 +62,7 @@ public:
// setters
void set_expression(const char *expression);
- void set_chunks_per_row(uint32_t rowchunks);
+ void set_chunks_per_row(u32 rowchunks);
void set_data_format(int format); // 1-8 current values 9 32bit floating point
void set_reverse(bool reverse);
void set_ascii(bool reverse);
@@ -78,9 +78,9 @@ protected:
private:
struct cursor_pos
{
- cursor_pos(offs_t address = 0, uint8_t shift = 0) : m_address(address), m_shift(shift) { }
+ cursor_pos(offs_t address = 0, u8 shift = 0) : m_address(address), m_shift(shift) { }
offs_t m_address;
- uint8_t m_shift;
+ u8 m_shift;
};
// internal helpers
@@ -95,36 +95,36 @@ private:
void end_update_and_set_cursor_pos(cursor_pos pos) { set_cursor_pos(pos); end_update(); }
// memory access
- bool read(uint8_t size, offs_t offs, uint64_t &data);
- void write(uint8_t size, offs_t offs, uint64_t data);
- bool read(uint8_t size, offs_t offs, floatx80 &data);
+ bool read(u8 size, offs_t offs, u64 &data);
+ void write(u8 size, offs_t offs, u64 data);
+ bool read(u8 size, offs_t offs, floatx80 &data);
// internal state
debug_view_expression m_expression; // expression describing the start address
- uint32_t m_chunks_per_row; // number of chunks displayed per line
- uint8_t m_bytes_per_chunk; // bytes per chunk
+ u32 m_chunks_per_row; // number of chunks displayed per line
+ u8 m_bytes_per_chunk; // bytes per chunk
int m_data_format; // 1-8 current values 9 32bit floating point
bool m_reverse_view; // reverse-endian view?
bool m_ascii_view; // display ASCII characters?
bool m_no_translation; // don't run addresses through the cpu translation hook
bool m_edit_enabled; // can modify contents ?
offs_t m_maxaddr; // (derived) maximum address to display
- uint32_t m_bytes_per_row; // (derived) number of bytes displayed per line
- uint32_t m_byte_offset; // (derived) offset of starting visible byte
+ u32 m_bytes_per_row; // (derived) number of bytes displayed per line
+ u32 m_byte_offset; // (derived) offset of starting visible byte
std::string m_addrformat; // (derived) format string to use to print addresses
struct section
{
bool contains(int x) const { return x >= m_pos && x < m_pos + m_width; }
- int32_t m_pos; /* starting position */
- int32_t m_width; /* width of this section */
+ s32 m_pos; /* starting position */
+ s32 m_width; /* width of this section */
};
section m_section[3]; // (derived) 3 sections to manage
struct memory_view_pos
{
- uint8_t m_spacing; /* spacing between each entry */
- uint8_t m_shift[24]; /* shift for each character */
+ u8 m_spacing; /* spacing between each entry */
+ u8 m_shift[24]; /* shift for each character */
};
static const memory_view_pos s_memory_pos_table[12]; // table for rendering at different data formats
@@ -133,4 +133,4 @@ private:
};
-#endif
+#endif // MAME_EMU_DEBUG_DVMEMORY_H