.maintest $1, %ax # ax should be 1 (signaller) or 0 (waiter) je .signaller .waiter mov 2000, %cxtest $1, %cxjne .waiterhalt .signallermov $1, 2000halt