To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.rcx.pbforthOpen lugnet.robotics.rcx.pbforth in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / RCX / pbFORTH / 366
365  |  367
Subject: 
RE: Bug in HEX handling?
Newsgroups: 
lugnet.robotics.rcx.pbforth
Date: 
Tue, 23 May 2000 02:34:01 GMT
Viewed: 
1466 times
  
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
    

Custom Search

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