Somewhere in the back of my memory is buried the idea that you can do this:

LOCK mov a, %ax
LOCK add $1, %ax
LOCK mov %ax, a

I.e implement a compound indivisible instruction with a sequence of instructions prefixed with LOCK.

Notwithstanding the merits of the idea, does anyone know if this is doable or I am just misremembering?

ron