|
|
|
|
|
by trealira
965 days ago
|
|
> You could pretty easily write an asm port of a basic printf function if one wanted to reuse previously translated strings. In fact, the function for printf used to be implemented in assembly on Unix. In this link, the actual implementation is in doprnt.s, and the function printf (in printf.c) just passes its arguments to the function _doprnt. In V6 Unix, it was the same for scanf, but V7 seems to have replaced it with a C implementation. http://tuhs.org/cgi-bin/utree.pl?file=V7/usr/src/libc/stdio |
|