Bankswitching question

Are you new to 6502, NES, or even programming in general? Post any of your questions here. Remember - the only dumb question is the question that remains unasked.

Moderator: Moderators

Post Reply
albailey
Posts: 177
Joined: Thu Jul 13, 2006 3:15 pm

Bankswitching question

Post by albailey »

This is probably my newbie-ist question yet.

When you do a bankswitch (like on an UNROM) is there any delay associated with it?

I'm 99.9% sure that the only cost is the actual CPU instruction costs (LDA , STA etc..) but I still wanted to check because I know some calls cost a lot more in CPU cycles than the actual instruction. (like STA 4014 to invoke Sprite DMA which costs at least 512 CPU cycles)

Al
User avatar
kyuusaku
Posts: 1665
Joined: Mon Sep 27, 2004 2:13 pm

Post by kyuusaku »

There is the delay in the form of logic gate propagation time, but the outputs in all commercial mapper stabilize long before even the next half-CPU cycle.
dvdmth
Posts: 354
Joined: Wed Mar 22, 2006 8:00 am

Post by dvdmth »

In other words, the delay is so tiny the CPU never even sees it (nor does the PPU, for that matter).
"Last version was better," says Floyd. "More bugs. Bugs make game fun."
tepples
Posts: 22345
Joined: Sun Sep 19, 2004 11:12 pm
Location: NE Indiana, USA (NTSC)
Contact:

Post by tepples »

I'm pretty sure that Squeedo is the only mapper that has a noticeable bank switching delay.
Post Reply