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

                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

        address

    readData: ->
        address = @_incrementAddress()
        oldBufferContent = @vramReadBuffer
        @vramReadBuffer = @_read address                                         # Always increments the address
        if @_isPalleteAddress address then @vramReadBuffer else oldBufferContent # Delayed read outside the pallete memory area

    writeData: (value) ->
        address = @_incrementAddress()                          # Always increments the address
        @_write address, value if not @_isRenderingInProgress() # Only during VBLANK or disabled rendering
        value

    incrementAddress: ->
        previousAddress = @vramAddress
        @vramAddress = (@vramAddress + @_getAddressIncrement()) & 0xFFFF
        previousAddress

    getAddressIncrement: ->
