Question: this is the assembly code I have but the output for W is coming to = 3 8 when I need it to = 4
this is the assembly code I have but the output for W is coming to when I need it to holding true to the equation WXYPQ: ; INSERT YOUR CODE HERE
ld a;
ld X a;
ld a;
ld Y a;
ld a;
ld P a;
ld a;
ld Q a;
;
; compute for w
ld aX;
ld b a;
ld aY;
add a b;
ld b a;
ld aP;
sub b;
ld b a;
ld aQ;
add a b;
ld W a;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
