Question
Determine the machine code for each of the following instructions. Give the answers in hex. a) return b) brw c) clrw d) addlw 20 e)
Determine the machine code for each of the following instructions. Give the answers in hex.
a) return
b) brw
c) clrw
d) addlw 20
e) andlw 0x0F
f) movlb 4
g) movlw high Data_Array ; (Data_Array is at address 0x2200.)
h) swapf PORTB,F
i) subwf PORTA,W
j) movwf CCP1CON
k) movf ADRESL,W
l) decfsz Count,F ; (Count is at address 0x24.)
m) bsf ADCON0,ADGO
n) bcf T1CON,TMR1ON
o) btfsc PORTC,3
p) skpz
q) bcf WPUC,6
r) bra $-3
s) bra $+3
t) call Read_Input ; (Read_Input is at address 0x0127.)
u) goto Main ; (Main is at address 0x0005.)
v) movf INDF0,W
w) moviw --INDF1
x) movwi 5[INDF0]
y) addfsr 1,8
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started