MAME: Einstein Emulation

Software discussion & Emulation
andy_rea
Posts: 3
Joined: Sat Nov 02, 2019 4:46 pm

Re: MAME: Einstein Emulation

Post by andy_rea » Thu Nov 07, 2019 7:05 am

Interesting... is there an idiots guide to using the debugger ?

Regards Andy

Pernod
Posts: 37
Joined: Thu Oct 24, 2019 11:23 am
Location: Croydon, UK

Re: MAME: Einstein Emulation

Post by Pernod » Thu Nov 07, 2019 12:50 pm

andy_rea wrote:
Thu Nov 07, 2019 7:05 am
Interesting... is there an idiots guide to using the debugger ?
It's not an idiots guide, but the official documentation is at https://docs.mamedev.org/debugger/index.html

User avatar
sirmorris
Posts: 97
Joined: Thu Oct 24, 2019 1:12 pm
Location: Oxford

Re: MAME: Einstein Emulation

Post by sirmorris » Thu Nov 07, 2019 1:49 pm

Hi Andy.

Set up mame in the usual way, with roms and all.
Start mame from the command line, mame einstein -debug
The debugger has a command line/box
> g
... will make it GO!
Hit return in the command line to make the emulation stop
> g [address]
... will go as far as address then stop

To run a tattie COM file without having to build a disk image:

start mame
> g
tattie boots, when prompt appears type 'g 100' on tattie
debugger will break at address 100H
> load comfilename,100
> g

That'll get you going, use the built-in help for the rest.

User avatar
sirmorris
Posts: 97
Joined: Thu Oct 24, 2019 1:12 pm
Location: Oxford

Re: MAME: Einstein Emulation

Post by sirmorris » Fri Nov 08, 2019 11:13 am

So, it works up to a point. There are still hangs but fewer now. One thing I have a hard time with is the memory view, which only seems to show the ROM even when RAM is paged in.

Start mame
$ ./mame64 -debug einstein

Start the emulation from the debugger, with a temp. breakpoint at $100
g 100

On the einstein use the MOS to jump to $100
>G 100

While stopped at the breakpoint go to the Debug menu and pop open a new memory window. The available views are Z80 :i001 program space, and IO space. program space is showing the content of the ROM despite the fact that RAM is now paged in. This is mame on a Mac. PC procedures may differ.

Is this something that can be fixed? I don't have a clue where to start in the mame source, it's a maze of twisty passages, all alike. Where could I start looking?

vanpeebles
Posts: 263
Joined: Wed Oct 23, 2019 8:43 pm

Re: MAME: Einstein Emulation

Post by vanpeebles » Fri Nov 08, 2019 11:21 am

Have you tried typing xyzzy? :lol:

Pernod
Posts: 37
Joined: Thu Oct 24, 2019 11:23 am
Location: Croydon, UK

Re: MAME: Einstein Emulation

Post by Pernod » Fri Nov 08, 2019 12:11 pm

sirmorris wrote:
Fri Nov 08, 2019 11:13 am
While stopped at the breakpoint go to the Debug menu and pop open a new memory window. The available views are Z80 :i001 program space, and IO space. program space is showing the content of the ROM despite the fact that RAM is now paged in. This is mame on a Mac. PC procedures may differ.
This does seem odd and unexpected, on a PC I see RAM in the Z80 program space at this point.

In the memory window you can also select 'RAM/:ram/0/m_pointer' to always show RAM.

User avatar
sirmorris
Posts: 97
Joined: Thu Oct 24, 2019 1:12 pm
Location: Oxford

Re: MAME: Einstein Emulation

Post by sirmorris » Fri Nov 08, 2019 1:21 pm

I think the mac build is a little bit special. Perhaps it's just how I build it. I'll check google for an official (or at least competent :roll:) mac build.

@vanpeebles :lol:

Lardo Boffin
Posts: 296
Joined: Thu Oct 24, 2019 11:47 am

Re: MAME: Einstein Emulation

Post by Lardo Boffin » Sat Feb 15, 2020 7:52 am

How do I go about downloading and installing the MAME emulator for the Tatung? Either Mac or PC - whichever is easiest.

I have never seen / used either. :shock:
TC-01 + einSDein + TM-01 + TK-02 + gotek

Lardo Boffin
Posts: 296
Joined: Thu Oct 24, 2019 11:47 am

Re: MAME: Einstein Emulation

Post by Lardo Boffin » Sat Feb 15, 2020 7:55 am

And once up and running are there tools to drag in files to disc images etc.?

I have written a highly dubious and irritating text adventure in BBC Basic that I thought I would try to port to the tatty BBC Basic. :lol:
TC-01 + einSDein + TM-01 + TK-02 + gotek

Pernod
Posts: 37
Joined: Thu Oct 24, 2019 11:23 am
Location: Croydon, UK

Re: MAME: Einstein Emulation

Post by Pernod » Sat Feb 15, 2020 6:03 pm

Lardo Boffin wrote:
Sat Feb 15, 2020 7:52 am
How do I go about downloading and installing the MAME emulator for the Tatung? Either Mac or PC - whichever is easiest.
Download from https://www.mamedev.org/

Documentation at https://docs.mamedev.org/usingmame/usingmame.html

Attached are the romsets required for Einstein emulation, just copy them to your mame/roms folder (do not unzip).
Lardo Boffin wrote:
Sat Feb 15, 2020 7:55 am
And once up and running are there tools to drag in files to disc images etc.?

I have written a highly dubious and irritating text adventure in BBC Basic that I thought I would try to port to the tatty BBC Basic. :lol:
Not sure how you would do that, maybe someone else has some ideas?
Attachments
einstein.zip
(12.38 KiB) Downloaded 408 times
einst256.zip
(11.67 KiB) Downloaded 363 times

Post Reply