Enhance: HEX number literals
dpharris opened this issue · 6 comments
dpharris commented
How can hex be entered? Suggestion might use X: X5ef,Xa5+.
(Would have preferred x, and X for execute.)
mikaelpatel commented
Right now it is only decimal format but I planned to add the traditional C-style with 0x and 0b. This increases the foot-print but will be needed. Also I would like the cell width to be configurable (int as now or long).
mikaelpatel commented
Please see commit 8ba71a0.
dpharris commented
Yes, just saw it in the code!
mikaelpatel commented
The current implementation has a few short-cuts. It is possible to give 0b12345, i.e. binary base does not check the character set. I will get back to this later on.
mikaelpatel commented
Hexadecimal should be working fine so I will close this issue.
mikaelpatel commented
Commit 2f19d35 fixes the issue with accepting illegal digits in binary base.