section .bss
num1 resb 2
num2 resb 2
global _start
section .text
_start:
mov [num1], dword 500
mov [num2], dword 300
sub [num1], dword num2
mov ebx, num1
mov eax, 1
int 80h
sub [num1], dword num2
mov ebx, [num1]
mov ecx, [num2]
sub ebx, ecx