Sega Genesis Dev Kit (SGDK)
Moderator: Stef
-
- Very interested
- Posts: 3131
- Joined: Thu Nov 30, 2006 9:46 pm
- Location: France - Sevres
- Contact:
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.
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.
-
- Very interested
- Posts: 710
- Joined: Sat Feb 18, 2012 2:44 am
-
- Very interested
- Posts: 117
- Joined: Sun Jan 02, 2011 9:14 pm
- Contact:
It seems there's an error in sram_a.s file
file is
think it should be
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
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
-
- Very interested
- Posts: 2984
- Joined: Fri Aug 17, 2007 9:33 pm
-
- Very interested
- Posts: 3131
- Joined: Thu Nov 30, 2006 9:46 pm
- Location: France - Sevres
- Contact:
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...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.
oofwill> Oh you're right, i don't understand GCC did not complained about it during compilation
-
- Very interested
- Posts: 117
- Joined: Sun Jan 02, 2011 9:14 pm
- Contact:
I uploaded some files here https://www.box.com/s/ykmdyp4mdwe9eunvkacpStef 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...
-
- Very interested
- Posts: 3131
- Joined: Thu Nov 30, 2006 9:46 pm
- Location: France - Sevres
- Contact:
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.
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.
-
- Very interested
- Posts: 117
- Joined: Sun Jan 02, 2011 9:14 pm
- Contact:
Woohoo! Thank you so much.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.