Mame And Asm Cpu Cores


DaveC

Internal Development
Joined
Mar 4, 2004
Messages
9,208
I know there was discussion about the possibility of integrating some ASM cores to speed up MAME even more. That would be awesome if that was done.

Well Flubba the uber L337 GBA coder has BOTH Z80 AND 6502 cores (both of those are used in MAME) available to use. The sources are freely available on his site, maybe these could be used? I would bet Flubba would help explain how to use them too.

Franxis and Grimreaper, it may be worth a look :)
 
DaveC posted on Jul 11 2005 at 06:21 PM said:
I know there was discussion about the possibility of integrating some ASM cores to speed up MAME even more. That would be awesome if that was done.

Well Flubba the uber L337 GBA coder has BOTH Z80 AND 6502 cores (both of those are used in MAME) available to use. The sources are freely available on his site, maybe these could be used? I would bet Flubba would help explain how to use them too.

Franxis and Grimreaper, it may be worth a look :)

Yes, i saw it last week, but i have not tried to understand or test. The source code of the Z80 emulator is a big ASM file (.S) with a .h file... I will try to get some time to check it...

Thank you DaveC and regards.
 
Last edited by a moderator:
Franxis posted on Jul 11 2005 at 11:22 PM said:
DaveC posted on Jul 11 2005 at 06:21 PM said:
I know there was discussion about the possibility of integrating some ASM cores to speed up MAME even more.   That would be awesome if that was done.

Well Flubba the uber L337 GBA coder has BOTH Z80 AND 6502 cores (both of those are used in MAME) available to use.  The sources are freely available on his site, maybe these could be used?  I would bet Flubba would help explain how to use them too.

Franxis and Grimreaper, it may be worth a look  :)

Yes, i saw it last week, but i have not tried to understand or test. The source code of the Z80 emulator is a big ASM file (.S) with a .h file... I will try to get some time to check it...

Thank you DaveC and regards.

Sure. FluBBa seems to be a decent guy and I am pretty sure he would help you if you had questions.

Although now I am kind of remembering Reesy saying something like Flubba's code uses some things not available in the GP32 SDK or something like that, I guess you will have to look into it.
 
Last edited by a moderator:
Franxis posted on Jul 11 2005 at 11:22 PM said:
DaveC posted on Jul 11 2005 at 06:21 PM said:
I know there was discussion about the possibility of integrating some ASM cores to speed up MAME even more.  That would be awesome if that was done.

Well Flubba the uber L337 GBA coder has BOTH Z80 AND 6502 cores (both of those are used in MAME) available to use.  The sources are freely available on his site, maybe these could be used?  I would bet Flubba would help explain how to use them too.

Franxis and Grimreaper, it may be worth a look  :)

Yes, i saw it last week, but i have not tried to understand or test. The source code of the Z80 emulator is a big ASM file (.S) with a .h file... I will try to get some time to check it...

Thank you DaveC and regards.


Ever heard from Reesy about his core? That would probably be the best option as it is already made to run with the GP32 SDKs etc. I know that he is busy with his new job though. Maybe he will have a few minutes someday to help you with integrating.
 
Last edited by a moderator:
Yeah sorry about that Franxis I'm snowed under at work at the moment. 13 hour days are started to kill me, but I'm on an easy project for the next couple of weeks so I might get some time to get DrZ80 sorted. I've still got to sort out the interupt modes before you'll be able to make use of it in Mame.

The is another problem as well and thats to do with licensing, if I add DrZ80 to Mame I will HAVE to release the source code. Which I'm abit wary of at the moment, so I'll need to read up on that.

Since Flubba's cpu cores are available I suggest you use them, I've been speaking to him and can confirm his Z80 core is faster than mine. I haven't looked at the source code yet but he usually writes everything for ADS. This may be the only problem as I'm not sure his source code will compile under GCC or that you can use object files created by ADS in GCC. In order to use his cores you may need to compile your project in ADS, but I'm not certain.
 
Reesy posted on Jul 12 2005 at 07:31 PM said:
Yeah sorry about that Franxis I'm snowed under at work at the moment. 13 hour days are started to kill me, but I'm on an easy project for the next couple of weeks so I might get some time to get DrZ80 sorted. I've still got to sort out the interupt modes before you'll be able to make use of it in Mame.

