%include "rw32.inc" section .text main: ; Load variables from user call ReadInt32_Silent mov ebx, eax ; X call ReadInt32_Silent mov edx, eax ; Y ; X-Y mov eax, ebx sub eax, edx call WriteInt32 call WriteNewLine ; -X+Y => Y-X mov eax, edx sub eax, ebx call WriteInt32 call WriteNewLine ; -X-Y mov eax, ebx neg eax sub eax, edx call WriteInt32 call WriteNewLine ret