Im having trouble with this program. It is suppose to calculate 3(adsbygoogle = window.adsbygoogle || []).push({});

call getPos ;AX = a (user input)

M1 dw ?

mov M1, AX ;M1 = a

call crlf

call getPos ;AX = b (user input)

M2 dw ?

mov M2, AX ;M2 = b

call crlf

call getPos ;AX = c (user input)

M3 dw ?

mov M3, AX ;M3 = c

call crlf

mov BX, 2 ;BX = 2

mov CX, 3 ;CX = 3

mov DX, 4 ;DX = 4

mov AX, M1 ;AX = a

mul CX ;AX= 3*a

mov SI, AX ;SI = 3a

mov AX, M3 ;AX = M3

mul DX ;AX = 4*c

mov DI, AX ;DI = 4c

sub SI, DI ;3a-4c

mov AX, SI ;AX = 3a-4c

call putPos ;the sum (being in AX) is displayed

mov ah, 04c

int 021

include ioSubs.inc

**Physics Forums | Science Articles, Homework Help, Discussion**

Dismiss Notice

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Assembly Programming help

**Physics Forums | Science Articles, Homework Help, Discussion**