PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

C64 emulator project - need team members!

Hello all. If you've seen any of the previous threads regarding C64 emulators, you'll know what this is all about. Otherwise...

I am trying to organize a team to work on a PocketPC port of the C64 emulator Frodo. The author of that emulator was very agreeable to us having a go at it, so now we need some folks to actually do the work.

So far it's only myself and one other, and we need more! We need a couple of coders specifically because the thinking is that since the Frodo source code is organized rather nicely, we should be able to break the project into some discrete work units easily. But even if you aren't a coder but think you can still contribute somehow (technical research, documentation, testing, etc.), don't shy away!

I'm more or less serving and project coordinator, and I don't really want to find myself serving as SOLE coder as well! So, if you want to see Hardball, Impossible Mission, Hoover Boover, One On One, Spelunker, Denarius, GI Joe, Hot Wheels and all the other classics you remember and of course all the demos you remember, running in the palm of your hand, eMail me at fzammetti@omnytex.com.

I will establish a web site and mailing list as soon as there is more than two people signed up (assuming that ever happens!). We're not looking to get it done in a week either, I certainly don't have oodles of time to contribute. So, a nice relaxed atmosphere is the goal, with a target date for a first release maybe some time in January at the latest.

If you have any questions, fire away. Thanks all!
Just to expand on what fzam wrote on the subject, I'd like to outline the sort of people we're looking for. The guy who wrote Frodo has very kindly made the code highly modular, separating general program logic from the platform dependent stuff.

In addition to PPC specific changes to the overall source base (for example, adding GetModuleFileName to fopen calls), we'd be eternally grateful if people with an interest in the following modules to help port them over:

C64_PPC.i - load/save system configuration, timing, joystick emulation, threading

Display_PPC.i - framebuffer setup, keyboard emulation, native status indicators

Main_PPC.i - startup code

Prefs_PPC.i - Preferences UI

SID_PPC.i - Sound emulation

I'd like to have a crack at the display stuff, but I'm not going to hog it if somebody better than me comes along with an offer!

Cheers

Jon
fzammetti · 29 Jul 2002, 23:50 UTC — Prefs
I'll probably take on the preferences UI just for reference. As Jont said, none of this is etched in stone, I don't really want to get into determing who will do what for sure until the team is formed.
I'm always willing to test. (but have minimal chances cuz of my jornada 525 & 548) but I suppose by the time you release some betas I'll have a new ppc.
UMCPmatt · 30 Jul 2002, 04:50 UTC — maybe in a few years
When I can program better I can help out with that sorta stuff.. programming a emulator has been a mystery to me

I want a Odessy 1 emulator.. I think that is the one with all analog circuits!
mbrtis · 30 Jul 2002, 07:09 UTC — Willing to help the testing effort
Hi Guys,

I for am glad to see the development of another C-64 emulator for the Pocket PC. Though I am not a developer, perhaps I could add my professional quality assurance experience and C-64 knowledge to the team in a testing capacity.

Hardware-wise, I have a Casio E-200 and my wife's EM-500 available for compatibility testing.

Thanks,
Matt
Did you consider VICE? I just know that that emulator is widely ported, and works very well...
Vicente_cgn · 30 Jul 2002, 08:25 UTC
Hi Anonymous!

VICE is a good and often ported emulator, too - but it's much bigger because it doesn't only emulate the C64 but other like the VC20 etc. too!

And the aim is to have at least ONE C64 emulator for PPC as soon as possible - after that someone may port VICE with all it's extras, too! And I don't know how much coders already applied to this project at the moment but they seem to be rare! So you have to keep the workload to a minimum to get it done even with only a few people in an acceptable time.

Bye,
-Vic-
I'm not promising anything, but if somebody throws a well defined function specification my way I'll knock up some code. (I'd prefer the graphics side of things, and to be "allowed" to use ARM assembler ;))
Thanks for the response! I applaud the initiative -- and I don't reall care if it is Frodo or VICE -- one good working emulator is enough for me!

:)
fzammetti · 30 Jul 2002, 16:00 UTC — Status
Just as a public status update:

I've had -ZERO- coders apply at this point (Jont, you've seemingly joined by default, is this your intent? Please eMail me so I know for sure). Tbere's been three people overall that have contacted me expressing interest, but no coders thus far.

