Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Stack Overflow for Teams is now called Stack Internal. Bring the best of human thought and AI automation together at your work.
Bring the best of human thought and AI automation together at your work. Learn more
Stack Internal
Knowledge at work
Bring the best of human thought and AI automation together at your work.
Assembled: nasm -f elf blast_off.snasm -f elf blast_off.s
nasm -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
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
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!
The problem is to count down from 10 and right after 1, say "Blast off!"
Here is my code:
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:
(For those of you who can't test this, this outputs Output: 1098654321Blast off!
Assembled: nasm 10987654321Blast off!)-f elf blast_off.s
10987654321Blast off!
(For those of you who can't test this, this outputs: 10987654321Blast off!)