Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please show your work by filling in all blanks and then filling in data value in the memory addresses listed. Copy the code to a

Please show your work by filling in all blanks and then filling in data value in the memory addresses listed. Copy the code to a new project in MPLABX and use simulator if you need help.

__config 0xFFF9 ;watchdog is turned off

status equ 0x03

fsr equ 0x04

indf equ 0 ; if a value of 0 is given as an address the FSR is used.

pcl equ 0x02

z equ 2

org 00

goto main

org 0x20

main

movlw 0x30 ; wreg = ___________________

movwf fsr ; fsr = _______________________

decf fsr,1 ;fsr = __________________ wreg = ___________________

movlw 0xAA ; wreg = ___________________

movwf indf ;fsr _____ wreg =_______ memory address written______ value written ___________

movlw 0xAA ; wreg = ___________________

xorwf indf,0 ; wreg = ___________________

btfss status,z ;value of Z bit _______

decf fsr,1 ;skipped yes or no____________________

incf fsr,1 ; fsr___________________

movwf indf ; fsr _____ wreg =_______ memory address written______ value written ___________

incf indf,0 ; fsr = __________value at address fsr___ wreg = ____ (NOTE DESTINATION BIT!)

incf fsr,1 ;fsr____________

movwf indf ; fsr _____ wreg =_______ memory address written______ value written ___________

call table ;returned value wreg__________

incf fsr,1 ;fsr _________

movwf indf fsr _____ wreg =_______ memory address written______ value written ___________

loop

nop

goto loop

table

addwf pcl,1

retlw 0x52

retlw 0x11

retlw 0x32

end

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

Recommended Textbook for

Pro SQL Server Wait Statistics

Authors: Enrico Van De Laar

1st Edition

1484211391, 9781484211397

More Books

Students also viewed these Databases questions

Question

What is the difference between Needs and GAP Analyses?

Answered: 1 week ago

Question

What are ERP suites? Are HCMSs part of ERPs?

Answered: 1 week ago