News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change

Main Menu

Hello World

Started by Oscar, August 04, 2021, 01:09:12 AM

Previous topic - Next topic

Oscar

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:

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
0x3c21444f43545950452068746d6c3e3c68746d6c3e3c626f64793e3c703e4369616f213c2f703e3c2f626f64793e3c2f68746d6c3e

hutch--

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.

hutch--

I have removed a number of posts as I did not want the new member distracted from how he chooses to learn assembler code.

hutch--

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.