Question: Make a program using x 8 6 - 6 4 Linux assembly syntax. Here's an example of that syntax: . global main . text #
Make a program using x Linux assembly syntax. Here's an example of that syntax: global main
text # executable code
main:
mov $r # count
top:
cmp $r # if count jump to end
je end
# write message,
mov $rax # is system call id for write
mov $rdi # is fd for stdout
mov $message, rsi # address of message
mov $rdx # write bytes
syscall
dec r # count
jmp top # always jump back to the top
end:
# exit
mov $rax # is system call id for exit
mov $rdi # is the exit value
syscall
data # initialized data
message: ascii "Hello, World The program will be called righttri.s it will take a number from the command line like this: righttri and then will make a right triangle out of #s that are that many lines long and then print Triangle under it example: righttri
# ## ### Triangle!
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
