include \masm32\include\masm32rt.inc
include <\masm32\include\debug.inc>
includelib <\masm32\lib\debug.lib>
.data
x word 7BEh ; 1982
y byte 7Eh ; 126
z byte -7Eh ; -126
v word ? ; 1997
.code
start:
; (y+2)
mov al, y
cbw
add ax, 2
movsx ebx, ax
add ax,0
PrintDec ebx; 21
; x*(y+2)
mov ax, x
cwde
mul ebx
PrintDec eax; 27
; 3-x
neg eax ;инверсия
add eax, 3 ;сложение
PrintDec eax; 32
mov ecx, eax
add ebx,0
; z-1
mov al, z
cbw
sub ax, 1
movsx ebx, ax
PrintDec ebx; 41
; 3-x(y+2)/z-1
PrintDec ecx
PrintDec ebx
mov eax, ecx
div ebx
PrintDec eax; 48
;inkey "Press any key!"
;invoke ExitProcess, 0
END start