Author Topic: some small updates  (Read 9250 times)

kev

  • Guest
some small updates
« on: March 22, 2008, 02:00:25 PM »
I have updated a couple of drivers:

Dec0:

Nothing much, just updated decoding routines to use trebles generic ones

TMNT:
Quite a few changes to the graphics routines. Nowhere near as slow as they were before.
Updated my WIP konami directory to work on the latest FBA. You will need to add a few extra files to your makefiles
If any one can figure out the graphics decoding on MIA, that would be awesome. :)


I plan on updating DEC0 to use the generic graphics rendering routine next.

Offline iq_132

  • Administrator
  • *****
  • Posts: 3724
  • Karma: +411/-0
  • Definitely not Dink!
    • NeoSource
Re: some small updates
« Reply #1 on: March 22, 2008, 10:34:42 PM »
Wow! Very nice :)  I'm looking forward to seeing the updated dec0 stuff.


kev

  • Guest
Re: some small updates
« Reply #2 on: March 25, 2008, 07:21:37 PM »
Another dec0 update:

Changed rendering code to use the generic drawing code for the tile and char layers.

Made a first run attempt at adding sound to both games but its incomplete and buggy. Not sure what the hell is going on due to my ignorance of the sound chip emulators and the m6502. If anyone wants to take a look before I have any more free time then please do. :)


Offline iq_132

  • Administrator
  • *****
  • Posts: 3724
  • Karma: +411/-0
  • Definitely not Dink!
    • NeoSource
Re: some small updates
« Reply #3 on: March 25, 2008, 07:31:45 PM »
It may also just be that the m6502 stuff is dodgy as hell. :(  I need to go back and re-implement a few things (once I figure out how to get microshaft's VC tools to not crash when I'm installing them).


kev

  • Guest
Re: some small updates
« Reply #4 on: March 26, 2008, 06:53:56 PM »
I am really not sure if the problem is with: the m6502, a missing interrupt, something I  have missed from the setup of the sound code, or perhaps something else stupid I am doing or not.

anyway, here is another small update hooking up the oki chip. Still no sound from anything tho. :)

 

kev

  • Guest
Re: some small updates
« Reply #5 on: March 29, 2008, 09:13:25 AM »
I have been running a few investigations as to whats going on and it seems that MSVC does something weird to the m6502 core when its building it. Not sure if its a particular instruction that causes problems yet or if its the way the instructions are called. Might have to look into running another m6502 along side and see what the differences are.

kev

  • Guest
Re: some small updates
« Reply #6 on: March 29, 2008, 11:25:10 AM »
I hacked in Marats m6502 which gets around the problem with the m6502.

http://fms.komkon.org/EMUL8/

I have no idea if save states are going to work, that will need looking into.

This got Dec0 making some noise although neither of the YM chips are mixing so the sound is still screwed, although better.


Offline Barry Harris

  • dontbeabarry
  • *
  • Posts: 1785
  • Karma: +0/-65535
  • I'm Barry Harris and I like to f*** people over
Re: some small updates
« Reply #7 on: March 29, 2008, 12:07:19 PM »
None of the M6502 games work in VC builds - Mole does something though - might be the best one to look at?
Account of Barry Harris; the traitor.
Send me an e-mail at barry@fbalpha.com letting me know how big of a piece of sh** I am.

kev

  • Guest
Re: some small updates
« Reply #8 on: March 29, 2008, 12:13:29 PM »
Yeah, thats where I am going to start. Now that there is another m6502 working in FBA I can probably run them side by side and see which instructions are going wrong.

Marats m6502 does work quite well with FBA tho, and all the m6502 games seem to work ok with it.

Offline Barry Harris

  • dontbeabarry
  • *
  • Posts: 1785
  • Karma: +0/-65535
  • I'm Barry Harris and I like to f*** people over
Re: some small updates
« Reply #9 on: March 29, 2008, 04:37:53 PM »
Might be worth switching to that then? Does it work ok with GCC?
Account of Barry Harris; the traitor.
Send me an e-mail at barry@fbalpha.com letting me know how big of a piece of sh** I am.

Offline iq_132

  • Administrator
  • *****
  • Posts: 3724
  • Karma: +411/-0
  • Definitely not Dink!
    • NeoSource
Re: some small updates
« Reply #10 on: March 30, 2008, 01:51:14 AM »
Cool. :)  I think it's probably a good idea to use Kev's work. 


kev

  • Guest
Re: some small updates
« Reply #11 on: March 30, 2008, 08:32:47 AM »
After some more experimentation I think I have to say that this core is a bit more complete than the other one. There is no reason why we couldn't use both however, if thats what you want to do.

Here is a small update to clean up a few include statements and move a few files around. You will probably want to remove your m6502 directory and replace it with this one as a few filenames have changed to get around case sensitivity.

I think the things that are left to do on it are:

Check that save states are saving everything thats needed.

Add support to timer.cpp to allow a timer to be driven by this cpu

probably some other stuff to do with run segments etc, that I couldn't be arsed to figure out.


Offline Barry Harris

  • dontbeabarry
  • *
  • Posts: 1785
  • Karma: +0/-65535
  • I'm Barry Harris and I like to f*** people over
Re: some small updates
« Reply #12 on: March 30, 2008, 11:12:20 AM »
Nice stuff kev - works fine with GCC and the current drivers work fine too.
Account of Barry Harris; the traitor.
Send me an e-mail at barry@fbalpha.com letting me know how big of a piece of sh** I am.

Offline iq_132

  • Administrator
  • *****
  • Posts: 3724
  • Karma: +411/-0
  • Definitely not Dink!
    • NeoSource
Re: some small updates
« Reply #13 on: April 01, 2008, 09:28:18 PM »
Very excellent. :)

This fixed the problems I was having with my "Scrambled Eggs" driver!


kev

  • Guest
Re: some small updates
« Reply #14 on: April 02, 2008, 06:53:48 PM »
Cool. :)