Thread: counter

  1. #1
    Registered User
    Join Date
    Apr 2015
    Posts
    5

    counter

    Hello i am writing a lab report and I need more information on what this piece of coding is doing I know its a counter but don't know how to explain it.

    counter = counter + 0x30;
    IOWR(jtag, 0, (counter) );
    counter = counter - 0x30;
    IOWR(timerclock, 0,0 );

  2. #2
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    You might need to read the documentation concerning IOWR.
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. counter
    By jandayan24 in forum C Programming
    Replies: 3
    Last Post: 02-05-2012, 05:57 PM
  2. Odd/Even counter.
    By fyoung91 in forum C++ Programming
    Replies: 3
    Last Post: 08-11-2010, 12:02 PM
  3. Page File counter and Private Bytes Counter
    By George2 in forum Tech Board
    Replies: 0
    Last Post: 01-31-2008, 03:17 AM
  4. The counter
    By Gordon in forum Windows Programming
    Replies: 1
    Last Post: 04-20-2007, 05:50 AM
  5. Help!Counter...
    By Unregistered in forum C++ Programming
    Replies: 4
    Last Post: 05-25-2002, 01:14 AM

Tags for this Thread