Page 1 of 1

Sega CD booting

Posted: Tue Nov 05, 2013 8:13 am
by Xynxyn
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. :(

Posted: Tue Nov 05, 2013 12:33 pm
by KanedaFr

Posted: Tue Nov 05, 2013 2:23 pm
by Xynxyn
Thank you very much. It's probably that. I have never tested it,... is it compatible with SGDK? ;)

Posted: Tue Nov 05, 2013 6:00 pm
by KanedaFr

Posted: Sun Nov 10, 2013 12:06 pm
by Xynxyn
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?

Posted: Mon Nov 11, 2013 8:39 am
by Stef
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 :)

Posted: Mon Nov 11, 2013 4:14 pm
by Xynxyn
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". ;|

Posted: Mon Nov 25, 2013 5:12 am
by powerofrecall
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.

Posted: Mon Nov 25, 2013 8:46 pm
by kubilus1
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.