diff options
| author | 2011-03-27 07:37:24 +0000 | |
|---|---|---|
| committer | 2011-03-27 07:37:24 +0000 | |
| commit | 202d7680a44bec9fa1016e8ba6eeaaba51ef15ab (patch) | |
| tree | 6021eb4c3d7324779eaeeab30875f68d42ea2348 /src/emu/debug/express.c | |
| parent | 382e3998b1ca12e6af774cc2652ae515f526ff44 (diff) | |
Created new enum type address_spacenum for specifying an address
space by index. Update functions and methods that accepted an
address space index to take an address_spacenum instead. Note that
this means you can't use a raw integer in ADDRESS_SPACE macros, so
instead of 0 use the enumerated AS_0.
Standardized the project on the shortened constants AS_* over the
older ADDRESS_SPACE_*. Removed the latter to prevent confusion.
Also centralized the location of these definitions to memory.h.
Diffstat (limited to 'src/emu/debug/express.c')
| -rw-r--r-- | src/emu/debug/express.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/emu/debug/express.c b/src/emu/debug/express.c index 2a7b8f24701..dbb2e96aedb 100644 --- a/src/emu/debug/express.c +++ b/src/emu/debug/express.c @@ -528,7 +528,7 @@ void symbol_table::set_value(const char *symbol, UINT64 value) // memory name/space/offset combination is valid //------------------------------------------------- -expression_error::error_code symbol_table::memory_valid(const char *name, int space) +expression_error::error_code symbol_table::memory_valid(const char *name, expression_space space) { // walk up the table hierarchy to find the owner for (symbol_table *symtable = this; symtable != NULL; symtable = symtable->m_parent) @@ -546,7 +546,7 @@ expression_error::error_code symbol_table::memory_valid(const char *name, int sp // memory_value - return a value read from memory //------------------------------------------------- -UINT64 symbol_table::memory_value(const char *name, int space, UINT32 offset, int size) +UINT64 symbol_table::memory_value(const char *name, expression_space space, UINT32 offset, int size) { // walk up the table hierarchy to find the owner for (symbol_table *symtable = this; symtable != NULL; symtable = symtable->m_parent) @@ -565,7 +565,7 @@ UINT64 symbol_table::memory_value(const char *name, int space, UINT32 offset, in // set_memory_value - write a value to memory //------------------------------------------------- -void symbol_table::set_memory_value(const char *name, int space, UINT32 offset, int size, UINT64 value) +void symbol_table::set_memory_value(const char *name, expression_space space, UINT32 offset, int size, UINT64 value) { // walk up the table hierarchy to find the owner for (symbol_table *symtable = this; symtable != NULL; symtable = symtable->m_parent) |
