Guest User

Untitled

a guest
Nov 11th, 2015
230
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. .code16
  2. .global _start
  3.  
  4. .equ STACK_OFFSET, 0x7C00
  5. .equ ORG_SEGMENT, 0x0
  6.  
  7. .text
  8. _start:
  9. cli
  10. jmp $ORG_SEGMENT, $(asmain)
  11. asmain:
  12. nop
  13. nop
  14. nop
  15. nop
  16.  
  17. xor %ax, %ax
  18. mov %ax, %ss
  19. mov $STACK_OFFSET, %sp
  20. aloop:
  21. mov $0xE, %ah
  22. mov $'!', %al
  23. mov $0x00, %bh
  24. mov $0x3, %bl
  25. int $0x10
  26. jmp aloop
  27.  
  28. .space 510 - (. - _start)
  29. .word 0xaa55
Advertisement
Add Comment
Please, Sign In to add comment