Why Not ???? ZsnesDc

This forum is for discussion pertaining to homebrew and indie software for the Dreamcast, such as homebrew games, emulators/interpreters, and other homebrew software/applications. Porting requests and developmental ideas are not to be made here; you can make those here. If you need any help burning discs for homebrew software, this is the place to ask as well.
Arr
DCEmu Cool Newbie
DCEmu Cool Newbie
Posts: 13
https://www.artistsworkshop.eu/meble-kuchenne-na-wymiar-warszawa-gdzie-zamowic/
Joined: Sun Jan 13, 2002 12:46 am
Has thanked: 0
Been thanked: 0

Why Not ???? ZsnesDc

Post by Arr »

I hear everyone talking about how hard it is to port zsnes to the Dc, but no one says its impossible. So has someone tried and is just to hard or can it be done? Please let me know. Im not putting down Dreamsnes or Sintendo or any other but isn?t zsnes the best? also I know that zsnes is coded in a different language. :?:
Heliophobe_
Smeg Creator
Smeg Creator
Posts: 170
Joined: Wed Oct 17, 2001 7:44 pm
Has thanked: 0
Been thanked: 0

Post by Heliophobe_ »

The basic difficulty is that ZSNES is written in x86 assembly language - the actual machine code that the x86 series of CPU's read. This makes it very fast... on PC's. It almost makes it completely unusable on a non x86 based platform.

To port the x86 code to an sh4 based platform (that would be the Dreamcast), nearly every single line of source code (other than comments... and some of those too to be proper) would have to be written. I did a quick word count on the source tree and it tells me it's got about 200,000 lines of code.

Holy crap, that's a lot of code - particularly assembly language, which isn't the clearest thing in the world to read.

But, yeah, it's technically possible, so why not do it? ZSNES is the best, right?

Yes, it's the best and fastest -- for PC's. If you did a literal translation of all the x86 code to sh4 and got it running, it wouldn't run well (maybe better or worse than DreamSNES, I couldn't say for certain). It's not just the choice of language, but algorithms and general design that's suited for a PC and not for the Dreamcast, which truth be told is a very fussy machine.

To get ZSNES class performance on a Dreamcast, you'll need an emulator customized for the Dreamcast. And SNES9x is really the best place to start - you can get the whole thing working first without rewriting the whole source tree. Then, you can rewrite and optimize the individual modules that bog it down.

ZSNES's source code still comes in handy, however, as a technical reference of the SNES hardware (and that of some of the on-chip processors).
Arr
DCEmu Cool Newbie
DCEmu Cool Newbie
Posts: 13
Joined: Sun Jan 13, 2002 12:46 am
Has thanked: 0
Been thanked: 0

Thanks

Post by Arr »

Thanks for clearing things up. I now see why people say its a bad idea. And it makes me appreciate the efforts in DreamSnes and Sintendo as well as others.
Rocky Balboa
DCEmu Junior
DCEmu Junior
Posts: 46
Joined: Wed Dec 05, 2001 5:47 pm
Has thanked: 0
Been thanked: 0

Post by Rocky Balboa »

wow! good explanation helliphobe that should be put in a "newbies read first!!" post :)
User avatar
DuffMan
Psychotic DCEmu
Psychotic DCEmu
Posts: 718
Joined: Mon Nov 05, 2001 11:03 pm
Location: Pheonix - AZ
Has thanked: 0
Been thanked: 0

Post by DuffMan »

Ya, ZSNES is the best SNES emu for PC. But SNES9X is a close second, they both run games at full speed and both have great compatibiliy, but it is the little things that make ZSNES better. But SNES9X is written in C which is 100% portable which is why they choose that one.
OOH! YA! Duffman Says a lot of things.
Ralphis
DCEmu Junior
DCEmu Junior
Posts: 48
Joined: Sat Dec 29, 2001 8:55 am
Has thanked: 0
Been thanked: 0
Contact:

Post by Ralphis »

snes9x doesnt run starfox at full speed which pisses me off
dcemuler
Insane DCEmu
Insane DCEmu
Posts: 126
Joined: Fri Dec 07, 2001 3:21 pm
Location: Campinas
Has thanked: 0
Been thanked: 0
Contact:

Post by dcemuler »

hahahahahah , you said zsnes has 200,000 lines of code ???
and how many lines of code do you think windows xp has ????
Image
Seeking only strenght
Couldness that could burn a person
Throwing away pride
Stopping time with hatred
Ralphis
DCEmu Junior
DCEmu Junior
Posts: 48
Joined: Sat Dec 29, 2001 8:55 am
Has thanked: 0
Been thanked: 0
Contact:

Post by Ralphis »

