PVSnesLib for Snes 20th birthday :D !

alekmaul

Well-Known Member
OP
Member
Joined
Nov 5, 2002
Messages
104
Trophies
2
Age
57
Location
Blois
Website
www.portabledev.com
XP
328
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,933
Trophies
3
Location
Gaming Grotto
XP
30,232
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
475
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
57
Location
Blois
Website
www.portabledev.com
XP
328
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
475
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
57
Location
Blois
Website
www.portabledev.com
XP
328
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,287
Trophies
5
XP
20,917
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
475
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
57
Location
Blois
Website
www.portabledev.com
XP
328
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
57
Location
Blois
Website
www.portabledev.com
XP
328
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
  • K3Nv3 @ K3Nv3:
    I'm not compatible with Gen z version error
    +2
  • Skelletonike @ Skelletonike:
    If only... Alpha seems worse :'(
  • Skelletonike @ Skelletonike:
    They're anything but alpha
  • K3Nv3 @ K3Nv3:
    As long as you get :angry: from @AncientBoi you're a decent member
  • K3Nv3 @ K3Nv3:
    Hell I know 50 year olds that act like Gen z
    +2
  • Skelletonike @ Skelletonike:
    Well.. True...
  • Skelletonike @ Skelletonike:
    Some older people just got pretty weird lately.
  • K3Nv3 @ K3Nv3:
    One neighbor was all like I'm going to shoot up the school then got Hella surprised when he woke up to dozens of cops cars at his home
  • Skelletonike @ Skelletonike:
    Yeah, some things are just plain stupid.
  • K3Nv3 @ K3Nv3:
    Why am I getting evicted all I did was threaten harm to management
  • K3Nv3 @ K3Nv3:
    Guess it was some issue where elementary kids were depantsing each other and the dad got super offended over the principal laughing about it which I get but dude come on better ways to handle it
  • Skelletonike @ Skelletonike:
    I mean, sure, feel free to mess around with friends and jokingly say you'll kill them
  • Skelletonike @ Skelletonike:
    but... do not mention mass shootings or schools
  • K3Nv3 @ K3Nv3:
    Guy was literally telling every neighbor he was going to do it and does own a gun so yeah
  • Skelletonike @ Skelletonike:
    Very clever, very bright
  • K3Nv3 @ K3Nv3:
    I could've gotten him locked up that day but minded my own business now he wants to throw a shit fit over me calling him out on his lies lmao
  • K3Nv3 @ K3Nv3:
    I wasn't the one who called cause I knew he was full of shit and wouldn't do it some other lady did
  • K3Nv3 @ K3Nv3:
    Even said ask for the body cam footage would've been youtube gold
  • Skelletonike @ Skelletonike:
    There's plenty of cases of stupid stuff lately.
  • Skelletonike @ Skelletonike:
    Maybe it's the food?
  • K3Nv3 @ K3Nv3:
    McDonald's not mething up food enough
  • Skelletonike @ Skelletonike:
    McDonalds is so expensive now...
    Skelletonike @ Skelletonike: McDonalds is so expensive now...