Wiki Error?

Discussion about the site's wikis, including bugs/issues encountered.
User avatar
67726e
Posts: 129
Joined: Sat Apr 03, 2010 5:45 pm
Location: South Carolina

Wiki Error?

Post by 67726e »

http://wiki.nesdev.com/w/index.php/PPU_ ... _.3E_write

The line states that writing #$30 to $2001 will produce a monochrome display. It seems that is incorrect. Writing #$1F will produce the monochrome display. Writing #$30 will only remove the background rendering and intensify red.
User avatar
Dwedit
Posts: 5257
Joined: Fri Nov 19, 2004 7:35 pm

Post by Dwedit »

No, it says that enabling the monochrome bit is like doing a bitwise AND of all the colors of the palette with 0x30.
Here come the fortune cookies! Here come the fortune cookies! They're wearing paper hats!
User avatar
koitsu
Posts: 4201
Joined: Sun Sep 19, 2004 9:28 pm
Location: A world gone mad

Post by koitsu »

I've updated the phrasing of the bit in question. Instead of saying "1: AND all ...", I've changed it to "1: logically AND all...", which should act as extra clarification.
User avatar
tokumaru
Posts: 12669
Joined: Sat Feb 12, 2005 9:43 pm
Location: Rio de Janeiro - Brazil

Post by tokumaru »

The problem is using "AND" as if it was a verb. Maybe it should say "ignore bits 0-3 of the palette entries, effectively producing a monochrome display"
User avatar
67726e
Posts: 129
Joined: Sat Apr 03, 2010 5:45 pm
Location: South Carolina

Post by 67726e »

koitsu wrote:I've updated the phrasing of the bit in question. Instead of saying "1: AND all ...", I've changed it to "1: logically AND all...", which should act as extra clarification.
That makes it much clearer.
User avatar
thefox
Posts: 3134
Joined: Mon Jan 03, 2005 10:36 am
Location: the universe

Post by thefox »

"Logically AND" makes me think of logical conjunction... I would do something along the lines of what tokumaru said.
Download STREEMERZ for NES from fauxgame.com! — Some other stuff I've done: fo.aspekt.fi
tepples
Posts: 22994
Joined: Sun Sep 19, 2004 11:12 pm
Location: NE Indiana, USA (NTSC)

Post by tepples »

C, C++, Java, PHP, and numerous other C-family languages make a distinction between bitwise AND (&) and logical AND (&&). Bitwise AND is the operation performed here. Logical AND is "1 if both values are nonzero; otherwise 0". I just rewrote much of that section to get more of the discussion out of the bit chart.
User avatar
cartlemmy
Posts: 193
Joined: Fri Sep 24, 2010 4:41 pm
Location: California, USA

Post by cartlemmy »

tepples wrote:C, C++, Java, PHP, and numerous other C-family languages make a distinction between bitwise AND (&) and logical AND (&&). Bitwise AND is the operation performed here. Logical AND is "1 if both values are nonzero; otherwise 0". I just rewrote much of that section to get more of the discussion out of the bit chart.
Yep, if I saw logical AND I'd really be confused.