User:Tepples/entity

From NESdev Wiki
< User:Tepples
Revision as of 14:44, 25 August 2013 by Tepples (talk | contribs) (&)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Look at the source to see what's going on. It's perfectly valid 6502 code, but because a constant is being bitwise ANDed at compile time with the constant amp (which here represents the "amplitude" field of APU $4000, $4004, and $400C) and followed by a comment, the MediaWiki parser is confusing it with an character entity reference.

Space indented:

duty    = $C0
envtype = $30
amp     = $0F
lda #$B7&mask off upper nibble

<pre> element:

duty    = $C0
envtype = $30
amp     = $0F
lda #$B7&mask off upper nibble

<source> element: <source lang="6502"> duty = $C0 envtype = $30 amp = $0F lda #$B7&mask off upper nibble </source>