diff options
author | 2015-01-11 09:50:45 +0100 | |
---|---|---|
committer | 2015-01-11 10:19:39 +0100 | |
commit | 7465f69e223de9271bcab206f1088e9eafd297ca (patch) | |
tree | da27ae405c893180775423511f4ad9a87bd398ec /src/emu/luaengine.h | |
parent | 31483138ec9d30193e5b081b011619a8c9ad10f9 (diff) |
luaengine: expose device state entries
This commit exposes device_state_entry to LUA, providing methods
to enumerate available states for a device object, as well as getting
and setting their values.
It is mostly usefull to inspect and manipulate registers content.
Signed-off-by: Luca Bruno <lucab@debian.org>
Diffstat (limited to 'src/emu/luaengine.h')
-rw-r--r-- | src/emu/luaengine.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/emu/luaengine.h b/src/emu/luaengine.h index 6206b426a36..8f261370214 100644 --- a/src/emu/luaengine.h +++ b/src/emu/luaengine.h @@ -104,8 +104,11 @@ private: // "emu.machine" namespace static luabridge::LuaRef l_machine_get_devices(const running_machine *r); - static luabridge::LuaRef l_dev_get_memspaces(const device_t *d); static luabridge::LuaRef devtree_dfs(device_t *root, luabridge::LuaRef dev_table); + static luabridge::LuaRef l_dev_get_states(const device_t *d); + static UINT64 l_state_get_value(const device_state_entry *d); + static void l_state_set_value(device_state_entry *d, UINT64 v); + static luabridge::LuaRef l_dev_get_memspaces(const device_t *d); struct lua_addr_space { template<typename T> int l_mem_read(lua_State *L); }; |