To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.roboticsOpen lugnet.robotics in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / *7211 (+5)
  Re: Programming the RCX in VB
 
John, here is an example how to create random numbers in VB. In the example below it will generate values between 1 and 6. The statement "Randomize" is initializing the Random Generator. The function "Rnd" is then used to get the random numbers. Dim (...) (28 years ago, 3-Jan-99, to lugnet.robotics)
 
  Re: legOS C++ questions
 
(...) Destructors for stack-based objects get run as soon as the enclosing scope exits. If you call exit, the compiler doesn't know it needs to destroy them first. If you dynamically allocate objects, you have to destroy them yourself for the (...) (28 years ago, 3-Jan-99, to lugnet.robotics)
 
  Re: legOS ... really a stack question
 
(...) Correct, that is where the motor driver chips live. It isn't actually RAM. (...) The _stack symbol defined by the linker is normally used by crt0 to set the initial stack pointer. In this case, the stack pointer isn't changed by legOS (...) (28 years ago, 3-Jan-99, to lugnet.robotics)
 
  RE: legOS ... really a stack question
 
(...) Good point, I will add the code to clear it to my crt0.s before calling constructors: mov.w #__bss,r2 mov.w #__end,r3 sub.b r0l,r0l cmp.w r3,r2 bhs .Lbss_done .Lmore_bss: mov.b r0l,@r2 adds #1,r2 cmp.w r3,r2 blo .Lmore_bss .Lbss_done: ... John (...) (28 years ago, 3-Jan-99, to lugnet.robotics)
 
  Re: Programming the RCX in VB
 
In article <000e01be369d$acc1cc...-van-dam>, B van Dam <bvandam@westbrabant.net> writes (...) If you really mean "How do I generate a random number within VB" then click "Help" in VB and search for random. If you mean "How can RCX code generate a (...) (28 years ago, 3-Jan-99, to lugnet.robotics)

Next Page:  5 more | 10 more | 20 more
Redisplay Messages:  All | Compact

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR