Hello Bart - it's nice to hear from you again!
the only thing wrong is the comment: you have to use -DFORSYS.
Otherwise the libc printf (not the one in prf.c) is used, and in the small model this prints indeed a near pointer for %p and 1234:5678 (simply 5678).
Thank you for this explanation. (Tom also answered me that with -DFORSYS everything works fine.) Today I understood this myself while trying to fix the %l bug I had introduced with my unstable PRF.C optimisation two days ago. I didn't realise that I got a bug, because I did the test without -DFORSYS and the libc printf worked fine except for %p - same as the unstable version. Fortunately I fixed the bug. Also I changed PRF.C to include the internal printf even if only TEST is defined. This way the variable argument macros are included in the test too, as they're used by the kernel. By the way, why are they so different in various compilers, and why Bruce BCC macros were chosen?
Regards, Lucho
-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM. Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php
_______________________________________________
Freedos-kernel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freedos-kernel