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 »

A new version of SGDK is finally out :)

Links and changelog on the first page :
viewtopic.php?t=14
bioloid
Very interested
Posts: 184
Joined: Fri May 18, 2012 8:22 pm

Post by bioloid »

Good news, going to play as soon as possible! MegaThanks.
oofwill
Very interested
Posts: 174
Joined: Mon May 03, 2010 6:12 pm
Location: France - Niort

Post by oofwill »

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 »

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 »

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 »

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

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

Post by oofwill »

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 »

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: 174
Joined: Mon May 03, 2010 6:12 pm
Location: France - Niort

Post by oofwill »

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: 2993
Joined: Fri Aug 17, 2007 9:33 pm

Post by Chilly Willy »

If one of the assembler flags is --register-prefix-optional, then it's fine... they could all be left off.
oofwill
Very interested
Posts: 174
Joined: Mon May 03, 2010 6:12 pm
Location: France - Niort

Post by oofwill »

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 »

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 »

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 »

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 »

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