View Single Post
  #8   Spotlight this post!  
Unread 15-12-2002, 19:35
rbayer's Avatar Unsung FIRST Hero
rbayer rbayer is offline
Blood, Sweat, and Code
no team (Teamless Orphan)
 
Join Date: Mar 2002
Rookie Year: 2001
Location: Minnetonka, MN
Posts: 1,087
rbayer is a glorious beacon of lightrbayer is a glorious beacon of lightrbayer is a glorious beacon of lightrbayer is a glorious beacon of lightrbayer is a glorious beacon of light
Send a message via AIM to rbayer
Quote:
Originally posted by gwross

By the way, it is oft repeated that the BASIC Stamp doesn't handle negative numbers. This is NOT true. It will add, subtract, and multiply negative numbers correctly. IT WILL NOT DIVIDE CORRECTLY, though.
This all comes back to the definition of "handle." Intrinsically, anything using two's complement will "handle" negative numbers by definition. However, until PBASIC can at the very least compare negative and positive numbers using >, <, etc, I'm going to continue believing in the absence of anything less than 0. Ditto on support in Max/Min, etc.



As for the colon thing, it's just a matter of style. Technically, it's not needed following a label, but it makes code easier to read and that stipulation made RoboEmu a LOT easier to write. If you do want to pass EduCode through RoboEmu, don't forget to change the Serout line also. RoboEmu expects 18 bytes after 255,255, but the Edu code only has 10.
__________________
New C-based RoboEmu2 (code simulator) available at: http://www.robbayer.com/software.php