Documents
Resources
Learning Center
Upload
Plans & pricing Sign in
Sign Out
Your Federal Quarterly Tax Payments are due April 15th Get Help Now >>

linuxx86 eject devcdrom 42 bytes

VIEWS: 33 PAGES: 1

									                                         linuxx86 eject devcdrom 42 bytes   Page 1/1
  1    ; linux/x86 eject /dev/cdrom 42 bytes
  2    ; root@thegibson
  3    ; 2010−01−08
  4
  5    section .text
  6            global _start
  7
  8    _start:
  9              ; open("/dev/cdrom", O_RDONLY | O_NONBLOCK);
  10             mov al, 5
  11             cdq
  12             push edx
  13             push word 0x6d6f
  14             push dword 0x7264632f
  15             push dword 0x7665642f
  16             mov ebx, esp
  17             mov cx, 0xfff
  18             sub cx, 0x7ff
  19             int 0x80
  20
  21             ; ioctl(fd, CDROMEJECT, 0);
  22             mov ebx, eax
  23             mov al, 54
  24             mov cx, 0x5309
  25             cdq
  26             int 0x80
  27




root@thegibson                                                              01/08/2010

								
To top