
-----------------------------------
MysticVegeta
Fri Dec 16, 2005 12:31 pm

Someone good at Assembly?
-----------------------------------
Well. someoone good/intermediate at ASM? please tell me a good resource to learn it. everything is so confusing...

-----------------------------------
codemage
Fri Dec 16, 2005 1:09 pm


-----------------------------------
Trying to crack some software, or just write low-level code... I wonder... ;)  No matter:

http://www.csn.ul.ie/~darkstar/assembler/ is pretty good.

Keep in mind that assembly is machine dependant.  The tutorial assumes an Intel/PC config.

BTW, assembly is really easy once you wrap your head around it.  There are only about 10 commands/functions.  (It makes it hard to write complex algorithms though.)

-----------------------------------
md
Fri Dec 16, 2005 1:20 pm


-----------------------------------
BTW, assembly is really easy once you wrap your head around it.  There are only about 10 commands/functions.  (It makes it hard to write complex algorithms though.) There are over 300 seperate instructions in x86 machine language (ie. assembler); there are over 10 on all other platforms too, 10 instructions isn't enough to do anything.

-----------------------------------
codemage
Fri Dec 16, 2005 1:57 pm


-----------------------------------
I need to start being more verbose.

...there are only about 10 commands/instructions that you will need to recognize and/or use for the overwhelming majority of code.

You're pretty much either:
setting registers or addresses
moving stuff between registers or addresses
comparing registers
doing jumps
doing basic logic/arithmetic

I think the concepts behind assembly are easier than other languages.
It's just harder to write code because it's so low-level (it takes forever to code the most mundane tasks).

-----------------------------------
MysticVegeta
Sat Dec 17, 2005 11:40 am


-----------------------------------
I know I saw a program in assembly to square a number. the code was so long i was like wtf?

-----------------------------------
md
Sat Dec 17, 2005 1:03 pm


-----------------------------------
I know I saw a program in assembly to square a number. the code was so long i was like wtf?

lhi $1, 0
llo $1, 10
multu $1, $1
mflo $2


Loads "10" into a register, squares it, loads the result into register 2.

-----------------------------------
Martin
Sat Dec 17, 2005 10:48 pm


-----------------------------------
Assembly is really easy. It's just tedious as hell.

-----------------------------------
wtd
Sat Dec 17, 2005 11:19 pm


-----------------------------------
Assembly is really easy. It's just tedious as hell.

Which is why most assemblers have some kind of syntax support for procedures and structs and such.  But eventually you're just coding in a proprietary almost-C.
