Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

What is wrong with this assembly language code. I am trying to evaluate Rval-Xval-Yval - ( Wval - Zval) and save the result in eax

What is wrong with this assembly language code. I am trying to evaluate Rval-Xval-Yval - ( Wval - Zval) and save the result in eax acoording to these instructions: Rval BYTE 0FFh, Xval BYTE 8Fh, Yval BYTE 0C0h, Zval BYTE 0EFh, Wval BYTE 7Eh. My problem is that I get an error saying the instruction operands must be the same size. Here is my code below: (Please help, newbie here):

mov eax, Rval

mov eax, Xva

neg eax

mov eax, Yval

neg eax

mov ebx, Wval

sub ebx, Zval

sub eax,ebx

mov Rval, ebx

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions