RosettaCodeData/Task/Mutex/8086-Assembly/mutex.8086

3 lines
130 B
Plaintext

lock inc word ptr [ds:TestData] ;increment the word at TestData. Only this CPU can access it right now.
lock dec byte ptr [es:di]