DC port from DoctorN?

Started by MisterN, October 03, 2011, 12:08:57 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.


SplinterGU

$119.44 and US product must paid customs... and free shipping are for locals locations...

well, don't matter...
Download Lastest BennuGD Release: http://www.bennugd.org/node/2

MisterN

You dont happen to have a plain straight foward c file of bennu? read the bottom part,
http://mc.pp.se/dc/ip.bin.html
it says to create a scrambled 1st_read.bin (the program), I need a .c (or c++) file and them i take the elf (in the monolithic build there are 2 .elf's, which one takes priority and does 1 .elf load the other? or can one be a c file and another an elf? im confused now) and merge them into 1st_read.bin.

heres what might work!
* combine the bgdc.elf and bgdi.elf into one main elf

and keep in mind i have 0% no programming skills when it comes to stuff like this but i just have a feeling DCennu can be completed soon provided i have one .elf and a prog.c file...

hmmmmmm
werg

MisterN

#33
im so confused i spend hours going in loops that led nowhere.

porting to dc should be easy though so someone show me :3. even if you just have an emulator at least try to get it to load in the emulator.

I got the rest of the IDE installed so ill work on it tommorow.

EDIT:
ok so here I have this default stander c file

#include <kos.h>
int main(int argc, char **argv)
{
    printf("\nHello world!\n\n");
    return 0;
}



All I need is someone to change around the code so it tells bgdi to look for autorun on the root of the cd. the directory on the dreamcast for a cd should be /cd

Also, where might I find the source code for just bgdi? I have the monolithic .elf file for it inside my IDE but whomever made it should tell me how to use it :) Thnaks
werg

josebita

I'll reply to you later in a deeper manner, but by what you say I have the feeling that you're trying to use the Wii binaries (the elf files for Wii) for the DC: they won't work.
ELF is just a way of storing programs in a file, just like two different photos of the same thing aren't the same photo even if both are stored in the same jpeg format, two binaries of the same code (bennu) won't work in different operating systems just by being stored in the same ELF file format.

Anyway, try compiling that program you just posted into a usable dreamcast program that you can run in the emulator/hardware and then we can advance.
Also, you'll have to store more than one ".c" file into the same binary, but I'll tell you about that later.

Report back when you get it working :)

BlackCurtain

When I say "obsolete" I don't mean obsolete in terms of hardware, I mean in terms of support and availability. The Dreamcast is still a very powerful console in terms of hardware, but sadly lacks the RAM.

SplinterGU

Quote from: BlackCurtain on October 05, 2011, 09:14:11 PM
When I say "obsolete" I don't mean obsolete in terms of hardware, I mean in terms of support and availability. The Dreamcast is still a very powerful console in terms of hardware, but sadly lacks the RAM.

sure.
Download Lastest BennuGD Release: http://www.bennugd.org/node/2

MisterN

Well whats the windows source code with the bgdi? Anyone?
werg

FreeYourMind


SplinterGU

Download Lastest BennuGD Release: http://www.bennugd.org/node/2

MisterN

Stop getting off topic. I keep getting compile errors.
werg

MisterN

#41
Im down to 1 error and 1 warning in codeblocks
Quote
E:\Nick Lopez\DCennu\DCennu\main.c||In function `main':|
E:\Nick Lopez\DCennu\DCennu\main.c|197|error: syntax error before "VERSION"|
E:\Nick Lopez\DCennu\DCennu\main.c|76|warning: unused variable `ext'|
||=== Build finished: 1 errors, 1 warnings ===|

Cause I could not find stdint.h, there was a free reverse engineered pstdint.h which did the exact same thing. that is the only thing that i changed in some of the things.

But since you made bennu, im sure you can help me with those things. Remember, im just compiling bgdi for dreamcast.

Is SDL included in this? look at this http://chui.dcemu.co.uk/sdl.html and go down to events, you will see controls. Do you think that the controls may work stright out of porting? Thanks
werg

josebita

Are you trying to compile the example you posted? The one with "Hello, World", I mean.

Do that first, please. Then we can move on. I have a sense that your're trying to compile the main source code of bgdi, but that's of no use without bgdrtm and bgdrtm needs a lot of files to compile: we better advance step by step.

FreeYourMind

Doctor I have a program that compile bennu for you  ;D


MisterN

Quote from: josebita on October 06, 2011, 03:26:44 PM
we better advance step by step.

oh no no no no no i dont learn that way. i got rid of that hello world, that thing was gay. yes i am just downright compiling bgdi and i have 1 error and 1 warning. codeblocks is the IDE set up to compile it in cygwin and kos
werg