.Datainicio DD 0var1 DD 5 ;modificarvar2 DD 4 ;modificarresultado DD 1suma DD 43resta DD 45igual DD 61show DD 1.Codestart: Push - 11 Invoke GetStdHandle Push 0, Addr inicio Push 2, Addr show Mov Bx, [var1] Add Bx, 30H Mov [show], Bx Push Eax Call WriteFile Push - 11 Invoke GetStdHandle Push 0, Addr inicio Push 2, Addr resta Push Eax Call WriteFile Push - 11 Invoke GetStdHandle Push 0, Addr inicio Push 2, Addr show Mov Bx, [var2] Add Bx, 30H Mov [show], Bx Push Eax Call WriteFile Push - 11 Invoke GetStdHandle Push 0, Addr inicio Push 2, Addr igual Push Eax Call WriteFile Push - 11 Invoke GetStdHandle Push 0, Addr inicio Push 1D, Addr resultado Mov Bx, [var2] Mov Cx, [var1] Sub Cx, Bx Add Bx, 30H Mov [resultado], Bx Push Eax Call WriteFile Ret
Mov Bx, [var2] Mov Cx, [var1] Sub Cx, Bx Add Bx, 30H Mov [resultado], Bx