Thread
:
Need help with 255 Variable
View Single Post
#
2
18-02-2002, 00:30
Mike Soukup
Software guy
FRC #0111 (Wildstang)
Team Role: Engineer
Join Date: May 2001
Rookie Year: 1996
Location: Schaumburg, IL
Posts: 797
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
Mike Soukup
View Public Profile
Visit Mike Soukup's homepage!
Find all posts by Mike Soukup
Find CD-Media Photos by Mike Soukup
Find CD-Media Papers by Mike Soukup