Search found 486 matches

by infidelity
Tue Mar 30, 2021 4:10 pm
Forum: SNESdev
Topic: Need guidance with nes to snes.
Replies: 331
Views: 91285

Re: Need guidance with nes to snes.

Hmm. think I need some education with sprites. I'm using bsnes, I have the Sprite DMA buffer injected into the oam, I can see it within the memory editor of bsnes. Within the Sprite viewer I can see the tile, I can move it, and I can set the bits to make it choose a different palette and flip etc. B...
by infidelity
Tue Mar 30, 2021 6:26 am
Forum: SNESdev
Topic: Need guidance with nes to snes.
Replies: 331
Views: 91285

Re: Need guidance with nes to snes.

Ok, now I'm having an issue with getting sprite data uploaded to the OAM. The NES game sets up the OAMADDR within the beginnings of the NMI as, LDA #$00 ;lo byte to $200 ram STA $2003 ;oamaddl LDA #$02 ;hi byte to $200 ram STA $4014 ;oamdma Do I need to use oamwrite $2104 with DMA in order to upload...
by infidelity
Sun Mar 28, 2021 5:43 pm
Forum: SNESdev
Topic: Need guidance with nes to snes.
Replies: 331
Views: 91285

Re: Need guidance with nes to snes.

Just made huge progress, got the copyright screen to appear! Only in the tilemap though. I cant get it to appear on the bsnes emulator screen, but i can see the tilemap and it's palettes clear as day, idk if im missing an address to set? edit - ok made sure $2100 was set with 0F, copyright screen ap...
by infidelity
Sat Mar 27, 2021 1:01 pm
Forum: SNESdev
Topic: Need guidance with nes to snes.
Replies: 331
Views: 91285

Re: Need guidance with nes to snes.

93143 wrote: Sat Mar 27, 2021 12:55 pm You do remember that VRAM addresses are word addresses, right? If you write $2000 to $2116/7, it targets a byte offset of $4000.
I do, I forgot about that earlier and looked up my conversion table when I was successful with injecting the chr data to the vram.
by infidelity
Sat Mar 27, 2021 11:25 am
Forum: SNESdev
Topic: Need guidance with nes to snes.
Replies: 331
Views: 91285

Re: Need guidance with nes to snes.

Yeah I think we are. I already have my maps pointing to where I want them. I keep forgetting writing the address for the DMA is not the same as simply writing 2000 to it, thinking that in itself will store my tile exactly at 2000 in the snes vram. I'm going to keep everything the way it is, I know w...
by infidelity
Sat Mar 27, 2021 9:57 am
Forum: SNESdev
Topic: Need guidance with nes to snes.
Replies: 331
Views: 91285

Re: Need guidance with nes to snes.

It only looks like $4000 in a hex editor, but the SNES considers this as $2000. My tilemap said 2000, but it never got the chr tile written there. It was written at $4000 My plan was to use snes vram $2000 as my tilemap, I based everything around that, but now i need to relocate my BG1 tilemap to v...
by infidelity
Sat Mar 27, 2021 9:00 am
Forum: SNESdev
Topic: Need guidance with nes to snes.
Replies: 331
Views: 91285

Re: Need guidance with nes to snes.

All I need to know is how to set the target address correctly for my tilemap. My tilemap starts at vram $2000. I set the target address to $2000 in my DMA routine, but it stored the tile at $4000. I changed 2000, to 1000, and the dma routine stored the tile correctly at $2000 vram. So now I need to ...
by infidelity
Sat Mar 27, 2021 8:40 am
Forum: SNESdev
Topic: Need guidance with nes to snes.
Replies: 331
Views: 91285

Re: Need guidance with nes to snes.

Damn it... that was it. I'll never get this right with vram addresses. I just looked at 4000, there's my tile. And yes im only 2 bytes as a test. So I set the address as $0000, even though my tilemap is $2000-$2FFE? I set the vram target address as 1000, and I got my tile drawn to $2000 in vram. Is ...
by infidelity
Sat Mar 27, 2021 8:16 am
Forum: SNESdev
Topic: Need guidance with nes to snes.
Replies: 331
Views: 91285

Re: Need guidance with nes to snes.

Ok, I was trying to do a tilemap test, to see my tile get drawn, but nothing is drawn and I see nothing in hex via the memory viewer of the vram. rep #$18 ;xy 16bit lda #$80 sta $2115 ldx #$2000 ;vram destination address stx $2116 lda #$00 ;bank id with vram data ldx #$c1c0 ;vram data location addre...
by infidelity
Tue Mar 23, 2021 2:44 pm
Forum: SNESdev
Topic: Need guidance with nes to snes.
Replies: 331
Views: 91285

Re: Need guidance with nes to snes.

Update - I have reached the point where the nes game begins to draw to the Nametable. It has a vram buffer, and draws the tiles vertically, (at least for the copyright screen, that's where I am now) I've only stepped through the code for the first set of tiles to see it in action with FCEUX's debugg...
by infidelity
Sat Mar 20, 2021 8:27 pm
Forum: SNESdev
Topic: Need guidance with nes to snes.
Replies: 331
Views: 91285

Re: Need guidance with nes to snes.

That's why I added the side note after my code window, cause I caught on that phk, meaning kode. Thanks again for your help! Simply pushing the value as A and pulling it to the DB register is flawless. :)
by infidelity
Sat Mar 20, 2021 8:04 pm
Forum: SNESdev
Topic: Need guidance with nes to snes.
Replies: 331
Views: 91285

Re: Need guidance with nes to snes.

Ok new issue with the data banks. I was able to load A as 02, I used phk then plb, and I noticed that the data bank loaded as 02, which is the same as the current program bank. But now I want to stay in program bank 02, and load data from bank 1E. lda #$00 sta $01 phy lda #$02 phk plb stz $7d lda $f...
by infidelity
Sat Mar 20, 2021 7:24 pm
Forum: SNESdev
Topic: Need guidance with nes to snes.
Replies: 331
Views: 91285

Re: Need guidance with nes to snes.

So for me to just set the data bank to 02, I'd do, 540202 Correct? No, that's going to transfer A bytes from $02:X to $02:Y. What you want is phk; plb to change the data bank to the current value of the program bank. If you want a different bank, load a register with the bank number you want, push ...
by infidelity
Sat Mar 20, 2021 6:53 pm
Forum: SNESdev
Topic: Need guidance with nes to snes.
Replies: 331
Views: 91285

Re: Need guidance with nes to snes.

So for me to just set the data bank to 02, I'd do,

540202

Correct?
by infidelity
Sat Mar 20, 2021 6:29 pm
Forum: SNESdev
Topic: Need guidance with nes to snes.
Replies: 331
Views: 91285

Re: Need guidance with nes to snes.

Sooo, I keep running into a new issue being in SNES mode, that I keep loading data from the wrong bank. I'll be in the 02 bank for all my code, but when I want to load code in the current bank I'm in with the $E000 region, it keeps loading from the 00 bank, I swear I looked up and down through the i...