Advertisement
kernel_memory_dump

Untitled

Mar 23rd, 2014
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. .section .data
  2. a:  .quad 0x8000
  3. b:  .quad 018001
  4. greska:  .byte 0
  5. .section .text
  6. .globl main
  7. main:
  8. movl a, %eax
  9. movb $0, greska #No misteka , esta misteka pocetka
  10. addl  b, %eax   #nizi deo a + b
  11.  
  12. movl a+4, %edx
  13. movl b+4 %ecx
  14. adcl  %ecx, %edx
  15. jno kraj
  16. incb greska
  17.  
  18. kraj:
  19.     movl  $1, %eax
  20.     int  $0x80
  21.     nop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement