Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Someone good at Assembly?
Index -> General Programming
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
MysticVegeta




PostPosted: Fri Dec 16, 2005 12:31 pm   Post subject: Someone good at Assembly?

Well. someoone good/intermediate at ASM? please tell me a good resource to learn it. everything is so confusing...
Sponsor
Sponsor
Sponsor
sponsor
codemage




PostPosted: Fri Dec 16, 2005 1:09 pm   Post subject: (No subject)

Trying to crack some software, or just write low-level code... I wonder... Wink 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




PostPosted: Fri Dec 16, 2005 1:20 pm   Post subject: (No subject)

codemage wrote:
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




PostPosted: Fri Dec 16, 2005 1:57 pm   Post subject: (No subject)

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




PostPosted: Sat Dec 17, 2005 11:40 am   Post subject: (No subject)

I know I saw a program in assembly to square a number. the code was so long i was like wtf?
md




PostPosted: Sat Dec 17, 2005 1:03 pm   Post subject: (No subject)

MysticVegeta wrote:
I know I saw a program in assembly to square a number. the code was so long i was like wtf?

MIPS:

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




PostPosted: Sat Dec 17, 2005 10:48 pm   Post subject: (No subject)

Assembly is really easy. It's just tedious as hell.
wtd




PostPosted: Sat Dec 17, 2005 11:19 pm   Post subject: (No subject)

Martin wrote:
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.
Sponsor
Sponsor
Sponsor
sponsor
Display posts from previous:   
   Index -> General Programming
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 8 Posts ]
Jump to:   


Style:  
Search: