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.