;y= ax^2 +bx + c ;y = 4x^2 + 3x + 2
.model small ;y = 4*2^2+3*2 + 2
.stack 64
.data
a dw 4
b dw 3
c dw 2
x dw 2
y dw ?
.code
dam:mov ax, @data
mov ds,ax
mov ax,x
mul x
mov bx,ax
mov ax,a
mul bx
mov ax,b
mul x
add bx,ax
mov ax,c
add bx,ax
mov y,bx
mov ah,09h
mov dx,y
int 21h
mov ah,4ch
int 21h
end dam
it print in screen someting long and i dont unerstande where is my mistake
Aucun commentaire:
Enregistrer un commentaire