《操作系统》的实验代码。
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
166 B

  1. .main
  2. test $1, %ax # ax should be 1 (signaller) or 0 (waiter)
  3. je .signaller
  4. .waiter
  5. mov 2000, %cx
  6. test $1, %cx
  7. jne .waiter
  8. halt
  9. .signaller
  10. mov $1, 2000
  11. halt