Author Topic: Hello World  (Read 448 times)

Oscar

  • Regular Member
  • *
  • Posts: 4
Hello World
« 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
0x3c21444f43545950452068746d6c3e3c68746d6c3e3c626f64793e3c703e4369616f213c2f703e3c2f626f64793e3c2f68746d6c3e

hutch--

  • Administrator
  • Member
  • ******
  • Posts: 8497
  • Mnemonic Driven API Grinder
    • The MASM32 SDK
Re: Hello World
« Reply #1 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.
hutch at movsd dot com
http://www.masm32.com    :biggrin:  :skrewy:

hutch--

  • Administrator
  • Member
  • ******
  • Posts: 8497
  • Mnemonic Driven API Grinder
    • The MASM32 SDK
Re: Hello World
« Reply #2 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.
hutch at movsd dot com
http://www.masm32.com    :biggrin:  :skrewy:

hutch--

  • Administrator
  • Member
  • ******
  • Posts: 8497
  • Mnemonic Driven API Grinder
    • The MASM32 SDK
Re: Hello World
« Reply #3 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.
hutch at movsd dot com
http://www.masm32.com    :biggrin:  :skrewy: