winのNASMで、

xchg [ebp],al
mov [ebp+1],ah

と書いたら不正終了して

mov ah,[ebp]
mov [ebp],ax

に直したら動いたんだが、プロテクトモードの制限か何か?