《操作系统》的实验代码。
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

15 řádky
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