Write an assembly program code using NASM assembler to compare two integer variables. If the variables are not equal, find the largest of the two and by how much.