《操作系统》的实验代码。
25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.

15 satır
246 B

  1. # assumes %bx has loop count in it
  2. .main
  3. .top
  4. # critical section
  5. mov 2000, %ax # get the value at the address
  6. add $1, %ax # increment it
  7. mov %ax, 2000 # store it back
  8. # see if we're still looping
  9. sub $1, %bx
  10. test $0, %bx
  11. jgt .top
  12. halt