Introducing ASM instructions


SUBMITTED BY: vapooooo

DATE: March 19, 2020, 6:14 p.m.

FORMAT: NASM

SIZE: 563 Bytes

HITS: 473

  1. # use # for comment your code
  2. mov = MOVE register value/value to another register : mov eax, ebx == eax = ebxw
  3. add = ADD to register a value : add eax, 9 == eax += 9
  4. sub = SUB to register a value : sub eax, 9 == eax -= 9
  5. inc = INCREMENT register : inc eax == eax++/eax += 1
  6. dec = DECREMENT register : dec eax == eax--/eax -+ 1
  7. xor = CLEAR register : xor eax == eax = 0/eax = NULL
  8. Now, we can manipulate numbers into registers !
  9. mov eax, 10 # we can move also numbers
  10. mov ebx, eax
  11. add ebx, 10 # ebx = 20
  12. dec ebx # ebx = 19
  13. xor ebx # ebx = 0/null

comments powered by Disqus