you should call a build in/library function. If you're in windows, just call printf with the correct arguments: (do not forget to include the necessary files)
1 2 3
push eax; ah //first the last parameters
push formatstring //could be "%u"
call printf