כותרת: you are right but slow
hii
you answer with push and pop , nice but slower …
if you compare it to xchg or to Venndigram´s answer:
the problem with Venndigram´s answer that you need another register… the problem with your answer that pop is kinda slow … , another thing . size bytes .: xchg 2 bytes
the moves answer – 3 mov , every mov 2 bytes = 6 bytes
push and pop each one of them 1 byte * 4 =4 bytes ,.
bye
Alon