This forum is in archive mode. You will not be able to post new content.

Author Topic: a little question about x86 asm programming  (Read 2204 times)

0 Members and 1 Guest are viewing this topic.

Offline gh0st

  • Sir
  • ***
  • Posts: 575
  • Cookies: 8
  • #DEDSec
    • View Profile
a little question about x86 asm programming
« on: July 08, 2011, 07:37:20 AM »
guys well Im new in ASM so I downloaded FASM to starting to learn but I think that Im going in the wrong way cause what I need is to learn to program x86 assembly stuff can anyone please orient me a bit I would really appreciate it thanks in advance 

Offline ande

  • Owner
  • Titan
  • *
  • Posts: 2664
  • Cookies: 256
    • View Profile
Re: a little question about x86 asm programming
« Reply #1 on: July 08, 2011, 03:02:32 PM »
Moved to correct board. This is no 'Random board' post :P

Okay, so. ASM, Assembly, x86 Assembly, x64 Assembly and FASM is all Assembly language. If you can code in any one of those, you are on a good start.

The difference is; ASM is a common term for x86-64 Assembly, same goes for only the word Assembly, if you do not specifies which one(86, 64) it applies for both. FASM is a ASM or Assembly assembler. It translates the Assembly instructions into machine code, or bytes/bits.

Like someone already replied to you in another topic, there are various Assembly "types", because anyone can make a Assembly assembler. Some are good, some are bad, some are like the others and so forth. Its like buying milk, there are plenty of companies that makes it, you have to find the one you like.

The various assemblers are FASM, MASM, NASM, TASM. And I am sure there are plenty more smaller ones.

MASM is microsoft's assembler and is a bit(rather much) difference from the others, but then again. There are many small differences, I would maybe suggest you don't go with MASM, simply because its the one standing out the most. On the other hand, its possibly the best documented one? Not sure, I am no Assembly coder myself, but I know a thing or two.

Cheers.
if($statement) { unless(!$statement) { // Very sure } }
https://evilzone.org/?hack=true

Offline ca0s

  • VIP
  • Sir
  • *
  • Posts: 432
  • Cookies: 53
    • View Profile
    • ka0labs #
Re: a little question about x86 asm programming
« Reply #2 on: July 09, 2011, 01:43:11 AM »
For learning, I suggest you to read Intel's manual. A hard read, yes, but a lot of knoweldge. Then, choose a platform to start with. x86/x64/motorola/16bits, etc. The most comfortable will be the one you are using. Then, an assembler. As ande said, there are a lot of them. For windows, MASM will simplify all things (invokes, MS api, etc). But if you are looking for knoweldge and learning how to do things yourself and how it works at low level, any other woule be better. NASM/FASM.
Read examples, find tuts, try to code simple things and keep on moving to harder ones. I am learning ASM now, and it is the way I am following.

xor

  • Guest
Re: a little question about x86 asm programming
« Reply #3 on: July 09, 2011, 07:17:07 AM »
I started out with NASM and there's also a default one built into linux which was good but the name eludes me at the moment.

Offline ca0s

  • VIP
  • Sir
  • *
  • Posts: 432
  • Cookies: 53
    • View Profile
    • ka0labs #
Re: a little question about x86 asm programming
« Reply #4 on: July 09, 2011, 01:09:31 PM »
here's also a default one built into linux which was good but the name eludes me at the moment.
GAS?

Offline petermlm

  • Knight
  • **
  • Posts: 226
  • Cookies: 7
  • Information is Power
    • View Profile
    • Security Check
Re: a little question about x86 asm programming
« Reply #5 on: July 15, 2011, 07:55:54 PM »
I learned assembly at university. I started with MIPS architecture, and with the MARS simulator witch is very good to learn. By learning MIPS it will be easier to move on to the Intel architectures.

 



Want to be here? Contact Ande, Factionwars or Kulverstukas on the forum or at IRC.