I've thrown together a dirt-simple web page for the project available at http://www.omnytex.com/ph (the FP3 part is explained in my, ummm, humorous way. Ahem.) It contains a current member's list. Hopefully I won't forget anyone, and hopefully it'll grow soon!

I don't suspect this will go very far if I'm the only coder, at least not in any reasonable timeframe (maybe I'll get it done by NEXT July!). So, if we don't get at least one or two others to join up, I won't say the project is dead before it begins, but it will absolutely move at a snail's pace to no one's satisfaction I'm sure.

Please, if you are interested, especially for coding, eMail me at fzammetti@omnytex.com. That's the only way I'll be able to get an official tally and not miss a posting here somewhere.
Yep, I'm in by default (my personal interest is seeing the "Second Reality" demo running on my ipaq!).

J
You know, I found Final Reality better than Second Reality, but either way I know what you mean, that would be sick to see!
Hi,

It's great to hear of the interest in the C64 for PPC. Unfortunately I can only program in C64 Basic :lol:, but I have a large (ok huge) collection of C64 games, and an iPAQ 3600 with gravis stinger and would be happy to do any testing.

I really wish you guys the best of luck, it would be great to see a good C64 emu!! cd64 is ok, but on one of my favorite games: time tunnel, I can't anything up!!
Sorry, that last post was unregistered!

Ed
I've not looked at the Frodo source, Is there any assembler?
I'd be intersted in contrbuting to such a project. Possibly also working on a HPC port.
How are we doing for members anyway?
Vicente_cgn · 04 Aug 2002, 06:46 UTC
Hi there!

Please look on http://www.omnytex.com/ph/index.htm - there's a message board too, where you'll find answers! :-)

Bye,
-Vic-
Christ, it takes longer to build that web-site... even build that logo than it does to actually port the code in the first place!!!

In fact to WRITE the code in the first place... why all this massive coordinated team fuss?
fzammetti · 04 Aug 2002, 22:06 UTC — Reasons
The web site, apart from the source control which I wanted to write anyway, didn't take more than about two hours work, but I'll take your comment as a compliment and just thank you! :)

Anyway, the reason for the team effort, in my mind anyway, is because (a) none of us has a lot of time to work on this, (b) none of us has any, or at least very little, experience in emulators, whether porting or writing from scratch, and (c) because of a & b, we thought breaking the task up into small pieces would work out better, especially since Frodo is pretty nicely organized hat way anyway.

Besides, team efforts are more fun in my opinion, at least when they work!
Source control??! fzammetti - emulator are tiny little things, honestly! Especially a commodore 64 emulator, it's one system - for something like MAME with lots of drivers and chips yes you do need source control (not that they have it!!), but for a commodore 64 emulator...

Thing is there's already many many C64 emulators
http://www.zophar.net/c64.html
and as I understand it people here are very good at porting existing emulators (and then selling them off as their own work... GRRRRR - I've seen a couple so far, stop it people: you know who you are! - sorry, side issue I wanted to get off my chest!)

But I understand your position - you really want a C64 emulator, but don't know where to start - and you are apparently very good as web-programming! ;)
... sorry I will stop critising now, honest!!
Please, that's just ludicrous!
a) I have no idea what emulators you are talking about. If you are referring to PocketSCUMM, Arisme clearly states who did the original emulator and lists everyone who contributed to PocketSCUMM. If you are referring to Dan East's software, those are not ports of emulators but of original games. If you are referring to PocketPalm, PDAFantast wrote all the code himself.
b) If it's really that easy, go along. Port FRODO before they do!
Source control is required BECAUSE it's a multi-person project. We can't have two people modifying the graphics functions at the same time, someone's changes will be overwritten. Especially since we're all in geographically different locations that vary time-wise, we need a way to guarantee that only one person modifies a given file at a time, hence source control is required.

When you say "emulators a tiny little things", how do you define little? If you mean they aren't a million lines of code, your probably right in most cases. But something like Frodo consists of many files and many discrete parts that make up the whole. I wouldn't call it tiny by any stretch. It's not the Windows 2000 code base, but it's not Eliza either.

Yes, there are many C64 emulators, but only one that any of us are aware of for PocketPC, which is no longer supported or developed and was left in a half-working state. So, because MANY people want it, we're trying to deliver it, for ourselves and everyone else.

