Bigger than a byte
Newzed
Posts: 2,503
The SX/B program I'm working on is generating a number larger than 255.· How do I handle this word-sized variable?· I've tried an array but couldn't make it work.
Sid
Sid
Comments
countLo··· VAR··· Byte
countHi··· VAR··· Byte
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Dallas, TX· USA
Sid
Sid
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Dallas, TX· USA
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Dallas, TX· USA
Post Edited (Jon Williams) : 5/8/2005 9:20:28 PM GMT
If you need more acuracy, you can do RCTIME with a resolution of 4 or 5. Then if the value returned is low, then do RCTIME again without the resolution value (defaults to 1).
Bean.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"SX-Video Display Module" Available Now.
www.sxvm.com
"I thought I was wrong once...But I was mistaken [noparse];)[/noparse]"
·