Open ecm-pushbx opened 4 years ago
Hello @ecm-pushbx,
Thanks for your report again. Unfortunately this is a feature that is very specific to Borland C, and it actually clashes with C99's --- and even Open Watcom's --- idea of what %F
means. (C99 says %F
means the same as %f
, except for infinity and not-a-number. Watcom also treats %F
largely like %f
.)
Thank you!
So I should change the code to use a format like "%04"PRIX16":%04"PRIX16 I take it?
Hello @ecm-pushbx,
So I should change the code to use a format like "%04"PRIX16":%04"PRIX16 I take it?
That should work. If you use my libi86
library, you can take advantage of the FP_OFF
and FP_SEG
macros to extract the offset and segment components of the far pointer.
I will also try to think about a way to properly add support for processing far pointers to printf
and friends.
Thank you!
I am porting Map to gcc-ia16 and it uses %Fp format specifiers to format far pointers. Support for this seems to be missing from your printf. Test case:
Expected output would be
12AB:34CD
here.