                 baseX = tileX << 3
                 address = ((tileX & 0x10) << 4 | tileY << 4 | tileX & 0x0F) << 4
                 @renderPatternTile baseX, baseY, address
+        undefined
 
     renderPatternTile: (baseX, baseY, address) ->
         for rowNumber in [0...8]

                baseX = tileX << 5
                color = @_read 0x3F00 | (tileY << 3) | tileX
                @renderPaletteTile baseX, baseY, color

    renderPaletteTile: (baseX, baseY, color) ->
        for y in [baseY ... baseY + 28]
            for x in [baseX ... baseX + 32]
                @setFramePixelOnPosition x, y, color        

    setFramePixelOnPosition: (x, y, color) ->
        colorPosition = color << 2

        value

    writeOAMData: (value) ->
        @primaryOAM[@oamAddress] = value if not @_isRenderingInProgress()
        @oamAddress = (@oamAddress + 1) & 0xFF # Write always increments the address.
        value

