MOVLW d'10' MOVWF A1 MOVLW d'7' MOVWF A2 INCF A1 DEC A2 CLRW ADDLW d'5' ADDWF A1,F SUBLW d'9' SUBWF A2,W

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

MOVLW d'10' MOVWF A1 MOVLW d'7' MOVWF A2 INCF A1 DEC A2 CLRW ADDLW d'5' ADDWF A1,F SUBLW d'9' SUBWF A2,W

Post by answerhappygod »

Movlw D 10 Movwf A1 Movlw D 7 Movwf A2 Incf A1 Dec A2 Clrw Addlw D 5 Addwf A1 F Sublw D 9 Subwf A2 W 1
Movlw D 10 Movwf A1 Movlw D 7 Movwf A2 Incf A1 Dec A2 Clrw Addlw D 5 Addwf A1 F Sublw D 9 Subwf A2 W 1 (10.74 KiB) Viewed 63 times
From instruction , show value in the register file involvedof each instruction and the final value for A1, A2, WorkingRegister (W) after completing all instructions
MOVLW d'10' MOVWF A1 MOVLW d'7' MOVWF A2 INCF A1 DEC A2 CLRW ADDLW d'5' ADDWF A1,F SUBLW d'9' SUBWF A2,W
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply