|
Steve Morris wrote:
> HEX is not working the way I think it should in 1.1.1. Is
> this wrong or do I not understand something. This is 1.1.1
> pbmax.srec.
>
> ok DECIMAL
> ok 65536 DUP .
> -1
> ok HEX .
> -1
> Why isn't this ffff?
If you use U. (unsigned dot) you will get FFFF. The "."
is for signed numbers.
> ok
> 300b 300b ? undefined word
>
> Isn't 300b a legal hex number? Maybe it is case sensitive.
Yes it is, but pbForth is case sensitive.
Cheers,
Ralph Hempel - P.Eng
--------------------------------------------------------
Check out pbFORTH for LEGO Mindstorms at:
<http://www.hempeldesigngroup.com/lego/pbFORTH>
--------------------------------------------------------
Reply to: rhempel at bmts dot com
--------------------------------------------------------
|
|
Message has 1 Reply: | | Re: Bug in HEX handling?
|
| (...) Thanks. That helps. Case sensitivity is good but requiring upper case for hex is annoying. I suppose this is forth standard. That is one thing that I find annoying about forth, that most builtin words are upper case. It reveals the age of (...) (25 years ago, 23-May-00, to lugnet.robotics.rcx.pbforth)
|
Message is in Reply To:
| | Bug in HEX handling?
|
| HEX is not working the way I think it should in 1.1.1. Is this wrong or do I not understand something. This is 1.1.1 pbmax.srec. ok DECIMAL ok 65536 DUP . -1 ok HEX . -1 Why isn't this ffff? ok 300b 300b ? undefined word Isn't 300b a legal hex (...) (25 years ago, 23-May-00, to lugnet.robotics.rcx.pbforth)
|
3 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
This Message and its Replies on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|