View Single Post
  #2   Spotlight this post!  
Unread 18-02-2002, 00:30
Mike Soukup's Avatar
Mike Soukup Mike Soukup is offline
Software guy
FRC #0111 (Wildstang)
Team Role: Engineer
 
Join Date: May 2001
Rookie Year: 1996
Location: Schaumburg, IL
Posts: 797
Mike Soukup has a reputation beyond reputeMike Soukup has a reputation beyond reputeMike Soukup has a reputation beyond reputeMike Soukup has a reputation beyond reputeMike Soukup has a reputation beyond reputeMike Soukup has a reputation beyond reputeMike Soukup has a reputation beyond reputeMike Soukup has a reputation beyond reputeMike Soukup has a reputation beyond reputeMike Soukup has a reputation beyond reputeMike Soukup has a reputation beyond repute
You don't need to create a variable that's a word. If all you need is a counter, you can simulate a word with 2 bytes. You'll be able to count up to 65536.

pseudocode:

byte i, j

i = 0
j = 0


main loop:

if (i < 255)
{
i++
}
else
{
i = 0
j++
}

Mike