Who in the world would want windows xp on their dreamcast? besides its not open source. There's a difference between an emulator and an operating system
Heliophobe_
Smeg Creator
Smeg Creator
Posts: 170
Joined: Wed Oct 17, 2001 7:44 pm
Has thanked: 0
Been thanked: 0

Post by Heliophobe_ »

dcemuler wrote: hahahahahah , you said zsnes has 200,000 lines of code ???
and how many lines of code do you think windows xp has ????
You're right. My project to port Windows XP to the Dreamcast is OFFICIALLY CANCELLED.
mik
DCEmu Freak
DCEmu Freak
Posts: 69
Joined: Sat Jan 19, 2002 12:48 am
Has thanked: 0
Been thanked: 0

Post by mik »

im pretty sure i read that office has 30,000,000 lines of code :o


Ouch
LOL :roll:
dcemuler
Insane DCEmu
Insane DCEmu
Posts: 126
Joined: Fri Dec 07, 2001 3:21 pm
Location: Campinas
Has thanked: 0
Been thanked: 0
Contact:

Post by dcemuler »

for your information , the windows 98 operating system has near 1 billion lines of code
Image
Seeking only strenght
Couldness that could burn a person
Throwing away pride
Stopping time with hatred
dcemuler
Insane DCEmu
Insane DCEmu
Posts: 126
Joined: Fri Dec 07, 2001 3:21 pm
Location: Campinas
Has thanked: 0
Been thanked: 0
Contact:

Post by dcemuler »

Ralphis wrote: Who in the world would want windows xp on their dreamcast? besides its not open source. There's a difference between an emulator and an operating system
It's not a open source???
and what about reverse engine ?
Image
Seeking only strenght
Couldness that could burn a person
Throwing away pride
Stopping time with hatred
miah
Insane DCEmu
Insane DCEmu
Posts: 167
Joined: Sun Jan 20, 2002 1:29 pm
Has thanked: 0
Been thanked: 0
Contact:

Post by miah »

uhm. and the point you're trying to make is what?

-miah
reptilezero
DCEmu Freak
DCEmu Freak
Posts: 76
Joined: Wed Oct 17, 2001 7:44 pm
Has thanked: 0
Been thanked: 0

Post by reptilezero »

yeah, you can use the "reverse engine" to modify the dynarec of the header files, that way you can activate the asm cores of the super monkey flipChip(tm). after doing that, you can run a command line module that will emulate a tr-404 to get the mad beats. this will allow you to port windows xp to any platform! even toasters and other devices that use embedded sheep herders! amazing, isn't it? :)
snake78
DCEmu Freak
DCEmu Freak
Posts: 72
Joined: Thu Feb 14, 2002 2:50 am
Has thanked: 0
Been thanked: 0

Post by snake78 »

Alright, reptilezero, this is the last time I'm gonna tell you, lay off the crack. ;)

:lol:
TuDWoWBaN
DCEmu Cool Newbie
DCEmu Cool Newbie
Posts: 16
Joined: Wed Oct 17, 2001 7:44 pm
Has thanked: 0
Been thanked: 0

...

Post by TuDWoWBaN »

dcemuler... it's like we're talkinga bout how fast we can make car goes, and you go "oh yeah? a plane is much quicker!". There is no point in your post...
miah
Insane DCEmu
Insane DCEmu
Posts: 167
Joined: Sun Jan 20, 2002 1:29 pm
Has thanked: 0
Been thanked: 0
Contact:

Post by miah »

Will somebody close this topic already, or atleast move it to dev/null.. its completely pointless now

-miah
emperordahc
DCEmu Crazy Poster
DCEmu Crazy Poster
Posts: 30
Joined: Wed Jan 23, 2002 2:50 pm
Has thanked: 0
Been thanked: 0

Post by emperordahc »

Ralphis wrote: snes9x doesnt run starfox at full speed which pisses me off
How horrible. Buy the cart. I got it at a Pawn for $1.
dcemuler
Insane DCEmu
Insane DCEmu
Posts: 126
Joined: Fri Dec 07, 2001 3:21 pm
Location: Campinas
Has thanked: 0
Been thanked: 0
Contact:

Post by dcemuler »

ok , so let's return to the main idea ...

I wan't somebody to make zsnesdc for me ... :evil: :evil: :evil:
Image
Seeking only strenght
Couldness that could burn a person
Throwing away pride
Stopping time with hatred
miah
Insane DCEmu
Insane DCEmu
Posts: 167
Joined: Sun Jan 20, 2002 1:29 pm
Has thanked: 0
Been thanked: 0
Contact:

Post by miah »

I want somebody to buy me a house and pay all my bills..

As my grandma allways says "Wish in one hand sh*t in the other see which one gets full first".

-miah
Post Reply