Questions about this topic? Sign up to ask in the talk tab.

Difference between revisions of "Assembly"

From NetSec
Jump to: navigation, search
Line 49: Line 49:
  
 
* Intel (dest, src)  
 
* Intel (dest, src)  
* AMD   (src, dest)
+
* ATT   (src, dest)
  
  

Revision as of 16:38, 10 May 2012

  • assembler
  • linker


Data size & hex:

  • counting
  • nybble
  • byte
  • word
  • dword
  • qword


Number handling:

  • signed
  • unsigned
  • 2's compliment


Data storage:

  • register
  • pointer
  • sub-register
  • cpu flag registers
  • architecture-specific registers


Memory Addressing:

  • stack pointer
  • instruction pointer
  • base pointer
  • addressing mode
  • index


Instructions:

Concepts:

  • Assembly & operands -> Opcode Sequence
  • Opcode Sequence -> hardware gates (may interact with ram etc)


Syntaxes:

  • Intel (dest, src)
  • ATT (src, dest)


Data manipulation basic primitives:

  • mov
  • push
  • pop


Basic arithmetic:

  • add
  • sub
  • div
  • mul


Bitwise mathematics:

  • and
  • not
  • or
  • xor


  • shl
  • shr
  • rol
  • ror


Control flow operators:

  • cmp
  • jmp
  • call
  • ret


  • kernel interrupt
  • architecture
  • operating system