[retroforth] Re: unwanted '-' printing hex words

  • From: "Ron Aaron" <ron@xxxxxxxxxxx>
  • To: retroforth@xxxxxxxxxxxxx
  • Date: Mon, 24 Jan 2005 09:19:17 -0800 (PST)

On Mon, January 24, 2005 3:04, Charles Childers said:
> Thank you for pointing this out. I've incorporated the change to my
> codebase for retro8.

Glad to be of service :-)

Helmar: it's usual to use 'u.' to unsignedly print (decimal).

In my latest Reva (not on the site) I have the <# # #S #> words working for
qword output, although the sign stuff is not working yet correctly I think.

I am considering modifying the '(.)' primitive so it pays attention to a
'width' parameter.  So doing something like:

  2 #. !  | set output width
  3 .

would output 03 instead of 3.

However, now I have the # word working, it's trivial to do that with <# # # #>
( as long as you have a DOUBLE on the stack.  So maybe I won't modify '.' at
all...

But for example, 'dump' should output "normal" hex, e.g. two-character codes
rather than the one character it does now.

-- 
My GPG public key is at http://ronware.org/
fingerprint: 8130 734C 69A3 6542 0853  CB42 3ECF 9259 AD29 415D




Other related posts: