In Progress

Please can anyone do this within 5 hours?

Please reply if you are confirmed

[Posting or Asking for Direct Contact Details is Prohibited - GAF Admin]

I need help with the following. Here, assembly language means Y86. There should be four separate files when complete.

1) Implement dot-product of two vectors in assembly language. Assume an array of 4 elements is used to represent a vector. Should take input (1, 2, 3, 4) and (4,3,2,1)

2) Use the function developed for P1 to implement matrix multiplication in assembly language. Simply consider two 4-by-4 matrices. [0, 1, 0, 1; 1, 0, 1, 0; 0, 1, 0, 1; 1, 0, 1, 0]

3) Implement a function in assembly language to traverse a linked list and sum up all elements (non-recursively). (1)->(2)->(3)->(4)

4) Redo (3) with recursion.

Here's a bit I started with but doesn't work properly. I can call Multiply once. If I call it a second time it never gets back to the halt in Main.

# int multiply(int number_1, int number_2)

Multiply: pushl %ebp

rrmovl %esp,%ebp

mrmovl 12(%ebp),%ecx # ecx = number_1

mrmovl 8(%ebp),%edx # edx = number_2

irmovl $0, %eax # sum = 0

andl %edx,%edx

je mEnd

mLoop: addl %ecx,%eax # add to sum

irmovl $-1,%ebx #

addl %ebx,%edx # number_2--

jne mLoop # Stop when 0


rrmovl %ebp,%esp

popl %ebp


#int dotproduct(int vector_1, int vector_2)

DotProduct: pushl %ebp

rrmovl %esp,%ebp

mrmovl 12(%ebp),%ecx # ecx = vector_1

mrmovl 8(%ebp),%edx # edx = vector_2

irmovl $0, %edi # sum = 0

irmovl $1, %ebx

mrmovl (%ecx), %eax

pushl %eax

mrmovl (%edx), %eax

pushl %eax

call Multiply

addl %eax,%edi

popl %eax

popl %eax

rrmovl %edi,%eax

rrmovl %ebp,%esp

popl %ebp


here is the more information regarding the project

Just some stuff I found when reviewing the project:

[url removed, login to view]:O-KjuNyxuPQJ:[url removed, login to view]+linked+list+in+y86+assembly+language&cd=2&hl=en&ct=clnk&gl=us

has a template for linked lists and multiplication.

There's a simulator on csapp website it would be best if you ran it with:

1) Download the source package from [url removed, login to view] under Chapter 4: Processor Architecture

2) Edit the Makefile so the lines beginning with GUIMODE, TKLIBS, and TKINC are commented out.

3) Save the Makefile and run make.

4) The simulator is run like this: ./ssim < [url removed, login to view]

Skills: Java

See more: irmovl, vector website template, vector template, vector int, vector language, vector add, traverse vector, template vectors, template html search, recursively, recursion means, recursion help, recursion function, linked int, input html, html elements, file processor, en save, edi admin, dot int, ct dot, best html template, array template, array vectors, admin cs

About the Employer:
( 358 reviews ) Mutrah, Oman

Project ID: #552492

Awarded to:


Is this task still actual?

$30 USD in 1 day
(1 Review)