SNES programming Videos

Discussion of hardware and software development for Super NES and Super Famicom.

Moderator: Moderators

Forum rules
  • For making cartridges of your Super NES games, see Reproduction.
User avatar
Nikku4211
Posts: 414
Joined: Sun Dec 15, 2019 1:28 pm
Location: Bronx, New York
Contact:

Re: SNES programming Videos

Post by Nikku4211 » Sun May 16, 2021 7:08 pm

calima wrote:
Sun May 16, 2021 10:04 am
What about you? Spent these months practicing and going to kick ass once it starts?
Most likely not. I'm too lazy to do anything, especially in a jam, even if I have an entire 3 months. Plus, I'm too much of a beginner at SNES ASM (and SNES C) to be able to code a game of any kind.

Even then, at least I won't submit a spam submission.
I have an ASD, so empathy is not natural for me. If I hurt you, I apologise.

Oziphantom
Posts: 1162
Joined: Tue Feb 07, 2017 2:03 am

Re: SNES programming Videos

Post by Oziphantom » Mon May 17, 2021 1:48 am

psycopathicteen wrote:
Sun May 16, 2021 9:17 am
Oziphantom wrote:
Sat May 15, 2021 8:47 am
https://youtu.be/8YowrDT9cB8 Episode 5 - Sprites is ready
Basic introduction on how and why to set them offscreen.
Few coding tips to deal with them
I look at Sprite tile allocation methods
And for the experienced SNES developer explain the Reverse Stack Sprite Allocator - for those whom like to code with SWAG and for Speed.
If you include the $2180 ram port, you can make it the 5th address register.

SP for OAM
$2180 for HiOAM
DP for object pointer
X for metasprite information
Y for dynamic sprite CHR allocation tables
Its a great idea but you can't ROR 2180, well you can but it won't do what you think it does ;)

DP for HiOAM
$2180 for object pointer

would work though. If you stack your code and data to handle pure sequential reading

psycopathicteen
Posts: 3000
Joined: Wed May 19, 2010 6:12 pm

Re: SNES programming Videos

Post by psycopathicteen » Mon May 17, 2021 9:42 am

You can use a temp register for hioam, and just feed $2180 a new byte every 4 sprites.

Oziphantom
Posts: 1162
Joined: Tue Feb 07, 2017 2:03 am

Re: SNES programming Videos

Post by Oziphantom » Thu May 20, 2021 4:18 am

psycopathicteen wrote:
Mon May 17, 2021 9:42 am
You can use a temp register for hioam, and just feed $2180 a new byte every 4 sprites.
That avoid the DP update and issues, and you can move them out of the Shared RAM which might be nice.
It would be nice if there was a ROM port


Taming the 65816
https://youtu.be/vbw0Fp5fqtE Best practices to follow to not fall afoul of the 65816's many traps.

User avatar
dougeff
Posts: 2877
Joined: Fri May 08, 2015 7:17 pm
Location: DIGDUG
Contact:

Re: SNES programming Videos

Post by dougeff » Fri May 21, 2021 5:11 pm

It would be helpful if there was a text version of the code you put in the videos.
nesdoug.com -- blog/tutorial on programming for the NES

Oziphantom
Posts: 1162
Joined: Tue Feb 07, 2017 2:03 am

Re: SNES programming Videos

Post by Oziphantom » Fri May 21, 2021 10:51 pm

You're right I forgot to push the OAM code, I've updated https://github.com/oziphantom/ElementsSnesEngine
Thanks for reminding me.

Do you think having the "neg" and other tricks is worth having?

Oziphantom
Posts: 1162
Joined: Tue Feb 07, 2017 2:03 am

Re: SNES programming Videos

Post by Oziphantom » Sat May 22, 2021 9:28 am

A new series that will cover the powerful features of the assembler I use in the SNES tutorials https://youtu.be/4gwOWiWhKC8

Oziphantom
Posts: 1162
Joined: Tue Feb 07, 2017 2:03 am

Re: SNES programming Videos

Post by Oziphantom » Sat May 29, 2021 8:07 am

Video 7 VRAM Allocation https://youtu.be/2wr-WiLn0cg

psycopathicteen
Posts: 3000
Joined: Wed May 19, 2010 6:12 pm

Re: SNES programming Videos

Post by psycopathicteen » Sat May 29, 2021 6:52 pm

The sprite vram is only 128x256 pixels large, not 128x512 pixels large.

Oziphantom
Posts: 1162
Joined: Tue Feb 07, 2017 2:03 am

Re: SNES programming Videos

Post by Oziphantom » Sat May 29, 2021 11:16 pm

Thanks, for some stupid reason I used 2bit not 4bit in my maths.. sigh..

Oziphantom
Posts: 1162
Joined: Tue Feb 07, 2017 2:03 am

Re: SNES programming Videos

Post by Oziphantom » Wed Jun 09, 2021 9:17 am

SNES video 8 - setting up DMA buffers to push your VRAM updates https://youtu.be/tXEzh3yL8nY

Post Reply