The is another problem as well and thats to do with licensing, if I add DrZ80 to Mame I will HAVE to release the source code. Which I'm abit wary of at the moment, so I'll need to read up on that.

Since Flubba's cpu cores are available I suggest you use them, I've been speaking to him and can confirm his Z80 core is faster than mine. I haven't looked at the source code yet but he usually writes everything for ADS. This may be the only problem as I'm not sure his source code will compile under GCC or that you can use object files created by ADS in GCC. In order to use his cores you may need to compile your project in ADS, but I'm not certain.

I will check Flubba's z80 core...

Thanks.
 
Last edited by a moderator:
Reesy posted on Jul 12 2005 at 12:31 PM said:
Yeah sorry about that Franxis I'm snowed under at work at the moment. 13 hour days are started to kill me, but I'm on an easy project for the next couple of weeks so I might get some time to get DrZ80 sorted. I've still got to sort out the interupt modes before you'll be able to make use of it in Mame.

The is another problem as well and thats to do with licensing, if I add DrZ80 to Mame I will HAVE to release the source code. Which I'm abit wary of at the moment, so I'll need to read up on that.

Since Flubba's cpu cores are available I suggest you use them, I've been speaking to him and can confirm his Z80 core is faster than mine. I haven't looked at the source code yet but he usually writes everything for ADS. This may be the only problem as I'm not sure his source code will compile under GCC or that you can use object files created by ADS in GCC. In order to use his cores you may need to compile your project in ADS, but I'm not certain.

Your using Mirko's SDK, so your supposed to have released the source already :p
 
Last edited by a moderator:
Oh and I'm not using Mr Mirkos sdk in DrZ80, its just an assembler file.
 
Reesy posted on Jul 12 2005 at 07:31 PM said:
Yeah sorry about that Franxis I'm snowed under at work at the moment. 13 hour days are started to kill me, but I'm on an easy project for the next couple of weeks so I might get some time to get DrZ80 sorted. I've still got to sort out the interupt modes before you'll be able to make use of it in Mame.

The is another problem as well and thats to do with licensing, if I add DrZ80 to Mame I will HAVE to release the source code. Which I'm abit wary of at the moment, so I'll need to read up on that.

Since Flubba's cpu cores are available I suggest you use them, I've been speaking to him and can confirm his Z80 core is faster than mine. I haven't looked at the source code yet but he usually writes everything for ADS. This may be the only problem as I'm not sure his source code will compile under GCC or that you can use object files created by ADS in GCC. In order to use his cores you may need to compile your project in ADS, but I'm not certain.

I have checked it. Flubba's core is not in GCC assembler format... I suppose it is in ADS... GCC does not support ADS .o files. I will wait then...
 
Last edited by a moderator:
Reesy posted on Jul 12 2005 at 07:31 PM said:
The is another problem as well and thats to do with licensing, if I add DrZ80 to Mame I will HAVE to release the source code. Which I'm abit wary of at the moment, so I'll need to read up on that.



I don't know but I would doubt that you have to release the source to the CPU core. It is a CPU core and not MAME specific. Besides if the MAME sources were released with your core imbedded I doubt the MAME guys would even take notice. I doubt they or anyone else that doesn't have a GP32 would even find out ;) ;). It is not like the PC crowd would be interested in a version of MAME based on .34. If by some fluke they found out and it was against the rules the old core could be put back, but by then we would already have it :)
 
Last edited by a moderator:
DaveC posted on Jul 18 2005 at 11:14 PM said:
Reesy posted on Jul 12 2005 at 07:31 PM said:
The is another problem as well and thats to do with licensing, if I add DrZ80 to Mame I will HAVE to release the source code.  Which I'm abit wary of at the moment, so I'll need to read up on that.



I don't know but I would doubt that you have to release the source to the CPU core. It is a CPU core and not MAME specific. Besides if the MAME sources were released with your core imbedded I doubt the MAME guys would even take notice. I doubt they or anyone else that doesn't have a GP32 would even find out ;) ;). It is not like the PC crowd would be interested in a version of MAME based on .34. If by some fluke they found out and it was against the rules the old core could be put back, but by then we would already have it :)

DaveC, i think it is not ok... Mame developers came to stop mame gp32 binaries until source code released... There is no need to inconvenience Mame people again... Also Reesy says DrZ80 is not ready for my Mame port due to interrupts handling... Then we have to wait :rolleyes:
 
Last edited by a moderator:
Back
Top