2 ; Copyright (C) 2008 Alexander Potashev
4 ; Exchange of 2 top words in the stack, all registers saved
22 ;-----------------------
23 push ax ; save all registers which will be used
26 mov bp, sp ; using "bp" to access stack variables
28 mov ax, [bp + 4] ; exchange
32 pop bp ; restore registers
34 ;-----------------------