You'd just call printf from assembly by knowing the ABI by heart.