[retroforth] unwanted '-' printing hex words

  • From: "Ron Aaron" <ron@xxxxxxxxxxx>
  • To: retroforth@xxxxxxxxxxxxx
  • Date: Sun, 23 Jan 2005 20:27:21 -0800 (PST)

In the latest Reva 5.0.0.5 I fixed something that has been bothering me in rf,
which is that if you set the base to say, hex or binary and . a negative
number, you get a leading minus sign.  This is unusual and unwanted (at least
by me) so I changed it.

The simple change was to do

cmp dword [base], 10
jne .a
or eax, eax
jns .a
....

So if the base is not 10, a minus sign is not prepended.

Just FYI....
Ron

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




Other related posts: