Search found 2627 matches

by Stef
Fri Nov 17, 2017 10:42 am
Forum: Megadrive/Genesis
Topic: Sprite List Code Messed Up
Replies: 27
Views: 526

Re: Sprite List Code Messed Up

myself i always use while(i--) statement instead of for loop so GCC correctly optimize it in dbra :) Hm. We have a regression to report in GCC 7.2 then (the browncc and brownc++ are GCC and G++): 6.x uses dbra. Too bad :-( It's why i have carefully to test any GCC version before switching to it in ...
by Stef
Thu Nov 16, 2017 9:56 pm
Forum: Megadrive/Genesis
Topic: Sprite List Code Messed Up
Replies: 27
Views: 526

Re: Sprite List Code Messed Up

... Things like the while (i--), or that gcc 7 with -Ofast will store longs when it can instead of bytes in a loop like this: for (x=0; x<w; x++) *dp++ = *sp++; where dp and sp are both uint8_t pointers. Does it ?? It works only if both pointer are aligned on word address (even address), otherwise ...
by Stef
Thu Nov 16, 2017 9:30 am
Forum: Megadrive/Genesis
Topic: Sprite List Code Messed Up
Replies: 27
Views: 526

Re: Sprite List Code Messed Up

myself i always use while(i--) statement instead of for loop so GCC correctly optimize it in dbra :)
by Stef
Tue Nov 14, 2017 11:30 pm
Forum: Megadrive/Genesis
Topic: Sprite List Code Messed Up
Replies: 27
Views: 526

Re: Sprite List Code Messed Up

Of course GCC generated code is always correct ! And i second you, it's a good way to learn, just looking generated code... myself sometime when i need to write assembly code i start with generated code from GCC from my old C function then i manually tune it :) Almost time it's much faster than writ...
by Stef
Tue Nov 14, 2017 8:02 pm
Forum: Megadrive/Genesis
Topic: Sprite List Code Messed Up
Replies: 27
Views: 526

Re: Sprite List Code Messed Up

GCC >= 3.0 and < 6.0 were not good at generating m68k code, but things improved greatly since GCC 6.0 (the one SGDK is using), of course it won't replace hand made assembly but it allows decent performance with pure C code.
by Stef
Tue Nov 14, 2017 11:15 am
Forum: Demos
Topic: "The art of LeonBli", released at Alchimie 12, Tain l'Hermitage, France
Replies: 3
Views: 150

Re: "The art of LeonBli", released at Alchimie 12, Tain l'Hermitage, France

Very nice art carried by a very nice production.. great tribute =)
by Stef
Wed Oct 25, 2017 11:29 am
Forum: SGDK
Topic: XGM PCM
Replies: 2
Views: 136

Re: XGM PCM

Unfortunately right now PCM data are not shared so each XGM file embed its own PCM data bank. It's something i was thinking about day 0 but it makes the XGM resource generation process more complex and i didn't yet tackled it. As you can see it appears in my "issues" list so that is definitely somet...
by Stef
Tue Oct 24, 2017 8:18 am
Forum: Controls
Topic: XE-1AP
Replies: 3
Views: 371

Re: XE-1AP

Thanks for the detailed description of the IO protocol for this monster controller :)
What's surprise me the most is that this controller wasn't even made by Sega but is supported by a bunch of Sega games.
by Stef
Thu Oct 19, 2017 8:13 am
Forum: Super 32X
Topic: VN32X - A tool to make visual novels for the 32X
Replies: 26
Views: 3112

Re: VN32X - A tool to make visual novels for the 32X

Honestly your tool is very nicely done and it looks quite interesting, too bad the target machine is the 32X, a system than almost nobody is interested for :-/
by Stef
Wed Oct 18, 2017 9:08 pm
Forum: SGDK
Topic: Sega Genesis Dev Kit (SGDK)
Replies: 753
Views: 247259

Re: Sega Genesis Dev Kit (SGDK)

Updated SGDK to version 1.32 ! Check it out here : https://github.com/Stephane-D/SGDK Changelog SGDK 1.32 (October 2017) ------------------------ COMPILER * added VS project for easier compilation with Visual Studio (thanks to lab313) LIBRARY * TIMER: - fixed getSubTick() method (no more possible ro...
by Stef
Wed Oct 18, 2017 11:38 am
Forum: Tools
Topic: Algorithm for splitting sprites
Replies: 66
Views: 2644

Re: Algorithm for splitting sprites

Yeah i saw that, unfortunately the source code of the interesting tool is not provided :-(
by Stef
Sun Oct 15, 2017 9:23 pm
Forum: Demos
Topic: Adventure of Lolo
Replies: 14
Views: 598

Re: Adventure of Lolo

Very cute, i like it :) Keep up the nice work ;)
by Stef
Thu Oct 12, 2017 8:40 am
Forum: Blabla
Topic: Make a wish / What if : Genesis
Replies: 20
Views: 499

Re: Make a wish / What if : Genesis

- very simple logic to transform TILE <--> BITMAP (a la SegaCD) To be fair, if you're doing a custom cartridge with RAM on it you can do that by just mirroring it and arranging the address lines differently in the mirror (note that the bitmap width needs to be a power of two for this to work), then...
by Stef
Wed Oct 11, 2017 1:34 pm
Forum: Blabla
Topic: Make a wish / What if : Genesis
Replies: 20
Views: 499

Re: Make a wish / What if : Genesis

@TmEE> In fact from my tests the Z80 *can* write 68k RAM, it just can't read it :?
"YM IRQ connected to Z80" is a good one too but probably an issue for SMS backward compatibility :)
by Stef
Tue Oct 10, 2017 2:57 pm
Forum: Blabla
Topic: Make a wish / What if : Genesis
Replies: 20
Views: 499

Re: Make a wish / What if : Genesis

In priority order : - 4 palettes for sprite + 4 palettes for BG. - RGB444 colors would have be neat too. - Z80 having priority on BUS. - 128 KB of VRAM just to make the VDP design more elegant (no weird hacked 8 bits VRAM access). - very simple logic to transform TILE <--> BITMAP (a la SegaCD) I thi...