I am new to this lang.
Write an assembly language program expr.m to compute:
y = 3x^4 + 5x^3 – 17x^2 +33x - 15
where x=3. Eliminate all nop instructions and run the program using gdb.
I tried but i can't get it done....someone please help
I ti
Assembly Language Help Needed
Started by dsptl, Jun 15 2009 09:33 AM
7 replies to this topic
#1
Posted 15 June 2009 - 09:33 AM
|
|
|
#2
Posted 15 June 2009 - 09:40 AM
Which version of assembly are you using? What do you have so far?
#3
Posted 15 June 2009 - 11:07 AM
this is my 1st ever assembly prgm
we use SSH
we use SSH
#4
Posted 15 June 2009 - 11:22 AM
You don't understand. Assembly for ARM is very different from assembly for Pentiums. Assembly is not a single language, it is a family of languages. SSH is how you are connecting to to computer you are programming on, not the code you have.
#5
Posted 15 June 2009 - 12:41 PM
here is what i did:
define(x_r, l0)
define(y_r, l1)
.global main
main:
mov 3, %x_r
then i dont know wht to do......and i am using pico text editor
define(x_r, l0)
define(y_r, l1)
.global main
main:
mov 3, %x_r
then i dont know wht to do......and i am using pico text editor
#6
Posted 15 June 2009 - 06:25 PM
SPARC assembly?
This is homework. You can't figure out where to start? You could try writing it out in another language first or just writing out how the program will flow in your own words. That way you can get your head straight.
This is homework. You can't figure out where to start? You could try writing it out in another language first or just writing out how the program will flow in your own words. That way you can get your head straight.
#7
Posted 16 June 2009 - 06:43 AM
y = 3x^4 + 5x^3 – 17x^2 +33x - 15 means
y=3*x*x*x*x + 5*x*x*x - 17*x*x + 33*x - 15
y=3*x*x*x*x + 5*x*x*x - 17*x*x + 33*x - 15
#8
Posted 16 June 2009 - 07:11 AM
WingedPanther said:
y = 3x^4 + 5x^3 – 17x^2 +33x - 15 means
y=3*x*x*x*x + 5*x*x*x - 17*x*x + 33*x - 15
y=3*x*x*x*x + 5*x*x*x - 17*x*x + 33*x - 15
thanks i have got it.....


Sign In
Create Account


Back to top










