Jump to content


Photo
- - - - -

Emulation Guide Part 1


  • Please log in to reply
15 replies to this topic

#1 Guitar

Guitar

    Project Amber Developer

  • Layout Creator
  • PipPipPipPipPip
  • 2989 posts

Posted 06 September 2008 - 01:05 PM

I am making a guide on How to emulate a fruit machine. Step by step I'll walk you through what you need to know and then how you emulate stuff with source code (once I get that far, probably part 3 before we code anything).

Part 1. Number Bases (Decimal and Binary) and Binary Arithemtic.

If you follow this through you will eventually end up with code for your very own MPU4 emulator a bit like those magazines to build stuff, only for free and not in 100 million parts.

I'll take it slowly to begin with but please would at least a few of you try and follow it through to the end, its going to take several hours of typing to finish it and would like to think it has at least helped a couple of people out.

Those of you who know what you are doing please feel free to comment and correct me.

Attached Files


Project Amber 2 - Coming Soon


#2 ross

ross

    Senior Member

  • Layout Creator
  • PipPipPip
  • 1129 posts

Posted 06 September 2008 - 01:27 PM

any chance of a .txt? cant read a .doc on this pc

ta

#3 Guitar

Guitar

    Project Amber Developer

  • Layout Creator
  • PipPipPipPipPip
  • 2989 posts

Posted 06 September 2008 - 01:30 PM

Sure :)

Attached Files


Project Amber 2 - Coming Soon


#4 ForYouToEnvy

ForYouToEnvy

    Prince says....Raghead

  • Regulars
  • 902 posts

Posted 06 September 2008 - 01:33 PM

Top man, not only do you spend many countless hours making an emu now your gona spend countless more doing a step by step guide...hats off to you fella:D

#5 jamesb99_1999

jamesb99_1999

    Designed Layabout

  • New Members
  • PipPipPipPipPip
  • 2176 posts

Posted 06 September 2008 - 01:33 PM

Cheers for this Guitar mate ;-) remember to concentrate on your new job though -- and remember don't get too drunk at camping ;-)
J<br /><br /><br /><br />A man

#6 ross

ross

    Senior Member

  • Layout Creator
  • PipPipPip
  • 1129 posts

Posted 06 September 2008 - 01:36 PM

Sure :)


cheers :)

#7 Guitar

Guitar

    Project Amber Developer

  • Layout Creator
  • PipPipPipPipPip
  • 2989 posts

Posted 06 September 2008 - 01:39 PM

Top man, not only do you spend many countless hours making an emu now your gona spend countless more doing a step by step guide...hats off to you fella:D


But in return I should hopefully get a couple more people to help me out. :D

Project Amber 2 - Coming Soon


#8 renoufchr

renoufchr

    Arcade Mod

  • Regulars
  • 396 posts

Posted 06 September 2008 - 04:55 PM

yea good job guitart heopfully this can spark intrest in someone rewriting crop 4 to inclde what we need

#9 levartemit186

levartemit186

    Member

  • New Members
  • Pip
  • 178 posts

Posted 08 September 2008 - 05:28 AM

Guitar, can you recommend a course on programming language, like c+. I went to Uni for computers, but never learned language cos all we had was windows 3.11 (Good old dos command tho) and pascal! Cheers m8 and the best with FMEF! Btw was a wizard on basic and commodore basic lol.

10 print "Well done Guitar"
20 goto 10

sorry couldn't resist!

#10 Guitar

Guitar

    Project Amber Developer

  • Layout Creator
  • PipPipPipPipPip
  • 2989 posts

Posted 08 September 2008 - 05:10 PM

Guitar, can you recommend a course on programming language, like c+. I went to Uni for computers, but never learned language cos all we had was windows 3.11 (Good old dos command tho) and pascal! Cheers m8 and the best with FMEF! Btw was a wizard on basic and commodore basic lol.


I fully recommend the book C++ for dummies. I have it and intend to start putting it to good use shortly. If you've been to uni already then just buy that book and teach yourself. It comes with free C++ dev software too.

There's nothing wrong with basic and commodore basic. I learned most of my stuff on a zx spectrum.

A lot of people said that VB couldn't be used for emulation as it isn't quick enough. Ok it is no match for C or C++ but as long as you don't mind some hefty processor usage it works.

I'll write up part two soon and that should finish off the talking about number bases, converting between them, and signed values.

Part 3 will then start the actual emulation, explaining what we are doing, and a little electronics and logic.

That should then be a good base to start moving on a bit more quickly with the emulation. Starting with the 6809 CPU, then the 6840 Timer, then the 6821 PIA's (Peripheral Interface Adaptors).

For the CPU we'll start by looking at how to load a rom into an array. Moving on to resetting the CPU. Then interpreting an opcode. Then looping it to do multiple opcodes. Fortunately for all of you I have already debugged the CPU so the code you get given should work first time. I will do a section on debugging but for the time being I'm very happy to put that behind me.

The first thing to do is dispell the myth that emulation is very difficult. It isn't, if I can do it then so can most of you. At times it can be frustrating, tedious, annoying and downright infuriating, BUT the first time the alpha flashes up the init message you also get a huge sense of satisfaction. Also if we ever have an FME meet up I'll be drinking for free all night ;). (memo to self, organise fme meet up)

The CPU is easy to program but a bit difficult to get your head around. Thats why I'm starting with the number conversion. Once you understand that then by comparison the rest is easy.

Anyway enough rambling from me.

So who is actually interested in giving this a try?

Project Amber 2 - Coming Soon


#11 d0uga1

d0uga1

    who put my name up there

  • Layout Creator
  • PipPip
  • 546 posts

Posted 15 December 2008 - 09:27 PM

hi just wondering if you managed to get around to finishing off this tutorial i know youve got a lot on with fmef but i wouldnt mind having a go at this tutorial ive looked at part1 you posted and seems fairly straight forward.
always on the scrounge for freebies.

#12 nodeal

nodeal

    Newbie

  • New Members
  • 4 posts

Posted 09 April 2015 - 01:02 PM

Was there ever a part 2 to this tutorial? i have searched the forum but couldn't find anything.



#13 Guitar

Guitar

    Project Amber Developer

  • Layout Creator
  • PipPipPipPipPip
  • 2989 posts

Posted 09 April 2015 - 01:39 PM

I never finished it due to lack of time/interest.

 

But this is quite good. http://emulator101.com/


Project Amber 2 - Coming Soon


#14 nodeal

nodeal

    Newbie

  • New Members
  • 4 posts

Posted 09 April 2015 - 02:08 PM

Is there source code available for any Fruit Machine Emulators out there? 



#15 captainhaddock

captainhaddock

    Layout Designer

  • Layout Creator
  • PipPip
  • 740 posts

Posted 09 April 2015 - 02:52 PM

Is there source code available for any Fruit Machine Emulators out there? 

Yes - here http://agemame.mamew....info/?u=/MFME/

 

Dave.



#16 nodeal

nodeal

    Newbie

  • New Members
  • 4 posts

Posted 09 April 2015 - 03:15 PM

Nice one. 






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users