apm_shutdown.S 321 B

12345678910111213141516171819202122
  1. /* https://github.com/cirosantilli/x86-bare-metal-examples#apm */
  2. #include "common.h"
  3. BEGIN
  4. mov $0x5301, %ax
  5. xor %bx, %bx
  6. int $0x15
  7. /* Try to set apm version (to 1.2). */
  8. mov $0x530e, %ax
  9. xor %bx, %bx
  10. mov $0x0102, %cx
  11. int $0x15
  12. /* Turn off the system. */
  13. mov $0x5307, %ax
  14. mov $0x0001, %bx
  15. mov $0x0003, %cx
  16. int $0x15