This is my macro for writing to STDOUT:
; print string (immediate): ex. m_puts "hello!" m_puts macro string local @@start, @@data push ax dx