Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7688877
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T20:01:42+00:00 2026-05-31T20:01:42+00:00

I am relatively new to assembly language. I have found so many tutorials that

  • 0

I am relatively new to assembly language. I have found so many tutorials that explain how to create a HelloWorld application using ML64 and MASM32, but none of them explain the program in detail. For example, have a look at the example below, which I found online and does compile (64 bit):

main proc
sub rsp, 68h      ; space for 4 arguments + 16byte aligned stack
xor r9d, r9d        ; 4. argument: r9d = uType = 0
lea r8,    ; 3. argument: r8  = caption
lea rdx, [text]     ; 2. argument: edx = window text
xor rcx, rcx        ; 1. argument: rcx = hWnd = NULL
call MessageBoxA
xor ecx, ecx        ; ecx = exit code
call ExitProcess
main endp

end

I can follow this through. I understand that there are general purpose registers and segment registers but how do you decide which one’s to use. For example, why does ‘r8’ contain the caption instead of r9? Is there an assembly reference for the WinAPI? I realise this is a basic question. I have chosen the MASM32 tag as this is a general question with a 64 bit example.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T20:01:43+00:00Added an answer on May 31, 2026 at 8:01 pm

    The Windows x64 calling convention is described for example here.

    To know the order of the arguments, look for e.g. MessageBoxA here.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm relatively new to web application programming so I hope this question isn't too
I'm relatively new to Nant, what i'd like to do is have a task
Relatively new to JQuery. I've got some code that does a banner swap with
Im relatively new to PHP but have realized it is a powerfull tool. So
I am relatively new to using Nhibernate but basic things already are working. Now
I'm somewhat new to assembly and have to look up the x86 instructions every
Relatively new to python. I recently posted a question in regards to validating that
Relatively new to mySQL so this is probably an easy one: I have a
Being relatively new to the software industry I have come across a question of
Relatively new to using database and for some reason I can't get this 'execute'

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.