Sega CD booting

Ask anything your want about Mega/SegaCD programming.

Moderator: Mask of Destiny

Post Reply
Xynxyn
Very interested
Posts: 54
Joined: Fri Jun 15, 2012 10:32 am
Location: Poland

Sega CD booting

Post by Xynxyn » Tue Nov 05, 2013 8:13 am

Hi guys. I'm back and I've got a question for you. ;)
I was looking for sega cd header. There was anything, probably done by Chilly Willy, I think. But I can't find it anywhere. :(
Rozumiem / Ma saan aru :D

KanedaFr
Administrateur
Posts: 1139
Joined: Tue Aug 29, 2006 10:56 am
Contact:

Post by KanedaFr » Tue Nov 05, 2013 12:33 pm


Xynxyn
Very interested
Posts: 54
Joined: Fri Jun 15, 2012 10:32 am
Location: Poland

Post by Xynxyn » Tue Nov 05, 2013 2:23 pm

Thank you very much. It's probably that. I have never tested it,... is it compatible with SGDK? ;)
Rozumiem / Ma saan aru :D

KanedaFr
Administrateur
Posts: 1139
Joined: Tue Aug 29, 2006 10:56 am
Contact:

Post by KanedaFr » Tue Nov 05, 2013 6:00 pm


Xynxyn
Very interested
Posts: 54
Joined: Fri Jun 15, 2012 10:32 am
Location: Poland

Post by Xynxyn » Sun Nov 10, 2013 12:06 pm

Thanks. I decided to compile cube_flat for test. but I've got a problems.
First "problem" was with segacd.o in catalog "lib\", but I immediately compiled segacd.s and moved to "lib\". There was also problem with "libgendev.a", but I just copied "libmd.a" and renamed it to "libgendev.a".

But now I don't know what to do. :(

Code: Select all

C:/SGDK/lib/segacd.o: In function `_HBL':
(.text+0x158): undefined reference to `_hblank_callback'
C:/SGDK/lib/segacd.o: In function `_VBL':
(.text+0x168): undefined reference to `_vblank_callback'
C:/SGDK/lib/libgendev.a(memory.o): In function `MEM_init':
memory.c:(.text+0x6c): undefined reference to `_bend'
make: *** [out/romscd.out] Error 1

Should I do all these things I did before or did I do something wrong?
Rozumiem / Ma saan aru :D

Stef
Very interested
Posts: 3131
Joined: Thu Nov 30, 2006 9:46 pm
Location: France - Sevres
Contact:

Post by Stef » Mon Nov 11, 2013 8:39 am

This is the exact problem mentionned in the other topic. bend_ is defined in the md.ld file so be sure to look in this file and modify your own ld file apropriately :)

Xynxyn
Very interested
Posts: 54
Joined: Fri Jun 15, 2012 10:32 am
Location: Poland

Post by Xynxyn » Mon Nov 11, 2013 4:14 pm

Where is that topic? I use files included to LukeProjectCD by author. In those there is a problem. I was searching "_hblank_callback" but, there wasn't any subroutine called " _hblank_callback". ;|
Rozumiem / Ma saan aru :D

powerofrecall
Very interested
Posts: 237
Joined: Fri Apr 17, 2009 7:35 pm
Location: USA

Post by powerofrecall » Mon Nov 25, 2013 5:12 am

Kind of late, and since I don't use SGDK I don't know but isn't that a user function? Like you need your own hblank_callback() C function. i.e. the hblank vector calls that function you need to supply, so you could leave it blank.

kubilus1
Very interested
Posts: 237
Joined: Thu Aug 16, 2012 2:25 am
Contact:

Post by kubilus1 » Mon Nov 25, 2013 8:46 pm

I had to rename a few things in the ld files to get LukeProjectCD to work with SGDK in the Linux build stuff. I believe the "hblank" and "vblank" stuff becomes "hint" and "vint". There may have been other things as well, but that should get you started.

I remember I had trouble getting that particular demo to work with that boot code for some reason. I would be curious if you got it to work.

Post Reply