pls see the file. thanks Due Date : Nov.26,2012 Time EST (

pls see the file. thanks Due Date : Nov.26,2012 Time EST (Eastern Standard Time ) 6.00 PM SPARC Architecture, Assembly Language Programming Part A Write a program to calculate the first 20 numbers of Fibon Document Preview: Due Date : Nov.26,2012 Time EST (Eastern Standard Time ) 6.00 PM SPARC Architecture, Assembly Language Programming Part A Write a program to calculate the first 20 numbers of Fibonacci series. Use the stack (memory) to store the calculated series. Your debugger output should look like the following screenshot. Part B Modify the program matrixmul.s to add two matrices and store it in a third matrix. Your output should show all three matrices in memory. Note : Make sure you DO NOT Copy & Paste the above snapshot. You have to make the snapshot of your own program. Please send this with assembly code and a snapshot of debugger session with all important output. Thanks.Part -C Modify the subroutine to add two complex numbers (Slide -1) to multiply two complex numbers. Your debugger output should be in the format shown in Slide -2.The product of two complex numbers a + ib and c + id is given by (ac bd) + i(bc + ad) Slide -1 /** struct complex complex add(struct complex* c1, struct complex* c2) { struct complex c; c.re = c1->re + c2->re; c.im = c1->im + c2->im; return c; } **/ .global complex add complex add: save %sp, -96, %sp ld [%fp + 64], %l0 !add and store real part ld [%i0 + re offset], %o0 ld [%i1 + re offset], %o1 add %o0, %o1, %o0 st %o0, [%l0 + re offset] !add and store im part ld [%i0 + im offset], %o0 ld [%i1 + im offset], %o1 add %o0, %o1, %o0 st %o0, [%l0 + im offset] ret restore Slide -2 is bellow /** main() { struct complex c, c1, c2; c1 = complex set(1,2); c2 = complex set(2,3); c = complex add(&c1, &c2); } **/ Slide -2 .global main main: save %sp, (-92+str3 offset)&-8 , %sp !initialize the first structure add %fp, str1 offset, %l0 st %l0, [%sp+64] mov 1, %o0 mov 2, %o1 call complex set nop !initialize the second structure add %fp, str2 offset, %l1 st %l1, [%sp+64] mov 2, %o0 mov 3, %o1 call complex set Attachments: Assembly-Lang.doc; pls see the file. thanks Due Date : Nov.26,2012 Time EST (Eastern Standard Time ) 6.00 PM SPARC Architecture, Assembly Language Programming Part A Write a program to calculate the first 20 numbers of Fibon Document Preview: Due Date : Nov.26,2012 Time EST (Eastern Standard Time ) 6.00 PM SPARC Architecture, Assembly Language Programming Part A Write a program to calculate the first 20 numbers of Fibonacci series. Use the stack (memory) to store the calculated series. Your debugger output should look like the following screenshot. Part B Modify the program matrixmul.s to add two matrices and store it in a third matrix. Your output should show all three matrices in memory. Note : Make sure you DO NOT Copy & Paste the above snapshot. You have to make the snapshot of your own program. Please send this with assembly code and a snapshot of debugger session with all important output. Thanks.Part -C Modify the subroutine to add two complex numbers (Slide -1) to multiply two complex numbers. Your debugger output should be in the format shown in Slide -2.The product of two complex numbers a + ib and c + id is given by (ac bd) + i(bc + ad) Slide -1 /** struct complex complex add(struct complex* c1, struct complex* c2) { struct complex c; c.re = c1->re + c2->re; c.im = c1->im + c2->im; return c; } **/ .global complex add complex add: save %sp, -96, %sp ld [%fp + 64], %l0 !add and store real part ld [%i0 + re offset], %o0 ld [%i1 + re offset], %o1 add %o0, %o1, %o0 st %o0, [%l0 + re offset] !add and store im part ld [%i0 + im offset], %o0 ld [%i1 + im offset], %o1 add %o0, %o1, %o0 st %o0, [%l0 + im offset] ret restore Slide -2 is bellow /** main() { struct complex c, c1, c2; c1 = complex set(1,2); c2 = complex set(2,3); c = complex add(&c1, &c2); } **/ Slide -2 .global main main: save %sp, (-92+str3 offset)&-8 , %sp !initialize the first structure add %fp, str1 offset, %l0 st %l0, [%sp+64] mov 1, %o0 mov 2, %o1 call complex set nop !initialize the second structure add %fp, str2 offset, %l1 st %l1, [%sp+64] mov 2, %o0 mov 3, %o1 call complex set Attachments: Assembly-Lang.doc

Use the order calculator below and get started! Contact our live support team for any assistance or inquiry.

[order_calculator]
CategoriesUncategorized