The MASM Forum

General => The Campus => Topic started by: ShadowNin on April 03, 2020, 07:53:47 PM

Title: How to print.
Post by: ShadowNin on April 03, 2020, 07:53:47 PM
Hello, i am a beginner in assembly language and i would like to know how would one print for 32 bit program in X86 assembler. Thank You very much :azn:
Title: Re: How to print.
Post by: jj2007 on April 03, 2020, 10:04:21 PM
Like this:
include \masm32\include\masm32rt.inc
.code
start:
  inkey "Hello ShadowNin"
  exit
end start
Title: Re: How to print.
Post by: Vortex on April 04, 2020, 06:13:10 AM
Another one :
include     \masm32\include\masm32rt.inc

.data

string      db 'Hello world!',0

.code

start:

    invoke  StdOut,ADDR string

    invoke  ExitProcess,0

END start