BinHex in Pbasic

Does the Pbasic STAMP understand constants defined in BinHex? We at 550 were attempting to program an auto-drive into the works, using the yaw-rate sensors, optical sensors, and a makeshift RADAR syatem fabricated from the front end of a dead Mercedes that was donated to our school’s automotive shop by a kind dealer that didn’t want to deal with it’s structural problems. So, as we’re messing around, we realize we don’t know how to do an obstacle vector for speed in relation to distance from objects. Can anyone help make a little sense of this?

I’m not particularly sure what you’re talking about. BinHex is a program used for encoding binary files as text on a Mac. What I’m assuming you’re asking is whether or not PBasic will allow the user of hexadecimal (base 16) constants. While I don’t know exactly, my initial impression is to say no. But don’t quote me on that.


Pbasic is very comfortable with hex (a.k.a. hexidecimal) and binary numbers.

Decimal is assumed if there is no leading $ or #.

$ is the leading character to indicate a hex number $80 = 128 for example.

is the leading character to indicated a binary number #1000000 = $80 = 128.

For me, Pbasic and hex go together like Mountain Dew and Pizza.

The base machine uses 8 bit and 16 bit registers. This makes hex very easy to use in come cases.

Just one programmer’s opinion.

Joe J.

Joe, you’ve really cleared that up nicely; thanks.

By the way, no sensible roboticist would ever do something so drastic as to befoul his robot’s processor with a program that ever was written magnetically on a mac.