MAMEWorld >> EmuChat
View all threads Index   Flat Mode Flat  

Jfarro
MAME Fan
Reged: 02/24/14
Posts: 13
Send PM
Re: Seeking info on making a mame plugin (mem:read_u8 over TCP/IP)
11/09/17 11:46 AM


Updates:

The commands above are incorrect...I realized this when trying to dev on another box, so here's the correct commands from my console (note: the above work, but you have to define cpu before you try to access it)

[MAME]> cpu = manager:machine().devices[":maincpu"]
[MAME]> for k,v in pairs(cpu.spaces) do print(k) end
program
[MAME]> mem = cpu.spaces["program"]
[MAME]> print("map location: ",string.format('%x',mem:read_u8(0x00Eb)))
map location: 77


Further, I realize now that the version of LUA with mame is not compatable with luasocket (which installs based on the version of LUA you have on a system when using rocks). I tried to get a LUA 3.5 version of luasocket and couldn't get it to compile clean. I'm kinda tired of that rathole, and instead will try to do this via named pipes. I'll post here if I get that working, or if someone else has c# to mame's LUA communication working, that'd be golden.







Entire thread
Subject Posted by Posted on
* Seeking info on making a mame plugin (mem:read_u8 over TCP/IP) Jfarro 11/02/17 10:35 AM
. * Re: Seeking info on making a mame plugin (mem:read_u8 over TCP/IP) Jfarro  11/09/17 11:46 AM
. * Re: Seeking info on making a mame plugin (mem:read_u8 over TCP/IP) crazyc  11/09/17 08:35 PM
. * Re: Seeking info on making a mame plugin (mem:read_u8 over TCP/IP) Jfarro  11/10/17 11:21 AM
. * Re: Seeking info on making a mame plugin (mem:read_u8 over TCP/IP) Jfarro  11/22/17 04:51 AM
. * Re: Seeking info on making a mame plugin (mem:read_u8 over TCP/IP) Dullaron  11/22/17 03:27 PM

Extra information Permissions
Moderator:  Robbbert, Tafoid 
0 registered and 10 anonymous users are browsing this forum.
You cannot start new topics
You cannot reply to topics
HTML is enabled
UBBCode is enabled
Thread views: 1977