a little noob question: ¿open bus?

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
User avatar
ehguacho
Posts: 83
Joined: Tue Mar 09, 2010 11:12 pm
Location: Rosario, Argentina
Contact:

a little noob question: ¿open bus?

Post by ehguacho »

extracted from "The software emulation of the NES concole" (a.k.a. "Qeed's Doc"):
PPUADDR (0x2006):
This is the register where you write the address that you want to
read from or write to using PPUDATA (0x2007). Games must not ever
write to this address during rendering, or it will mess up the display,
this will be explained in a later section. Reading here will return
open bus
. During rendering the address written here will be the
"program counter" for the PPU, so this is why it messes up, because
the PPU also increments that register as its rendering leading to
addresses you don't want. Only use this during vblank to update
graphic data.
what does he mean with "open bus"???
User avatar
MottZilla
Posts: 2835
Joined: Wed Dec 06, 2006 8:18 pm

Post by MottZilla »

Open Bus means that no device responds to the address requested. So the value returned is generally the last value placed onto the bus. You don't need to worry about this so early on in your project. Infact you may never really need to worry about accurate open bus behavior. The only games that might rely on this are probably obscure chinese pirates.
User avatar
tokumaru
Posts: 12106
Joined: Sat Feb 12, 2005 9:43 pm
Location: Rio de Janeiro - Brazil

Post by tokumaru »

User avatar
ehguacho
Posts: 83
Joined: Tue Mar 09, 2010 11:12 pm
Location: Rosario, Argentina
Contact:

Post by ehguacho »

ok ok thank you all again!
sorry about my english, i'm from argentina...

http://nestate.uuuq.com
Post Reply