I'm also not sure what you are referring to when you say "...people here are very good at porting existing emulators (and then selling them off as their own work...". I don't think anyoneis saying they wrote the games or systems they write/port emulators for. You seem to have a gripe with some people, I for one (or two I should say, shapeshifter already said it), don't know why.

Hey, do us a favor, if a C64 emulator is not a big deal to you... PORT IT! Please, save us the time and effort! Not a single team member while be in the least bit upset I suspect, we'll thank you very much for it.

I do web programming for a living by the way, but I also make decent money on the side from PocketPC software. I suspect that ultimately I could in fact write my own C64 emulator, I've done plenty of things in the past that I'd put on par with it (my own language with compiler and the guts of my own O/S for instance). But bragging aside :), the point is, why would I do it myself for one, and second and more importantly, I most definitely do not have the time. I have a full-time day job, my side PocketPC development at night, a part-time band and, last but absolutely not least, a family with two kids. If breaking up even a trivial task, as you imply it is, into many parts makes it easier for everyone, so much the better.
gamefreaks: frodo doesn't contain any processor-dependent code (ie assembly language), but the source does rely on a number of libraries that aren't available in the WinCE OS (I can't speak for non-Microsoft operating systems).

What's your main area of expertise/interest in emulator programming?

Britcode: The people so far getting together to port Frodo to the Pocket PC are highly experienced programmers (I myself have almost 20 years of programming experience) with a goal of porting the emulator in a realistic timescale, and in a form usable by the general public.

I'd rather set realistic timescales and goals with the aim of exceeding expectations, than promise a finished product within a week and fail. That's not good for anybody.


Cheers

Jon
>C64 emulator is not a big deal to you... PORT IT! Please, save us the time and effort!

Six months ago I would have done... possibly... but right now... I need money!!! I can't go pissing around with projects which aren't going to earn anything no matter how fun they sound!! :)

Honestly though, please believe me - okay I'm not certain about C64, but the Spectrum is literally a Z80 hooked up to a ULA, it's just 16k of Rom, 48k of Ram (part of which is the screen). The hardest part actually is the TZX loading. Actually that's probably what most of the Frodo code is: tape loading.

What I have got my eye on is a Sega Master System emulator, mainly because unlike the Spectrum or C64 you don't have to include a copyrighted BIOS so you could in theory sell it on Handango.
fzammetti wrote:

(c) because of a & b, we thought breaking the task up into small pieces would work out better, especially since Frodo is pretty nicely organized hat way anyway.


I think fzametti is right and the approach is correct. Anyway, in my opinion, you should:

- have a CVS up and running to coordinate and archive changes in the right way
- concentrate initially on obtaining a first quick and dirty port of the emu (just making it compilable under EVC adding/adapting/replacing missing CE functions)
- work on optimizing compiler generated code
- postpone any user interface and cosmetics consideration at a later stage.

That's obviously my own point of view and i don't pretend to be on the right side.

Anyway emulating a C64 under PocketPC is something that should not be underestimated. Commodore 64 is a very complex machine and it's difficult to have a fully 100% emulation on currently available devices.

Among all the emulators i worked on (many) the C64 was, for sure, one of the most difficult.

I'm very happy to see that you guys are going to start this project. If you feel i can help someway, please let me know. I'll try to do my best even if i have a very limited spare time due to my job.

Ciao,
Domenico
>the C64 was, for sure, one of the most difficult.

Really? What was it which made it difficult?
I hear the sound chip is quite advanced for its time...
The SID chip is the part that worries me most... it was a complete synthesizer, and PocketPC's don't offer that ability. I'm not sure how to pull it off, but I suppose we'll have to have a series of small waveforms that can be dynamically mixed, but knowing what I know about C64 sound capabilities, I expect this to be the single most difficult aspect of the job.
I have a feeling that Frodo automatically generates a fixed length binary stream that we can just output as a sample on a timer - but dont quote me on this :D

The wonders of portable code eh?
Well, that would be sweet indeed! I wrote a wave mixing library that actually works pretty well (no one was more surprised than I!) for PocketPC, and that might be perfect for this, even though it doesn't sound like we're actually mixing wav's, it's still good for playing them. Probably wouldn't be a big deal to take his binary stream in say 1k chunks, package it as a WAV and play it, then rinse and repeat... sound about right?
domenico · 08 Aug 2002, 18:26 UTC — SID
jont wrote:
I have a feeling that Frodo automatically generates a fixed length binary stream that we can just output as a sample on a timer - but dont quote me on this :D

