Posted Jun 11, 2007 at 06:37PM by Gino D. Listed in: Homebrew Development, Homebrew Emulators, Nintendo 64 Tags: StrmnNrmn, Daedalus, Jupiter, Smash Bros., N64, emulation
Ó

Daedalus update - Image 1


While N64 emulator for PSP">Daedalus, an N64 emulator.">StrmnNrmn's updated us with a quick post about the dynarec issue for Super Smash Bros. yesterday, he's fulfilled his promise of a longer, more detailed entry on the said issue. That's what we've got today: another update on his much-awaited Daedalus R12 N64 emulator for the PSP.

It's even complete with all the homebrew emulation development hoopla that can drive the novices to either 1) rip their hair clean off their scalps, or 2) create better homebrew and be encouraged by StrmnNrmn's efforts. With that's said, let's take this slow and steady.

Maybe you're asking what the hell is up with dynarec issues anyway? Just so you know, StrmnNrmn is going through hell and high water to fix this thing, so you better thank him.

He admits that, in the six years that he's been programming professionally, dynarec debugging is one of the hardest issues to deal with. "It's very much like working blindfolded." For one, you don't know what code will turn up every time. And worse, identifying the exact bottleneck out of 500 million lines of code can be a headache the size of Jupiter.

Homebrew hero that he is, StrmnNrmn's been able to deal with issues like this before, and he's been able to develop his own solutions to track down these bugs. That's how he was able to wheedle out the SSB dynarec issue. The trick here is to reproduce the same bug in the PC-build of the emulator - that's his technique.

Going hand in hand with this is a fragment simulator he's coughed up. This tool helps him pinpoint the bugs that the dynarec code generates. Basically he uses a framework that allows him to compare what is being executed to what is being simulated. Make ends meet by comparing the two, and your blindfold gets more transparent.

Now we don't know if you understood all that. I for one can't honestly claim that I understood every single detail of his post. But I do have a grasp of the gist. Want to continue your Homebrew Emulation 101 lesson? Click the Read link below to head on over to StrmnNrmn's lecture.


Read Permalink  |   Email this  |   Linking Blogs   |   Digg It!

Bookmark / Find this article on:


56 Comments


Sort by:
   by first NOOBs (Unregistered) - 2007-06-11
 » first NOOBs

first NOOBs


   Re: GO (Unregistered) - 2007-06-11
 » GO LICK

GO LICK A TURKEY

   Re: Question!!! (Unregistered) - 2007-06-12
 » questoin here

About how many lines of code do u think daedalus is??

   Re: /./ (Unregistered) - 2007-06-12
 » ./.

100 bajillion (10 with 1000000000 zeroes after it)

who cares?
   by youresam - 2007-06-11
 » .

I think articles like this should just have a big button that says "READ", I can hardly follow this summary.


   Re: seven (Unregistered) - 2007-06-11
 » ...

In my opinion this summary was written very well, i especially like the blindfold metaphor!
   by Ero-Sennin (Unregistered) - 2007-06-11
 » wow

Pretty Awesome!

   by UBER DOOBER (Unregistered) - 2007-06-11
 » woah...

First off... THANK YOU STRMNNRMN!

Your Daedalus is most definately the greatest emulator that any handheld system has seen. Atleast in my opinion. I GREATLY appreciate your hard work and feel as though I, or rather we, can't thank you enough.

YOU ROCK D00D! Can't wait for R12, I know it will be UBER DOOBER XD!


   Re: Advertising -


   Re: (I)(AM)(NOT) (Unregistered) - 2007-06-11
 » .:+~-/V()()§3-~+:.

Yeh... Smash bros is better than Super Mario 64, imho.
   by z7 (Unregistered) - 2007-06-11
 » z7

LETS SUMMON CAPTAIN PLANET!



EARTH


   Re: . (Unregistered) - 2007-06-11
 » .

WIND!

   Re: . (Unregistered) - 2007-06-11
 » ...

COMBO BREAKER!

   Re: . (Unregistered) - 2007-06-11
 » PS.

By the way, in case you don't see what I did there - I am well aware "fire" is the next one - I just put wind there first to break it. :P

   Re: milo22 (Unregistered) - 2007-06-11
 » PS

hmmmm

   Re: milo22 (Unregistered) - 2007-06-11
 » ....

C-C-C-Combo Breaker!!

   Re: Shane The Juggalo (Unregistered) - 2007-06-11
 » .

DUMBASSES!

   Re: . (Unregistered) - 2007-06-11
 » .

