Menu

how to enter hex values

2004-06-11
2004-08-16
  • John R. Hogerhuis

    What's the best way to enter hex values in df? I am used to using $12 for example in Gforth. Anything similar?

    Thanks! I like dragon forth so far. Only problem I'm having is building df from Forth, but it is a problem of getting the right versions of all the tools, paths, etc... I figure if I can build it then I create patches for the project as I find problems... mostly so far it has just been trivial spelling issues (the most annoying being "successfully" on load of dfcons is spelled wrong...)

     
    • M\'Fu

      M\'Fu - 2004-08-16

      You could try this :

      : $ base @ >r bl parse hex evaluate r> base ! ;

      which then make

      $ a .
      10

      But you can also just enter value prefixed with 0x

      0xa .
      10

      Cheers,

      M'Fu

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.