Sega Genesis Dev Kit (SGDK)

SGDK only sub forum

Moderator: Stef

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

Post by Stef » Thu Dec 13, 2012 12:30 am

A new version of SGDK is finally out :)

Links and changelog on the first page :
viewtopic.php?t=14

bioloid
Very interested
Posts: 177
Joined: Fri May 18, 2012 8:22 pm

Post by bioloid » Fri Dec 14, 2012 8:29 pm

Good news, going to play as soon as possible! MegaThanks.

oofwill
Very interested
Posts: 173
Joined: Mon May 03, 2010 6:12 pm
Location: France - Niort

Post by oofwill » Mon Dec 17, 2012 9:17 am

Thanks, some features will be usefull here 8)

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

Post by Stef » Mon Dec 17, 2012 12:21 pm

Again a new version : 0.93b :)
I needed to fix some stupid issues, here's the complete changes log :

* Fixed a stupid bug in deprecated memory functions.
* Added Bitmap structure for easier bitmap manipulation (created from .bmp resources).
* Modified Plan A & Plan B location in VRAM.
* Added methods to modify Plan A, Plan B, Window, Sprites list and H Scroll table in VRAM.
Note that doing that you may have troubles with SGDK methods which use hardwired locations.
* VDP_setSpritesDirect(..) method so you can now senn a SpriteDef array buffer directly to the VDP.
* Handle a new resource type : WAVPCM (.wavpcm)
The file file is transformed to adpcm data and can be played directly from the 2 channels ADPCM driver.
Note that WAV sample rate should be at least equals to 22050 Hz.
* Fixed a bug in bintos tool.
* New wavtoraw tool, source is provided.
* Added tools sources.

Manveru
Very interested
Posts: 85
Joined: Wed Sep 05, 2012 3:30 pm

Post by Manveru » Fri Jan 11, 2013 12:55 pm

I have just discovered the SGDK updates. I like the new features and changes, great job Stef.
The man who moves a mountain begins by carrying away small stones. Confucius, 551-479 BC

djcouchycouch
Very interested
Posts: 710
Joined: Sat Feb 18, 2012 2:44 am

Post by djcouchycouch » Sun Jan 13, 2013 10:40 pm

Does SGDK help in any way with battery backed ram? To have save games?

DJCC

oofwill
Very interested
Posts: 173
Joined: Mon May 03, 2010 6:12 pm
Location: France - Niort

Post by oofwill » Mon Jan 14, 2013 4:50 pm

With the last update, yes.

You can read this thread to learn more about savegame ;)

Moon-Watcher
Very interested
Posts: 117
Joined: Sun Jan 02, 2011 9:14 pm
Contact:

Post by Moon-Watcher » Fri Feb 01, 2013 10:02 am

Weird behavior using SGDK last version and Widnows7: depending on the .wav source, wavtoraw.exe, generates 0 byte files, huge files or infinite loops.

oofwill
Very interested
Posts: 173
Joined: Mon May 03, 2010 6:12 pm
Location: France - Niort

Post by oofwill » Wed Feb 06, 2013 10:30 pm

It seems there's an error in sram_a.s file

file is

Code: Select all

SRAM_readWord:
    move.l  4(%sp),d1
    add.l   %d1,%d1
    lea     0x200001,%a0
    lea     (%a0,%d1.l),%a0
    moveq   #0,%d0
    movep.w 0(%a0),%d0
    rts
think it should be

Code: Select all

SRAM_readWord:
    move.l  4(%sp),%d1<--------------------% is forgotten
    add.l   %d1,%d1
    lea     0x200001,%a0
    lea     (%a0,%d1.l),%a0
    moveq   #0,%d0
    movep.w 0(%a0),%d0
    rts

Chilly Willy
Very interested
Posts: 2984
Joined: Fri Aug 17, 2007 9:33 pm

Post by Chilly Willy » Wed Feb 06, 2013 10:49 pm

If one of the assembler flags is --register-prefix-optional, then it's fine... they could all be left off.

oofwill
Very interested
Posts: 173
Joined: Mon May 03, 2010 6:12 pm
Location: France - Niort

Post by oofwill » Wed Feb 06, 2013 10:53 pm

When i compile with SGDK & code blocks, this return me error when without %

To say the truth, i don't know how to configure the assembler so it was more easier for me to add the % symbol :lol:

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

Post by Stef » Thu Feb 07, 2013 8:45 am

Moon-Watcher wrote:Weird behavior using SGDK last version and Widnows7: depending on the .wav source, wavtoraw.exe, generates 0 byte files, huge files or infinite loops.
I have to fix that that :) Have you some simple wav files leading to these problems ? I rewrote the tool so i am (unfortunately) not too surprised to hear about bugs...

oofwill> Oh you're right, i don't understand GCC did not complained about it during compilation :?

Moon-Watcher
Very interested
Posts: 117
Joined: Sun Jan 02, 2011 9:14 pm
Contact:

Post by Moon-Watcher » Wed Feb 13, 2013 10:55 am

Stef wrote:Have you some simple wav files leading to these problems ? I rewrote the tool so i am (unfortunately) not too surprised to hear about bugs...
I uploaded some files here https://www.box.com/s/ykmdyp4mdwe9eunvkacp

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

Post by Stef » Wed Feb 13, 2013 8:08 pm

Thanks ! I fixed the bug :)

You can download the last version here :
http://sgdk.googlecode.com/svn/trunk/bin/wavtoraw.exe

If you don't want to wait for the next SGDK release.

Moon-Watcher
Very interested
Posts: 117
Joined: Sun Jan 02, 2011 9:14 pm
Contact:

Post by Moon-Watcher » Thu Feb 14, 2013 9:38 am

Stef wrote:Thanks ! I fixed the bug :)

You can download the last version here :
http://sgdk.googlecode.com/svn/trunk/bin/wavtoraw.exe

If you don't want to wait for the next SGDK release.
Woohoo! Thank you so much.

Post Reply