Previous Thread
Next Thread
Print Thread
Page 9 of 9 1 2 3 4 5 6 7 8 9
Re: MacMAME 0.84 Xcode source leveraged #17925
08/27/04 07:14 PM
08/27/04 07:14 PM
Joined: Mar 2001
Posts: 16,070
USA
R
R. Belmont Online content
Very Senior Member
R. Belmont  Online Content
Very Senior Member
R
Joined: Mar 2001
Posts: 16,070
USA
Arek: Thanks for testing! Ok, *now* try my first suggestion with adding the two ^1s (in sharedram_sub_w and sharedram_sub_r) and see if that gets it going.

Re: MacMAME 0.84 Xcode source leveraged #17926
08/27/04 10:38 PM
08/27/04 10:38 PM
Joined: Feb 2004
Posts: 312
Santa Clara, CA
A
arekkusu Offline OP
Senior Member
arekkusu  Offline OP
Senior Member
A
Joined: Feb 2004
Posts: 312
Santa Clara, CA
Heh. Yes, with both patches namco12 games are working, the JAMMA screen is gone in a flash. Hooray!

The addition of sound drops the fps on my laptop from the 30s to the 20s, but such is life without dynarec...

Now, any similar fix for the ZN games? wink

Re: MacMAME 0.84 Xcode source leveraged #17927
08/27/04 10:50 PM
08/27/04 10:50 PM
Joined: May 1999
Posts: 546
Luxembourg
Carbon Offline
Senior Member
Carbon  Offline
Senior Member
Joined: May 1999
Posts: 546
Luxembourg
I'm happy to report that by applying both fixes, xmame 0.86 for OS X now works for namco12 games too. laugh

Re: MacMAME 0.84 Xcode source leveraged #17928
08/27/04 11:37 PM
08/27/04 11:37 PM
Joined: Mar 2001
Posts: 16,070
USA
R
R. Belmont Online content
Very Senior Member
R. Belmont  Online Content
Very Senior Member
R
Joined: Mar 2001
Posts: 16,070
USA
Sweet :-)

The ZN games are a harder nut to crack, but at least we know the basic PSX emulation is in good shape. If I think of something, I'll certainly post it.

Re: MacMAME 0.84 Xcode source leveraged #17929
08/27/04 11:56 PM
08/27/04 11:56 PM
Joined: Jul 2000
Posts: 497
Glendale, AZ
Brad Oliver Offline
MacMAME Author
Brad Oliver  Offline
MacMAME Author
Joined: Jul 2000
Posts: 497
Glendale, AZ
Quote:
Originally posted by Brian Kendig:
The "parse error before 'constants'" is because "INT32" isn't defined anywhere.
My first question is - what makes you think it's not defined anywhere? ;-)

It's actually defined in osd_cpu.h (which is in either windows/osd_cpu.h or overrides/macintosh/osd_cpu.h). Since you're totally starting from scratch, you're going to have to create that yourself rather than use the existing Mac (or Win32) ones.

My suggestion would be to get used to searching the entire source tree from the PC or Mac version, including the "windows" directory. If you do, you'll find this and other upcoming headaches a little quicker.

If you have CodeWarrior, you can open the existing Mac project to get a dependency listing for files that compile, so you can see that adsp2100.c includes cpuintrf.h which includes osd_cpu.h. I'm actually surprised you didn't get a warning about that header being missing before the error you got.

Re: MacMAME 0.84 Xcode source leveraged #17930
08/28/04 12:00 AM
08/28/04 12:00 AM
Joined: Jul 2000
Posts: 497
Glendale, AZ
Brad Oliver Offline
MacMAME Author
Brad Oliver  Offline
MacMAME Author
Joined: Jul 2000
Posts: 497
Glendale, AZ
Quote:
Originally posted by Brian Kendig:
The MAME 0.86 source distribution has no Makefile, per se:
Look again - in the archive, in the folder mame086s, right at the root, there's a file called "Makefile". Hidden in plain sight, as it were. ;-)

Re: MacMAME 0.84 Xcode source leveraged #17931
08/28/04 09:31 AM
08/28/04 09:31 AM
Joined: Oct 2000
Posts: 139
Walt Disney World, Florida, US...
Brian Kendig Offline
Senior Member
Brian Kendig  Offline
Senior Member
Joined: Oct 2000
Posts: 139
Walt Disney World, Florida, US...
Sorry, I wasn't precise - by "INT32 isn't defined anywhere" I meant "it's not defined in 2100ops.c itself, and that file has no #includes." Yes, it's defined elsewhere, but how's that file supposed to know about it?

The answer appears to be that 2100ops.c is #included by adsp2100.c, which contains the necessary definitions, so therefore 2100ops.c does not appear to be intended for someone to compile by itself. It appears that this is the case for other files in the distribution as well, and I'm working on figuring out which ones they are.

Thanks for pointing me to the Makefile - when I downloaded MAME 0.86, I kept the 'src' directory and deleted all else, and I hadn't realized that the Makefile lived outside that directory. My fault!

Re: MacMAME 0.84 Xcode source leveraged #17932
08/28/04 02:28 PM
08/28/04 02:28 PM
Joined: Nov 2003
Posts: 804
S
smf Offline
Senior Member
smf  Offline
Senior Member
S
Joined: Nov 2003
Posts: 804
Quote:
Originally posted by Brian Kendig:
The MAME 0.86 source distribution has no Makefile, per se: it has a "mame.mak", which references only object files (no C files), and a "rules.mak", which appears to reference every available C file (including 2100ops.c). So I haven't yet figured out how this is supposed to be able to compile on Windows, much less Mac.
The Windows makefile is made up of makefile & src\*.mak

Although 2100ops.c is mentioned in the makefile:

$(OBJ)/cpu/adsp2100/adsp2100.o: adsp2100.c adsp2100.h 2100ops.c

that is only a dependancy ( i.e. rebuild adsp2100.o if adsp2100.c, adsp2100.h or 2100ops.c change ).

This line:

CPUOBJS += $(OBJ)/cpu/adsp2100/adsp2100.o

shows that only adsp2100.o will be built, and as far as the compiler is concerned it just has to compile adsp2100.c to do it ( the fact it #includes other .c files is irrelevant ).

If this is the first time you've ever seen it then you might get a suprise once you've fixed it as there are loads of places in mame where this is done ( going back years ).

smf

Re: MacMAME 0.84 Xcode source leveraged #17933
08/28/04 02:31 PM
08/28/04 02:31 PM
Joined: Nov 2003
Posts: 804
S
smf Offline
Senior Member
smf  Offline
Senior Member
S
Joined: Nov 2003
Posts: 804
Quote:
Originally posted by R. Belmont:
but at least we know the basic PSX emulation is in good shape.
It's in the same sort of shape on the mac as windows, I wouldn't describe it as a good shape.

smf

Page 9 of 9 1 2 3 4 5 6 7 8 9

Who's Online Now
4 registered members (R. Belmont, robcfg, Vas Crabb, Dorando), 127 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Shout Box
Forum Statistics
Forums9
Topics8,606
Posts112,515
Members4,827
Most Online296
Dec 5th, 2018
Powered by UBB.threads™ PHP Forum Software 7.6.1.1
(Release build 20180111)
Page Time: 0.062s Queries: 14 (0.025s) Memory: 5.7201 MB (Peak: 5.9264 MB) Zlib enabled. Server Time: 2018-12-15 15:05:39 UTC