Skip to main content
Tweeted twitter.com/#!/StackCodeReview/status/550508911426822144
Tinkering with format
Source Link
SirPython
  • 13.3k
  • 3
  • 38
  • 93

Assembled: nasm -f elf blast_off.snasm -f elf blast_off.s

Linked: ld -m elf_i386 -s -o blast_off blast_off.old -m elf_i386 -s -o blast_off blast_off.o

Assembled: nasm -f elf blast_off.s

Linked: ld -m elf_i386 -s -o blast_off blast_off.o

Assembled: nasm -f elf blast_off.s

Linked: ld -m elf_i386 -s -o blast_off blast_off.o

deleted 88 characters in body; edited title
Source Link
Jamal
  • 34.9k
  • 13
  • 133
  • 237

Does this assembly code follow Countdown program in x86 NASM convention?

Assembler: NASM Architecture: x86(I believe)

I am fairly new to Assembly language programming and, for practice, I gave myself a problem.

The problem is to: count down from 10 and right after 1, say "Blast off!"

Here is my code:.

Output: 1098654321Blast off!

1098654321Blast off!

Does this assembly code follow NASM convention?

Assembler: NASM Architecture: x86(I believe)

I am fairly new to Assembly language programming and, for practice, I gave myself a problem.

The problem is to count down from 10 and right after 1, say "Blast off!"

Here is my code:

Output: 1098654321Blast off!

Countdown program in x86 NASM

I am fairly new to Assembly language programming and, for practice, I gave myself a problem: count down from 10 and right after 1, say "Blast off!".

Output:

1098654321Blast off!

Included how I assembled and linked the code
Source Link
SirPython
  • 13.3k
  • 3
  • 38
  • 93

(For those of you who can't test this, this outputs Output: 1098654321Blast off!

Assembled: nasm 10987654321Blast off!)-f elf blast_off.s

Linked: ld -m elf_i386 -s -o blast_off blast_off.o

(For those of you who can't test this, this outputs: 10987654321Blast off!)

Output: 1098654321Blast off!

Assembled: nasm -f elf blast_off.s

Linked: ld -m elf_i386 -s -o blast_off blast_off.o

Source Link
SirPython
  • 13.3k
  • 3
  • 38
  • 93
Loading