Writing C-like printf in assembly

Ever wondered how `printf(“Hello world!”)` work under the hood? in the high level languages we take formatted output for granted.