this post was submitted on 20 Oct 2024
21 points (100.0% liked)

technology

23313 readers
73 users here now

On the road to fully automated luxury gay space communism.

Spreading Linux propaganda since 2020

Rules:

founded 4 years ago
MODERATORS
 

I am trying to re-learn assembly. I have been trying to find a tutorial for assembling a program using NASM on Windows, on a CPU with the x86_64 architecture. I have been unable to make any of the provided examples work.

I am asking to be provided:

  • A piece of code to assemble. The resulting program should output a message into the CLI.
  • CLI commands to make an object file and to do linkage of that into an executable file.

This should preferably be done using NASM, on Windows, on x86_64 architecture, but I'm at my wit's end at this point, so I guess I will be fine with another assembler.

I intend to analyze the example and to use this as a starting point in my process of getting back into assembly.

you are viewing a single comment's thread
view the rest of the comments
[โ€“] Shinji_Ikari@hexbear.net 4 points 4 weeks ago (1 children)

For the CLI commands: https://www.nasm.us/xdoc/2.16.03/html/nasmdoc2.html#section-2.1

Have you seen this?

I haven't written asm in years though, so I cant whip up a putc loop example.

No, but this doesn't provide any relevant answers.