USING EMU8086 PLEASE Write a program in assembly language th

USING EMU8086 PLEASE

Write a program in assembly language that define three variables A, B, and R in the data segment then find the result of the following equation, then store it in R variable. A, B, and R are data byte length. R = (A^2 + B^3)/7 Template: you should use the following template to write your program.

Solution

.model small

.data

A DB 4

B DB 6

R DB ?

.code

MOV AL,[A]

MOV BL,[A]

MUL BL

MOV DL,AL

MOV AL,[B]

MOV BL,[B]

MUL BL

MUL BL

ADD AL,DL

MOV BL,7

DIV BL

MOV [R], AL

end

USING EMU8086 PLEASE Write a program in assembly language that define three variables A, B, and R in the data segment then find the result of the following equa

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site