The wonders of portable code eh?


You should just take the waveform data on a vector and send it to waveout function perodically. The problem is that you can easily hear "clicks" coming out of the speaker due to speed and sync problems.

Domenico
Guess you could also use fmod (www.fmod.org) - its free for free projects, afaik
I think Jont is correct. :) I looked at one of the other ports (to a non PPC platform), and there wasn't anything nasty like mixing going on with the sound :)
The linux sound code (SID_linux.i) in particular is an almost trivial 125 lines, simply opening the soundcard device, setting the playback parameters, and outputting raw data to the device every time the buffer becomes full. I am (perhaps naively) assuming the features used by this file don't depend on other linux-specific code elsewhere in the codebase though...

In contrast, the Win32 DirectSound playback code is pretty complicated, but I'm guessing in this instance that our Pocket PC sound API has more in common with the linux sound "API"...
I'm almost done with my game, and I would love to do the graphics for the C64 emu's GUI (I can program too, but only eVB and I assume your using eVC++). Just tell me when you get to the GUI part and what you want and I'll do it for you. :)
>The SID chip is the part that worries me most... it was a complete synthesizer, and PocketPC's don't offer that ability.

I'm a little bit confused by this post... PocketPC's obviously don't have a C64 sound chip built into them. Host machines hardly ever have the emulated machines sound chips or graphics chips in them - hence the need for sound emulation and graphics emulation.
Exceptions are emulators such as the early versions of Genecyst (0.20) which attempted to run YM2612 emulation using the OPL chip in PC sound cards, and a select few games under MAME which use a OPL sound chip and probably a few emulators running on the GBA.
The other 99% emulate the sound hardware.

To put it another way, yes the Pocket PC obviously doesn't have the C64 hardware but nor does the PC, MacOS or UNIX version of your C64 emulator that you plan to port.

> I'm not sure how to pull it off, but I suppose we'll have to have a series of small waveforms that can be dynamically mixed, but knowing what I know about C64 sound capabilities, I expect this to be the single most difficult aspect of the job.

That's the usual method yes.
I was simply alluding to the fact that emulating a true synthesizer like the SID chip with all it's complexities and flexibility might prove very difficult. I have no experience writing emulators as I have previously stated, so I don't know how it's usually done. Having read what Jont wrote and, assuming he is correct, it makes much more sense now and might not be as difficult as I feared at first.

Then again, I note that most emulators seem to have problems with sound more so than any other part of the emulated system, and knowing what the SID was capable of, it still does worry me.
You can count on me for beta testing...if you want.
Hi Folks!

How are things going on? I read on your homepage that you already managed to display the C64-Screen. So is there already a possibility to ask when there might be a dirty release?

Bye,

Buster
Coder answer:

fairly soon ;)

I'll let one of the other guys (probably Frank) give a more definitive answer, but some of the other members are on holiday and I'm really busy with "real" work-work right now. Progress should re-accelerate next week.

The only thing that's stopping a release (IMO) is that we lack:
a) testing
b) input method/keyboard - we haven't done that yet
(though if you're lucky, I'll have a go at it over the weekend).

Cheers,

Ref.
fzammetti · 30 Aug 2002, 14:59 UTC — More detailed answer
I suppose as "project coordinator" it's my job to answer these questions.

So, I'll answer it by saying the answer is: EXACTLY WHAT REFRACTOR SAID! :)

I think there's been an informal agreement within the team that as soon as we have keyboard input working, which should by extension mean you can at least enter Basic programs and execute them, and as long as there are no glaringly ugly bugs that we know of, we'll unleash it on the world.

I'd say within a week is probably a good estimate, so keep an eye on the site!
OK, Guys!

Thank you very much for your answers! Ohh, I just can't wait! :P

Bye,

Buster
refractor wrote:
The only thing that's stopping a release (IMO) is that we lack:
a) testing
b) input method/keyboard - we haven't done

I'll test it, I don't know how far along it is, but send it to me whenever and I'll test :D Now I have a Maestro
TheOldBoiler · 03 Sep 2002, 07:23 UTC
Here's a shout from all us jornada720 owners... err.. all 3 of us...

"Could we get a port please?"

Thanks :)
TheOldBoiler · 03 Sep 2002, 07:23 UTC
'doh!
TheOldBoiler · 03 Sep 2002, 07:23 UTC
'doh