The MASM Forum

General => The Campus => Topic started by: Oscar on August 04, 2021, 01:09:12 AM

Title: Hello World
Post by: Oscar on August 04, 2021, 01:09:12 AM
This is my first time in the forum. I just started learning assembly and I hope to better understand how it works. Thank you in advance for the help this site and the users will give me.
This is my first program:
Code: [Select]
title Hello World program

.386
.model flat, stdcall
option casemap :none

include \masm32\include\kernel32.inc
include \masm32\include\masm32.inc
includelib \masm32\lib\kernel32.lib
includelib \masm32\lib\masm32.lib

.data
    message db "Hello world!", 0

.code

main:
    invoke StdOut, addr message
    invoke ExitProcess, 0
end main
Title: Re: Hello World
Post by: hutch-- on August 04, 2021, 09:25:03 AM
Hi Oscar, welcome on board. Makes sense to start simple so you understand what you are doing, hope you have some fun here, a lot of talented people here who will help you if your question makes sense.
Title: Re: Hello World
Post by: hutch-- on August 05, 2021, 01:16:33 AM
I have removed a number of posts as I did not want the new member distracted from how he chooses to learn assembler code.
Title: Re: Hello World
Post by: hutch-- on August 05, 2021, 06:02:59 PM
Folks, please give our new members a chance and don't experiment on them as they are going through a difficult stage learning this stuff and don't need to be lead astray. I will remove any further attempts as I have had to do here as we don't need to have new members harassed or assaulted with a flood of garbage.