COWS! RRRRAAAAARRRRRRGGGGGHHHH!

   Re: Advertising -


   Re: rob (Unregistered) - 2007-06-12
 » ...

wind is the second one...at least, i could have sworn it is

   Re: abc (Unregistered) - 2007-06-12
 » xyz

u captain earth kids are fuhkin ghayyyy
   by um.. (Unregistered) - 2007-06-11
 » um..

this article makes no sense.. StrmnNrmn's Blog post was Easier to read =/

   by Sasha (Unregistered) - 2007-06-11
 » my version

my version of homebrew:

http://www.crazyyy.com/

   by Jon (Unregistered) - 2007-06-11
 » props

sounds like one hell of a headache to work through these dynarec issues. Thanks for doing it anyway StrmnNrmn you rock.

   by stop talkin (Unregistered) - 2007-06-11
 » not again...

can you stop with the updates, and just tell us when it gets released?

this has been the 392nd update on the emulator, so just have a blog with these details, and qj.net can just tell us when the final thing is out. dosbox emu is much more exciting!


   Re: someone who hates n00bs (Unregistered) - 2007-06-11
 » ...

why don't you just go f.u.c.k. your mom, you impatient pr1ck! BTW deadalus r12 will be scweeeeet as hell.

   Re: pro (Unregistered) - 2007-06-12
 » silence

shut your mouth tool shed, if they didnt give updates the sorry as5 little b1tches like you would have anything to type about, nobody forced you to click the link so go stick something in your mom(like everybody else does)

   Re: omg (Unregistered) - 2007-06-12
 » your so stupid

he HAS a blog, jackass. its QJ's fault for SCRAPING for news at every turn. jackass
   by IDEA (Unregistered) - 2007-06-11
 » gotta an idea here

I really cannot wait for this to be released. But, i also have other requests. How about making a "ad-hoc" mode for people to play w/ each other. This would make it so much more fun rather than playing SSB against the computer. This is BY FAR my favorite homebrew app. and i think that this little feature would make it even more enjoyable. Also, when StrmnNrmn gets goldeneye running faster, that would be really fun with friends and/or relatives. But before he gets multiplayer, i would rather see an increase in compatibility and speed. Then add those little extras.


   Re: Advertising -


   Re: IDEA (Unregistered) - 2007-06-11
 » got* an idea here

its me again....and if i had a blogspot name or gmail adress or w/e u need i would post on his blog...if anyone wants to post this idea that would be awesome...btw keep replying... i rele want to see what others think of this idea; i dont want to beg if im the only one who rele wants this...post ur opinion here!!

   Re: templar (Unregistered) - 2007-06-12
 » afgf

....you posted this on yesterdays article about the dynarec fix. You are not the first to have this idea, it is, quite obviously, in all our minds that it'd be good, i have no doubt that StrmnNrmn will have already thought of this. I also have no doubt that this idea will have already been posted many, many times on Strmn Nrmn's blog, and it's wishful thinking to assume that the ad-hoc feature will be added anytime soon. This is not a priority, there are still other bugs to fix, and even to allow other N64 games to be played on Daedalus.
I'm sorry to p1ss on your fireworks, but you are not the first to think of this, and you will not be the last. If you feel that you are the only one to have this idea, and feel that not even Strmn Nrmn, himself has thought of this, then by all means post it on his blog, but do not expect him to say it will be in the next update.

   Re: gregerson316 (Unregistered) - 2007-06-12
 » Ad-hoc

Im sure if he added ad-hoc now, that would make the framerate slow down a lot. But when the emu gets going it might be a good idea. Infrastructure mode would be killer too. But all that might be a while.

   Re: pspfan (IDEA) (Unregistered) - 2007-06-12
 » @ templar

i realized where and when i posted it but i never said i was the first to ever mention it. However, i do visit StrmnNrmn's site quite often and have not seen it be too hot of a topic or evan replied to. I just posted to see others opinions...i did not intend for him to drop what he was doing rite now and add multiplayer. i just wanted a couple responses and support. I cannot wait to play SSB and i realize all the work he is putting in to get other games running. It was just an idea for the future. Not a demand. You said that this idea has been posted many times. I have not seen it at all on either PSP updates or strmnnrmn 's blog. I have posted it a couple of times on qj b4 but it was never really responded to.. i just wanted responses........btw @ gregerson316.. do u really think that adhoc would lower framerate that much if hes got ssb runnin at 40 fps?? just a thought
   by McPirate! (Unregistered) - 2007-06-11
 » GUAU!!

The psp is so cool! It plays N64 games! GUAU!! The PSP and Wii are in the same ballpark price-wise, I'd rather just play SSBB on a 50inch tv than play a 6 year old game on a 480x272 screen.


