Search found 486 matches

by infidelity
Fri Mar 19, 2021 8:03 am
Forum: SNESdev
Topic: Need guidance with nes to snes.
Replies: 331
Views: 91285

Re: Need guidance with nes to snes.

I'm thinking once I get all the bank ids logged, I'm going to do the following.
  • Set up each snes bank with 4 levels
  • Store new loading address for each bank in ram, instead of doing a hard load from B800, there will be ones for 9800/B800/D800/F800
by infidelity
Fri Mar 19, 2021 6:03 am
Forum: SNESdev
Topic: Need guidance with nes to snes.
Replies: 331
Views: 91285

Re: Need guidance with nes to snes.

I am now at the point where the game starts pulling the current stage id, modifies it by adding 20 to it, to obtain the bank id for the current stage construction data, it always loads the data from A000-BFFF, so right now I'm playing through the entire nes game, I wrote a routine to log every creat...
by infidelity
Thu Mar 18, 2021 4:43 pm
Forum: SNESdev
Topic: Need guidance with nes to snes.
Replies: 331
Views: 91285

Re: Need guidance with nes to snes.

A closer counterpart to NES PPUSTATUS ($2002) is SNES RDNMI ($4210) . For both registers: Bit 7 goes high on vblank and low at end of vblank or after a read. If this register hasn't been read, disabling and reenabling NMI during vblank causes a second NMI. There are about three reasons for an NES p...
by infidelity
Thu Mar 18, 2021 3:03 pm
Forum: SNESdev
Topic: Need guidance with nes to snes.
Replies: 331
Views: 91285

Re: Need guidance with nes to snes.

I just had the hi byte for the vram wrong. I setup an infinite loop at the end of my dma for on-the-fly manual testing, and altered the ram values. 00=$0000 vram 01=$0200 vram 02=$0400 vram Etc, etc I have the gfx pointer now loading correctly, and storing correctly in vram! I converted all gfx (bg/...
by infidelity
Thu Mar 18, 2021 7:31 am
Forum: SNESdev
Topic: Need guidance with nes to snes.
Replies: 331
Views: 91285

Re: Need guidance with nes to snes.

Thank you, dougeff & creaothceann! I need to redo my code yet again, I need to change how $2100 is written to. I need to redo my massive tables of how the game sets up the NES $2000 bits. When the value is 8# in nes for $2000, it's for NMI, but I have that check of that bit going to $2100 in the...
by infidelity
Thu Mar 18, 2021 5:03 am
Forum: SNESdev
Topic: Need guidance with nes to snes.
Replies: 331
Views: 91285

Re: Need guidance with nes to snes.

A DMA to the VRAM could fail if the screen is active. You need either forced blank of v-blank. Interesting side note, DMA uses 100% of the CPU and can't be interrupted. Any pending interrupts will wait until it is done before firing. So we know that NMI or IRQ are not to blame. (HDMA can interrupt ...
by infidelity
Thu Mar 18, 2021 3:24 am
Forum: SNESdev
Topic: Need guidance with nes to snes.
Replies: 331
Views: 91285

Re: Need guidance with nes to snes.

creaothceann wrote: Wed Mar 17, 2021 11:12 pm Do you have any HDMA channels active at that time?

I dont believe so, can you suggest what to check for to make sure that's not happening?
by infidelity
Wed Mar 17, 2021 3:42 pm
Forum: SNESdev
Topic: Need guidance with nes to snes.
Replies: 331
Views: 91285

Re: Need guidance with nes to snes.

Ok, so I'm making progress, but can't figure out why my DMA doesn't finish its transfer, and then doesnt transfer anything else when the routine is called upon 3 more times. I'll get my code up, rather big. Here's the code primary graphics load routine lda $f5 ;current $8000-$9FFF pha lda $f6 ;curre...
by infidelity
Wed Mar 17, 2021 4:47 am
Forum: SNESdev
Topic: Need guidance with nes to snes.
Replies: 331
Views: 91285

Re: Need guidance with nes to snes.

Ok so here's an update to where I am with this port. 8 bit colors point to their 16-bit equivalent, and are loaded into cgram. I fixed my issues with the misunderstandings of the TSB/TRB usage, bits are now set properly in the registers I have set aside, for the various snes addresses. I've set this...
by infidelity
Tue Mar 16, 2021 1:25 pm
Forum: SNESdev
Topic: Need guidance with nes to snes.
Replies: 331
Views: 91285

Re: Need guidance with nes to snes.

Definitely more than 2 vertical screen scrolls, in the game I'm working on. Glad this is being discussed now, I'm nowhere near ready for screen construction, so this is good timing here.
by infidelity
Tue Mar 16, 2021 11:12 am
Forum: SNESdev
Topic: Need guidance with nes to snes.
Replies: 331
Views: 91285

Re: Need guidance with nes to snes.

NES nametables are 30 tiles high, so it's not exactly the same as 32 tile high SNES maps. Horizontal Mirroring (up or down scrolling) is similar to 32x64 SNES, but might require code changes, since NES screens are only 30 tiles tall. Code changes? I fear now my vertical portions of the game will lo...
by infidelity
Tue Mar 16, 2021 9:33 am
Forum: SNESdev
Topic: Need guidance with nes to snes.
Replies: 331
Views: 91285

Re: Need guidance with nes to snes.

Thanks for that info dougeff, but is the snes able to select which part of the 32x64/64x32 screen to have displayed? The nes $2000 #2,#1,#0 bits select which $20/$24/$28/$2C Nametable to display, does the snes have the same thing? You select the Name Table (or Map) by the $2107-$210a registers for ...
by infidelity
Tue Mar 16, 2021 9:25 am
Forum: SNESdev
Topic: Need guidance with nes to snes.
Replies: 331
Views: 91285

Re: Need guidance with nes to snes.

Oh ok, I understand. I forgot that's scanline based. I know what to do for that thank you!
by infidelity
Tue Mar 16, 2021 9:22 am
Forum: SNESdev
Topic: Need guidance with nes to snes.
Replies: 331
Views: 91285

Re: Need guidance with nes to snes.

Thanks for that info dougeff, but is the snes able to select which part of the 32x64/64x32 screen to have displayed? The nes $2000 #2,#1,#0 bits select which $20/$24/$28/$2C Nametable to display, does the snes have the same thing? If not I'll bypass this part of the code in my port and simply rely o...
by infidelity
Tue Mar 16, 2021 6:39 am
Forum: SNESdev
Topic: Need guidance with nes to snes.
Replies: 331
Views: 91285

Re: Need guidance with nes to snes.

Ok I'm just about done fixing my TRB/TSB issues, (i work full time so my times limited) and I want to ask about mirroring. This game uses the mmc3 $A000 address to set either horizontal or vertical mirroring. The gameplay is always displayed on the NES nametable address $2000. My question is, is thi...