Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The only thing i want you to do is modify( add some more codes ) to this hello.asm programs( which is an assembly program )

The only thing i want you to do is modify(add some more codes) to this hello.asm programs( which is an assembly program) to output three hardcoded strings(which is "Hello world" three times). Include an assembly list file of your compiled source code and output.

image text in transcribed

global -start section .text ; system call for write ; file handle l is stdout ; address of string to output ; number of bytes ; invoke operating system to do the write ; system call for exit ; exit code 0 ; invoke operating system to exit start: mov rax, 1 rdi, 1 rsi, message rdx, 13 mov mov mov syscall mov xor syscall rax, 60 rdi, rdi section.data message db "Hello, World", 10 note the newline at the end

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Modern Database Management

Authors: Jeff Hoffer, Ramesh Venkataraman, Heikki Topi

12th edition

133544613, 978-0133544619

More Books

Students also viewed these Databases questions

Question

Find dy/dx if x = te, y = 2t2 +1

Answered: 1 week ago