View Single Post
  #1  
Old 04-15-2018, 12:14
dosprog dosprog is offline
Friend
 
Join Date: Feb 2018
Posts: 114
Rept. Given: 0
Rept. Rcvd 17 Times in 16 Posts
Thanks Given: 33
Thanks Rcvd at 146 Times in 74 Posts
dosprog Reputation: 17
[ASM] Helper function for type inline static messages

This is a WIN32 example of printing static messages, the lines of which are located directly in the code behind the call of the printing procedure.
This is an old style, widely used in DOS-programs.

Example of usage:
Quote:
call msg_out
db 'Printed by msg_out PROC',0Dh,0Ah ,0

call msg_out
db 'Press key...',0Dh,0Ah ,0

call wait_key

call msg_box
db 'Testing of msg_box PROC:' ,0
db 'Printed by msg_box PROC',0Dh,0Ah ,0
Attached Files
File Type: rar MSG_OUT.RAR (3.1 KB, 5 views)

Last edited by dosprog; 04-15-2018 at 12:21.
Reply With Quote
The Following User Says Thank You to dosprog For This Useful Post:
wilson bibe (04-15-2018)