SAP interview question

How would you implement atomicity in assembly?