Search found 358 matches

by infidelity
Thu Mar 04, 2021 6:33 am
Forum: SNESdev
Topic: Need guidance with nes to snes.
Replies: 54
Views: 2021

Re: Need guidance with nes to snes.

The nes game I'm porting, uses F8 for the sprites Y position to hide it off screen. And the leftmost masking the NES has, you're saying I can replicate that feature on the SNES? As of right now I'm not near the point where the vram routines begin. I'm still in the rest vector getting all my initiali...
by infidelity
Tue Mar 02, 2021 12:07 pm
Forum: SNESdev
Topic: Need guidance with nes to snes.
Replies: 54
Views: 2021

Re: Need guidance with nes to snes.

The game I'm porting uses 8x8 sprites. If I have to relocate the sprite DMA to $800 it wont be an issue. But if I am able to keep my Sprite DMA at $200-$2FF then I'll keep it there. So I'll wait to see how these responses play out, cause I'm confused now.
by infidelity
Tue Mar 02, 2021 9:20 am
Forum: SNESdev
Topic: Need guidance with nes to snes.
Replies: 54
Views: 2021

Re: Need guidance with nes to snes.

Woah, ok. What I'll do then is relocate the Sprite DMA from $200 to $800. And thank you very much for that code!
by infidelity
Tue Mar 02, 2021 7:45 am
Forum: SNESdev
Topic: Need guidance with nes to snes.
Replies: 54
Views: 2021

Re: Need guidance with nes to snes.

Ok two things. 1. In the nes, sprites usually occupy NES ram from $200-$2FF. I'd like to keep it that way with my port. My question is, do I use the snes addresses $2102-$2103 to store the snes ram address of $200? 2. For my issue with the nes $2000 bits, I've written up code in the nes game, to bac...
by infidelity
Mon Mar 01, 2021 8:01 am
Forum: SNESdev
Topic: Need guidance with nes to snes.
Replies: 54
Views: 2021

Re: Need guidance with nes to snes.

Wow I didn't know about TSB TRB, and I like how you can simply select the bit value in A, and have it set or clear the bit that is select in A. Whereas the old way with NES you have to AND/OR, and make sure you have all the bits set correctly in A before they get stored/cleared. So now I just need t...
by infidelity
Mon Mar 01, 2021 5:35 am
Forum: SNESdev
Topic: Need guidance with nes to snes.
Replies: 54
Views: 2021

Re: Need guidance with nes to snes.

Thanks everyone for your responses. I figured it out, my JSL routine I had was so I could switch my XY to 16-bit, so I could change the stack pointer, and RTL back to my code.... No wonder I couldn't get back with my RTL.... *slaps head. I'm not blindly changing the stack pointer btw, the game I'm p...
by infidelity
Sun Feb 28, 2021 10:01 am
Forum: SNESdev
Topic: Need guidance with nes to snes.
Replies: 54
Views: 2021

Re: Need guidance with nes to snes.

I'm also having an issue with JSL, I'm trying to RTL back to the bank I was previously in, and it's not working. I've tried pushing the data bank before I initiate the JSL, but I dont see anything get pushed, then I enter the bank i JSL'd too, code gets loaded, i then use PLB, then RTL, and I ended ...
by infidelity
Sun Feb 28, 2021 6:39 am
Forum: SNESdev
Topic: Need guidance with nes to snes.
Replies: 54
Views: 2021

Re: Need guidance with nes to snes.

Is there a way to dma with just 1 byte, to wipe out all 64k vram? I have an entire bank filled with 00's to wipe the vram in 2 32kb, I have more than enough ROM to do that, but I'd like to know if its possible what I'm asking, cause I can't figure that out while using DMA for my idea. Thanks!
by infidelity
Sat Feb 27, 2021 3:29 pm
Forum: SNESdev
Topic: Need guidance with nes to snes.
Replies: 54
Views: 2021

Re: Need guidance with nes to snes.

Ooooh I see what you mean. I though you had to write to $2016 twice. Cause the code I wrote now simply writes word $0000 to $2016. My previous code, doing 8 bits, I was thinking my first write to $2016 was 00, then my $1FFF register was my high byte for $2016. So I'm assuming that I was doing 8 bits...
by infidelity
Sat Feb 27, 2021 3:03 pm
Forum: SNESdev
Topic: Need guidance with nes to snes.
Replies: 54
Views: 2021

Re: Need guidance with nes to snes.

So should I not reset the address? Should I branch back to my wipe routine and it'll resume itself where it last wrote at $7FFF in vram? The adc at the end was my attempt to set my hi byte that I keep in $1FFF goto 40, so my address would start at $8000 in vram. This is still new to me working with ...
by infidelity
Sat Feb 27, 2021 2:42 pm
Forum: SNESdev
Topic: Need guidance with nes to snes.
Replies: 54
Views: 2021

Re: Need guidance with nes to snes.

I'm trying to clear VRAM. The code I've uploaded does the first half of wiping out $0000-$7FFF of VRAM correctly, but idk what portion of my code is causing my wipe of $8000-$FFFF to skip 80 bytes, then begin the wipe.
by infidelity
Sat Feb 27, 2021 1:59 pm
Forum: SNESdev
Topic: Need guidance with nes to snes.
Replies: 54
Views: 2021

Re: Need guidance with nes to snes.

Ok I'm having a tough time wiping the vram entirely. I'm doing 8000 bytes at a time, $0000-$7FFF clears correctly, but when I try to clear $8000-$FFFF it skips 80 bytes then does it from $8080-FFFF. I included 2 pics, one of my code, the other my vram showing the skipped bytes I thought would be cle...
by infidelity
Wed Feb 24, 2021 3:21 pm
Forum: SNESdev
Topic: Need guidance with nes to snes.
Replies: 54
Views: 2021

Re: Need guidance with nes to snes.

So INIDISP is the equivalent of the nes ppu rendering enable/disable? I want to make sure I understand. I dont want to confuse brightness for rendering, or else my port will be incorrect with writing vast amount of tiles to the BG layer.
by infidelity
Wed Feb 24, 2021 10:13 am
Forum: SNESdev
Topic: Need guidance with nes to snes.
Replies: 54
Views: 2021

Re: Need guidance with nes to snes.

tepples wrote:
Wed Feb 24, 2021 8:22 am
The equivalent to turning everything off is writing a negative value ($80-$FF) to brightness ($2100).
Thank you, just updated my notes.
by infidelity
Wed Feb 24, 2021 5:27 am
Forum: SNESdev
Topic: Need guidance with nes to snes.
Replies: 54
Views: 2021

Re: Need guidance with nes to snes.

I'm not sure if I have the nes ppu rendering ($2001.4 $2001.3) equivalents correct in my notes. Would someone take a look and see if that is correct? I'm worried the equivalent i have listed is just simply turning off the SNES bg layers visually, and not actually turning them off so that the snes ca...