LETS NOT LIVE IN THE PAST AND START MOVING THE PSP FORWARD

   by Izzy (Unregistered) - 2007-06-11
 » ssbb

just wait till ssbb comes out it wil be another year till this daedalus thing works at full speed with no problems, maybe two years or never

   by Mabie A. (Unregistered) - 2007-06-11
 » me

I had sex with GINO


   Re: McPirate! (Unregistered) - 2007-06-11
 » ARR!

NIIICE!
   by DJ (Unregistered) - 2007-06-12
 » lol, too many retarded 6 year olds here.

i like this article. it makes sense at least.


   Re: lol (Unregistered) - 2007-06-12
 » lol

sorry but you are the 6 year old if you like this article. SM's post was much more interesting to read and I understood. The QJ post is a chopped up version and makes no sense.
   by BaH (Unregistered) - 2007-06-12
 » Bad summary

Really bad summary.

He referred to the difficulty in finding an error in the dynamic recompilation that may often occur 500 million instructions into the emulation (after the emulator has processed 500 million instructions and turned them into code the psp can work with).
Thats not the same as looking through 500 million lines of the emulator's code, it surely does not have that many.

He also wasn't talking about looking for a bottleneck, by deffinition a speed limiting portion of the code, but rather a bug that caused the dynarec to generate invalid code and cause SSB to not work with it enabled.

Please take the time to read the post properly to avoid posting misinterpreted summaries on a popular site like this.

#4: The blindfolded metaphor was straight from StrmnNrmn's post.

Oh, I should add: StrmnNrmn, your a bloody legend and daedalus is without question the most impressive piece of homebrew I have ever had the privilege to use.

   by Rayn389 (Unregistered) - 2007-06-12
 » not that im dissing daedalus or nething but...

I actually think that the ps1 emulator is better then n64 but thanks alot strmnNrmn


   Re: Treefiddy (Unregistered) - 2007-06-12
 » Re: Rayn389

The PS1 emulator was made by Sony for a Sony product. Of course it's going to work better.

   Re: ' (Unregistered) - 2007-06-12
 » '

haha pwned

   Re: lol (Unregistered) - 2007-06-12
 » re

lol pwned indeed :D:D:D:D:

   Re: never (Unregistered) - 2007-06-12
 » u guys are so pwned

there was a ps1 emulator made b4 custom firmware by Yoshihiro called psx-p and it could play most(not all) games like ff7 and crash bandicoot with little graphic problems wiht out sound but like some emulators it was a port of a pc ps1 emulato so actually u were pwned
   by Unknown (Unregistered) - 2007-06-12
 » Wireless Option

THANK YOU STRMNNRMN! for this post
shure makes this problem with SSB solfd...:P
ever touch of making a wireless option in your emulator
that makes possibble to play wireless with every N64 game
think off it please???? it would by asowome to play SSB with my friends

THANK YOU FOR YOUR TIME STRMNNRMN!

   by asdaf (Unregistered) - 2007-06-12
 » asdaf

Go ***** youself.
500000000 line with only one caracter (n) =500000000Bytes
500000000/1024=488281,25kbytes
488281,25/1024=476,837158203125Mbytes

I gess it's a mistake


   Re: BaH (Unregistered) - 2007-06-12
 » mistake

ascii is 8 (7) bits per character including return so 1 char per line would be 16 bits (2 bytes).

Also, the original post was talking about recompiled n64 instructions that the PSP runs, not lines of static code used to construct the binary.

I gess (guess) it's a mistake
Quite a nice judge of your caracter (character).

   Re: lukahn - 2007-06-12
 » Although...

...operating systems have 50 million lines of code. The blog says instructions, so it's just a mistake on QJ's part I guess.
   by BaH (Unregistered) - 2007-06-12
 » mistake

In ascii 1 character is 8 (7) bits including return so 1 char per line would be 16 bits per line.

Also, the original post was talking about recompiled N64 instructions that the PSP runs, not the static lines of code that make up the emulator's binary.

I gess (guess) your lack of thought before posting is a good judge of your caracter (character).

   by if-uc-kedyourmomindaass (Unregistered) - 2007-06-12
 » whupdee fu-cking doo

Who gives a fook? OMFG! StrmnNrmn lost his virginity! 200 Jumps!!

   by mohaas05 (Unregistered) - 2007-06-12
 » an idea

if an emulator translates a game on the fly so the psp understands it can't we just make it pre-translate it so games would run more smoothly


   Re: fm (Unregistered) - 2007-06-12