Programming.

quest

Master Don Juan
Joined
Nov 15, 2003
Messages
1,179
Reaction score
0
hey guys.

i've gotto write code in assembly language which can perform mathmetical functions.

multiply, divide, square, squareroot, exponential and factorial.

i don't really know where to start or where to go for help?
hoping someone can help me out.
cheers guys :)
 

spider_007

Master Don Juan
Joined
Mar 23, 2005
Messages
3,073
Reaction score
16
Location
ontario
what you need to do is add the square root of the coeficient of the subassambly to the result of the second assably sqared.:D

NEEERRRRDDDDD ALERT!!!!!!!

Go find some chicks to play with
 

flyinshark

Senior Don Juan
Joined
Mar 21, 2005
Messages
483
Reaction score
3
Location
Canada
I have already programmed in SPIM (or MIPS), which was an assembly language. You can do a google search for SPIM and download it if u want. Documentation is also available online.
 

Do not be too easy. If you are too easy to get, she will not want you. If you are too easy to keep, she will lose interest in you. If you are too easy to control, she will not respect you.

Quote taken from The SoSuave Guide to Women and Dating, which you can read for FREE.

Daral

Don Juan
Joined
Mar 11, 2005
Messages
25
Reaction score
0
Location
NC
Yeah, the solution is going to vary from instruction set to instruction set. In some languages mult and div are provided for already...

But I agree with everyone above. RTFM, and then come back when you have a more specific question.
 

quest

Master Don Juan
Joined
Nov 15, 2003
Messages
1,179
Reaction score
0
Originally posted by Daral
Yeah, the solution is going to vary from instruction set to instruction set. In some languages mult and div are provided for already...

But I agree with everyone above. RTFM, and then come back when you have a more specific question.
i'm not sure what RTFM means.

but its written in kel(micro) vision. (or something like that).

its the same as MIPS with how the addition/subtraction is.

i have to use them along with jumps and loops or whatever to perform the other maths functions.
 

check_mate_kid_uk

Master Don Juan
Joined
Jun 27, 2004
Messages
2,083
Reaction score
4
Location
UK
damn that sucks, and to think i complain about having to do it in some 3rd genration language!
 

Gus

Senior Don Juan
Joined
Jan 16, 2003
Messages
235
Reaction score
0
Location
Florida
RTFM = Read the Fukin Manual

along with jumps and loops or whatever
Are you sure you know what you're getting into? Assembly is very unforgiving, hard, and complicated...
 

rgeere

Master Don Juan
Joined
May 25, 2003
Messages
1,930
Reaction score
1
Location
Fort Worth, Texas
Originally posted by derEikopf
RTFM = Read the Fukin Manual


Are you sure you know what you're getting into? Assembly is very unforgiving, hard, and complicated...
This is very untrue, assembler is actually very easy .. it is just people give up before they can really program anything with it. You must be patient if you are going to code in assembly, and you have to take the time to experiment and learn what the diffrent instructions do and how they interact with the other instructions.
 

Peace and Quiet

If you currently have too many women chasing you, calling you, harassing you, knocking on your door at 2 o'clock in the morning... then I have the simple solution for you.

Just read my free ebook 22 Rules for Massive Success With Women and do the opposite of what I recommend.

This will quickly drive all women away from you.

And you will be able to relax and to live your life in peace and quiet.

flyinshark

Senior Don Juan
Joined
Mar 21, 2005
Messages
483
Reaction score
3
Location
Canada
Ok ... assembly is not that hard to learn. But it's really a pain in the ass to debug and find your mistakes. Not to mention that it takes like 4-5 instructions to do what you would have done in 1 instruction in a higher level language, hence ridiculously long code for simple applications.
 

rgeere

Master Don Juan
Joined
May 25, 2003
Messages
1,930
Reaction score
1
Location
Fort Worth, Texas
Originally posted by flyinshark
Ok ... assembly is not that hard to learn. But it's really a pain in the ass to debug and find your mistakes. Not to mention that it takes like 4-5 instructions to do what you would have done in 1 instruction in a higher level language, hence ridiculously long code for simple applications.
The code is rediculously long, but it is also much more efficent. You also know enough so that after you have learned to program well in assembler you can switch back to a higher level compiler and even learn to tweek the deficencies of coding in higher level code.
 

SELF-MASTERY

Banned
Joined
Dec 15, 2004
Messages
1,975
Reaction score
7
I am so glad I got of computer science.
 

quest

Master Don Juan
Joined
Nov 15, 2003
Messages
1,179
Reaction score
0
Originally posted by spider_007
what you need to do is add the square root of the coeficient of the subassambly to the result of the second assably sqared.:D

NEEERRRRDDDDD ALERT!!!!!!!

Go find some chicks to play with
firstly, i couldn't be bothered with this clown last night.

i'm doing something that i enjoy (for the most part).
i'm doing it at university level, so hopefully it'll lead me into a good job.

and beleive me, when i "find chicks to play with" they are very enthusiastic about a good looking, fun guy, who is studying computer engineering.

but thats enough about that.

i ended up acing the test. but it wasn't on any of this. but it could have been :)
 
Top