PVSnesLib for Snes 20th birthday :D !

alekmaul

Well-Known Member
OP
Member
Joined
Nov 5, 2002
Messages
104
Trophies
2
Age
56
Location
Blois
Website
www.portabledev.com
XP
318
Country
France
Hello,
Not sure that it will be usefull but i want to share with you this new try to have a generic C lib for Snes (We need homebrew for this really nice console, it's its birthday :D).
Here is the wiki entry I made about it, of course **it is a beta version** and it really need more work to have something that be ok with all Snes functionnalities (no sound, no mode 7 currently, some bugs with sprites handling for example ...).

http://www.portabledev.com/wiki/doku.php

If you want to help me (but you need to have a Snes & C knowledge I think), please PM me !
 
  • Like
Reactions: 2 people

Foxi4

Endless Trash
Global Moderator
Joined
Sep 13, 2009
Messages
30,824
Trophies
3
Location
Gaming Grotto
XP
29,820
Country
Poland
If this actually works and compiles then damn, good job and about damn time - someone should've done this years ago.

I'm on mobile so I can't really check it out, is this just a wrap-around of assembly functions or a full-blown implementation of the likes of devkitPro libraries?
 

YoshiInAVoid

Banned!
Banned
Joined
Jan 10, 2011
Messages
560
Trophies
1
Website
google.com
XP
465
Country
This is just like PAlib! A french dude starts an easy and simple to use libary in C for his favourite handheld / console and uses the same template for the wiki page!

Awesome!
 

alekmaul

Well-Known Member
OP
Member
Joined
Nov 5, 2002
Messages
104
Trophies
2
Age
56
Location
Blois
Website
www.portabledev.com
XP
318
Country
France
This is just like PAlib! A french dude starts an easy and simple to use libary in C for his favourite handheld / console and uses the same template for the wiki page!

Awesome!
You understood my goal ! Something easy to learn and to use.
I will publish a new version with the new name "PVSneslib" This week end, with new examples.
Will also add references to guys who made this library possible (snes sdk, mic, byuu, and so on ...).
The next goal is to add more examples and sound/ mode 7 support.
 
  • Like
Reactions: 1 person

YoshiInAVoid

Banned!
Banned
Joined
Jan 10, 2011
Messages
560
Trophies
1
Website
google.com
XP
465
Country
I just remembered that I had a similer idea a while back:

http://www.neoflash.com/forum/index.php/topic,7221.0.html?PHPSESSID=8a30k9aqtv5s2n3cv21rhma136

If you need any help, I will be happy to program some stuff, I'm pretty good with C.
 

alekmaul

Well-Known Member
OP
Member
Joined
Nov 5, 2002
Messages
104
Trophies
2
Age
56
Location
Blois
Website
www.portabledev.com
XP
318
Country
France
Well, yes, some help can be useful for some stuff :)
For example, i need a tool like gfx2gba to convert graphics to snes format (sprites, map, mode7, and so on).
Currently, i'm using lot's of tools to do some stuff and I still have bug (just take a look at AnimatedSprites demo).
I also need help for sound and wiki, to update it with tutorials.
Just PM me with your wishes, we will talk about that.
 

Costello

Headmaster
Administrator
Joined
Oct 24, 2002
Messages
14,201
Trophies
4
XP
19,707
thank you for your work Alekmaul, and it's a great honor to have you on our forums :) (since november 2002 actually haha)
I should probably say to still have you here... :)
 

YoshiInAVoid

Banned!
Banned
Joined
Jan 10, 2011
Messages
560
Trophies
1
Website
google.com
XP
465
Country
I installed this a while ago but am not entirely sure how to use it, I've managed to get it to compile the template but how do I use sprites, backgrounds, or sound? If you build some functions for this, then I can help write some tutorials on your site.

EDIT: I'm using an older version, I'll update soon.
 

alekmaul

Well-Known Member
OP
Member
Joined
Nov 5, 2002
Messages
104
Trophies
2
Age
56
Location
Blois
Website
www.portabledev.com
XP
318
Country
France
Hello ,
Sound is not yet supported, i'm trying to add snesmod to the lib.
About sprites & background, the last version of PVSnesLib is ok with them, just check examples.
I even did a mario like example ;-)
Also, i updated wiki with a new tutorial, more to come soon. Http://www.portabledev.com/wiki/
 

alekmaul

Well-Known Member
OP
Member
Joined
Nov 5, 2002
Messages
104
Trophies
2
Age
56
Location
Blois
Website
www.portabledev.com
XP
318
Country
France
Double post to inform you version 1.0 is now available. In fact, there now everything to do a project, even sound support, so i changed version to version 1.0 :)
Available here: http://www.portabled...rrentversion_en

Here are the updates for this version :
- add padsUp function to know if key just released
- add bool typedef definition with true & false values
- add NULL definition
- add setPalette function
- add bgInitTileSetData function
- add test for bgInitMapSet & bgInitTileSetData to change or not bg tile/map adress
- add oamInitGfxAttr to init only sprites size & address
- add a flag (snes_50hz) to know if we are on a PAL snes (1=yes)
- add sound management through shiru "christmass craze" example (thanks to him for tools)
- add windows regions management
- change some functions to asm version (dma, vbl ...)
- change spc700 data to asm section, avoid burning too much ram
- fix bug in bgSetMapPtr, word access instead of byte, and register mapping not good (use if statement now)
- remove verbose mode for wlalink and wla-65816, not really usefull
- remove all signed variables for optmization purpose
- split pvsneslib.asm into multiple files to be more easy to understand
- add music and sfx via snesmod adaptation from mukunda (thanks also kung fu furby for help)

Let's do now homebrews for the SNES :yay:
 
  • Like
Reactions: 2 people

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
    K3Nv2 @ K3Nv2: https://youtu.be/MddR6PTmGKg?si=mU2EO5hoE7XXSbSr