Find Jobs
Hire Freelancers

Computer Science Code in RISC-V Assembly language Question, I want Answer

₹600-1500 INR

Lukket
Slået op over 2 år siden

₹600-1500 INR

Betales ved levering
Code in RISC-V Assembly language Count the number of times an element appeared in the array File: count_target.s For this part, any use of the term “integer” refers to a 32-bit, signed integer. Write a program that counts the number of times that a target integer (given in a variable target) appears in an array of integers called arr whose length is given in a variable called arrlen. The final count should be placed in a variable count that will already be defined in the input file. Your program should be written in a file called count_target.s. You should start with the skeleton version that looks as follows: 1 .text 2 3 .global main 4 main: 5 4Here, by “compiler”, we mean the program that does the step of converting source code to assembly code. 6 6 # YOU SHOULD NOT ADD ANY CODE PAST THIS POINT. 7 end: 8 j end 9 .end The first – input_count_target1.s – is shown below. (As a reminder, you would want to rename this to input_count_target.s in order to use it with the provided makefile as is.) The number of times that 13 appears in arr is 3, so your program should set the count variable to 3. Your program should not assume (or care about) the initial value of count. 1 .data 2 3 .global arr , arrlen , target , count 4 arr: 5 .word 5, 13, -8, 19, 20, 13, 5, 13 6 arrlen: 7 .word 8 8 target: 9 .word 13 10 count: 11 .word -1 The second example – input_count_target2.s – is shown below. With this input, the count variable should be set to 2 by your program. 1 .data 2 3 .global arr , arrlen , target , count 4 arr: 5 .word 19, 20, 14, 19, 15 6 arrlen: 7 .word 5 8 target: 9 .word 19 10 count: 11 .word -1 Here, you will have to load the array length from the arrlen variable instead The skeleton code is given as follows :- .text .global main main: # YOU SHOULD NOT ADD ANY CODE PAST THIS POINT. end: j end .end My stats Today CF Score: N/A
Projekt-ID: 31964551

Om projektet

1 forslag
Projekt på afstand
Aktiv 2 år siden

Leder du efter muligheder for at tjene penge?

Fordele ved budafgivning på Freelancer

Fastsæt dit budget og din tidsramme
Bliv betalt for dit arbejde
Oprids dit forslag
Det er gratis at skrive sig op og byde på jobs
1 freelancere byder i gennemsnit ₹1.500 INR på dette job
Brug Avatar.
Hi Bro, I have 3+ years of experience in Malware Analysis and Reverse Engineering. I can see that you need help in building a program from assembly language. I have a very good knowledge in assembly language and compling it with NASM tool. I can assure you that I will be an Ideal candidate for what yoh are looking for. Please reach out to me for further discussions. Thank you
₹1.500 INR på 7 dage
0,0 (0 anmeldelser)
0,4
0,4

Om klienten

Flag for UNITED KINGDOM
WEST NORWOOD, United Kingdom
5,0
15
Betalingsmetode verificeret
Medlem siden feb. 19, 2021

Klientverificering

Tak! Vi har sendt dig en e-mail med et link, så du kan modtage din kredit.
Noget gik galt, da vi forsøgte at sende din mail. Prøv venligst igen.
Registrerede brugere Oprettede jobs i alt
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Indlæser forhåndsvisning
Geolokalisering er tilladt.
Din session er udløbet, og du er blevet logget ud. Log venligst ind igen.