; Robert Simoiu, evaluating a + b*c

ASSUME ds:data, cs:code

data SEGMENT
a dw 15
b db 4
c db 6
sol dw ?
data ENDS

code SEGMENT

start:
; bring data segment to ds
mov ax, data
mov ds, ax
; evaluating a + b*c
mov al, b ; al = b
mul c ; ax = b * c
add ax, a ; ax = a + b*c
mov sol, ax ; sol = ax = a + b*c
;terminating the program
mov ax, 4c00h
int 21h
code ENDS

END start 