Search found 67 matches

by puppydrum64
Fri May 14, 2021 4:42 pm
Forum: Newbie Help Center
Topic: VRC6 CHR Bank Malformed?
Replies: 32
Views: 598

Re: VRC6 CHR Bank Malformed?

Ahh, I see! That lets you avoid having to do a comparison. (Funnily enough the Nerdy Nights tutorial uses CMP/CPX/CPY #$00) in a few places which to my knowledge is never needed.) EDIT: In this case I don't think that's worth it. I'm using y for both the loop counter and as an index to ensure I writ...
by puppydrum64
Fri May 14, 2021 4:14 pm
Forum: Newbie Help Center
Topic: VRC6 CHR Bank Malformed?
Replies: 32
Views: 598

Re: VRC6 CHR Bank Malformed?

So now that I've got everything working, I'd like to discuss the best way to switch banks. "Best" meaning the method that uses the least amount of ROM and CPU cycles. This is what I've come up with so far and it does the job, but is there a better way? SwitchBankCHR: ;this code will change all eight...
by puppydrum64
Thu May 13, 2021 12:45 pm
Forum: Newbie Help Center
Topic: VRC6 CHR Bank Malformed?
Replies: 32
Views: 598

Re: VRC6 CHR Bank Malformed?

You realize you can't read the value of the register, right? It will just read the value of the ROM at $D00x or what have you, nor will writing to it change the value that is read. You'll have to keep track of the register value(s) in RAM somewhere manually, if that's your intention. I figured as m...
by puppydrum64
Thu May 13, 2021 7:00 am
Forum: NESdev
Topic: FDS header date fields
Replies: 38
Views: 14292

Re: FDS header date fields

I've been curious about how the RAM adapter works. My understanding is that since the RAM adapter contains all the chips needed to run the game, that all FDS games have the same mapper. Is there an iNES header that is common to all disk system games?
by puppydrum64
Wed May 12, 2021 9:04 pm
Forum: NESemdev
Topic: What causes Alfredo and Jigsaw to fail on most emulators?
Replies: 3
Views: 231

What causes Alfredo and Jigsaw to fail on most emulators?

From what I understand these two Action 52 games don't boot on the actual cartridge either. They'll run on NESCafe and NESten but not on everything. Has anyone figured out why?
by puppydrum64
Wed May 12, 2021 8:41 pm
Forum: NES Graphics
Topic: Megaman 4 Nes Toad Man Graphic
Replies: 1
Views: 3992

Re: Megaman 4 Nes Toad Man Graphic

I'm guessing what's going on here is that on Toad Man's stage, to simulate the rain being in the foreground, the sprites are all set up to be drawn "behind" the background. This setting is in the sprites' attribute data. I don't know what section of RAM is assigned to OAM on Mega Man 4 unfortunately...
by puppydrum64
Wed May 12, 2021 7:34 pm
Forum: Newbie Help Center
Topic: VRC6 CHR Bank Malformed?
Replies: 32
Views: 598

Re: VRC6 CHR Bank Malformed?

Only weird thing happening now is, I have my test ROM set up so that pressing A will add 1 to the value in $D000. But for some reason it adds 2 instead, and I don't know why. You realize you can't read the value of the register, right? It will just read the value of the ROM at $D00x or what have yo...
by puppydrum64
Wed May 12, 2021 6:13 pm
Forum: Newbie Help Center
Topic: VRC6 CHR Bank Malformed?
Replies: 32
Views: 598

Re: VRC6 CHR Bank Malformed?

Only weird thing happening now is, I have my test ROM set up so that pressing A will add 1 to the value in $D000. But for some reason it adds 2 instead, and I don't know why.
by puppydrum64
Wed May 12, 2021 4:54 pm
Forum: Newbie Help Center
Topic: VRC6 CHR Bank Malformed?
Replies: 32
Views: 598

Re: VRC6 CHR Bank Malformed?

what to write to them? The KB of CHR data that you want in each bank. So, if you did: LDX #$00 STX $D000 INX STX $D001 INX STX $D002 INX STX $D003 INX STX $E000 INX STX $E001 INX STX $E002 INX STX $E003 The SMB CHR data would be loaded in order. If i understand VRC6 correctly... Funnily enough I li...
by puppydrum64
Wed May 12, 2021 4:21 pm
Forum: Newbie Help Center
Topic: VRC6 CHR Bank Malformed?
Replies: 32
Views: 598

Re: VRC6 CHR Bank Malformed?

Controllerhead wrote:
Wed May 12, 2021 4:00 pm
puppydrum64 wrote:
Wed May 12, 2021 3:53 pm
I still don't understand why this is happening
That's the first 1KB of CHR data repeated 8 times. Looks right to me =p

You should try switching those banks.
Hmm, so how do I switch banks exactly? I know I need to write to the "PPU registers" but what to write to them?
by puppydrum64
Wed May 12, 2021 3:53 pm
Forum: Newbie Help Center
Topic: VRC6 CHR Bank Malformed?
Replies: 32
Views: 598

Re: VRC6 CHR Bank Malformed?

Thank you everyone for your help so far. I think I'm starting to understand more about how banks work on NES games. But unfortunately I still don't understand why this is happening, even after setting bit 5 of $B003:

Image
by puppydrum64
Wed May 12, 2021 3:46 pm
Forum: Newbie Help Center
Topic: VRC6 CHR Bank Malformed?
Replies: 32
Views: 598

Re: VRC6 CHR Bank Malformed?

.include "pad8k.asm" There's no need to use external files for padding... Any decent assembler will have a directive to fill memory. It looks like NESASM uses DS for this (e.g. .ds 8192 to generate 8KB of zeros). But with NESASM's mandatory BANK directives, I don't think you even need to do any man...
by puppydrum64
Wed May 12, 2021 2:18 pm
Forum: Newbie Help Center
Topic: VRC7 Help (Really more about mappers that support multiple banks in general)
Replies: 12
Views: 514

Re: VRC7 Help (Really more about mappers that support multiple banks in general)

Align exists in both VASM and CA65 as well, but I think NESASM doesn't have it and requires some creativity to replicate it. I honestly just fill the empty space with empty patterns or cross marks to fill out the CHR table, but this is a typical situation when align is very useful. I created a file...
by puppydrum64
Wed May 12, 2021 2:07 pm
Forum: Newbie Help Center
Topic: VRC6 CHR Bank Malformed?
Replies: 32
Views: 598

Re: VRC6 CHR Bank Malformed?

A few observations: 1. You have symbolic constants for a bunch of different registers, but you never use any of them (except for the VRC6 "PPU_BANKING_STYLE" in one place) 2. At the very end of your init code is a comment ";;DON'T TURN ON RENDERING UNTIL FIRST GRAPHICS ARE DRAWN.", but the code imm...
by puppydrum64
Wed May 12, 2021 1:34 pm
Forum: Newbie Help Center
Topic: VRC6 CHR Bank Malformed?
Replies: 32
Views: 598

Re: VRC6 CHR Bank Malformed?

Since I'm using NESASM3, would my header need to look like this? .inesprg 2 .ineschr 2 .inesmap 24 1 .bank 0 .org $8000 .org $c000 .org $e000 RESET: ; insert init code here loop: Jmp loop NMI: rti IRQ: rti .org $fffa dw NMI dw RESET dw IRQ .bank 2 .org $0000 .incbin "test0.chr" .org $0400 .incbin "...