Enhance: HEX number literals
dpharris opened this issue · comments
How can hex be entered? Suggestion might use X: X5ef,Xa5+.
(Would have preferred x, and X for execute.)
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).
Please see commit 8ba71a0.
Yes, just saw it in the code!
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.
Hexadecimal should be working fine so I will close this issue.
Commit 2f19d35 fixes the issue with accepting illegal digits in binary base.