09-23-2004, 07:50 PM | #1 (permalink) |
"Afternoon everybody." "NORM!"
Location: Poland, Ohio // Clarion University of PA.
|
[Assembly] Not Really a Question
I don't know how many of you guys, if any has ever used Assembly, so
I think it's better to ask if any of you guys know any good sources about programming in Assembly, notably, the MASM Assembly Language for Intel IA-32 Machines. Right now, trying to do the Fibonacci Sequence, but I just can't figure out the algorithm, and I'm sure it's because of some syntax I don't know. Figure a good resource site will keep me from asking here and broaden my knowledge base better also. Thanks - Lost in Paradise
__________________
"Marino could do it." |
09-24-2004, 05:38 PM | #2 (permalink) |
I am Winter Born
Location: Alexandria, VA
|
Do you mean nasm?
http://www.csee.umbc.edu/~plusquel/310/slides/nasm.html http://www.drpaulcarter.com/pcasm/index.php Those two sites look like good resources. It's been a little while since I did assembly programming, though it is a great language to learn. |
10-07-2004, 02:22 PM | #3 (permalink) |
Crazy
|
Gavin's Guide is usually quite handy for basic assembler stuff, http://burks.brighton.ac.uk/burks/la...smtut/asm1.htm
and the reference card from: www.jegerlehner.ch/intel is great for command syntax. Hope that helps! Last edited by bubbagumpshrimp; 10-07-2004 at 02:23 PM.. Reason: url typo.... |
10-08-2004, 01:49 PM | #4 (permalink) |
Tilted
Location: reno,nv
|
I learned asm. many moons ago. However since then I learned that time spent writing (and debugging, no program is totaly without debugging) a program is proportional to the number lines of code in the program. Since then I don't touch asm unless it is absolutely necessary. My language of choice is the one that does the most with the fewest lines of code: Basic. If I can't do it there, then it is C or C++.
kevin |
10-12-2004, 12:45 AM | #6 (permalink) |
Upright
Location: Boulder, Colorado
|
A reference that I use quite often is The Art of Assembly
__________________
/K |
10-13-2004, 06:11 AM | #7 (permalink) |
Tilted
|
In my Intro to Computer Systems class (it's a cs class where you learn how the cpu and stuff works in order to better understand how to write better and faster code) we had to learn basic asm and gdb to order to extract "passwords" and perform buffer overflow exploits for homework. I think it's made me a better programmer, but I would never write asm unless it's necessary. Even in our current optimization assignment, we are using pure C and use our knowledge on how the complier works to get the asm code we want. Anyways, I'm kinda biased to say that knowing asm is good for debugging purposes and just understanding how everything works (or writing an OS kernal :P).
Anyways, what's hanging you up with the algorithm? You can do the basic recursion/loop method to get F(n+1) = F(n) + F(n-1). You can also calculate it "directly" by using the explicit formula which is all over the net. The reason i write explicit in quotes is because it would use floating point numbers which would give you rounding and thus would not give you the right answer (hmm maybe if you just rounded to an int it probably would work)
__________________
sometimes it just takes a cat |
10-13-2004, 11:08 AM | #8 (permalink) | |
Addict
|
Quote:
you can find some explicit formulas that are derived using the NINT and FLOOR functions. There's also one using the determinant of a matrix of 0 and 1 entries which could be useful, and a few explicit finite sums. Last edited by phukraut; 10-13-2004 at 11:10 AM.. |
|
Tags |
assembly, question |
|
|