



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Community
Ask the community for help and clear up your study doubts
Discover the best universities in your country according to Docsity users
Free resources
Download our free guides on studying techniques, anxiety management strategies, and thesis advice from Docsity tutors
pic18fasdaf polar bipolar microcontroller falan filan iste
Typology: Exercises
1 / 7
This page cannot be seen from the preview
Don't miss anything!
Ödev teslim tarihi: 16-Kasım-2019 23: Kayıt Numarası: 1234 Mikroişlemciler (iö)-sınıf numarası: 22851539 Mikroişlemciler (nö)-sınıf numarası: 22851508 Ödevlerde asla intihal yapılmayacaktır. İntihal yapan öğrenciler, fakülte disiplin kuruluna sevk edilecektir.
Location Contents 0x071 0x3A
0x072 0x 0x073 0xA 0x074 0x Assume the W register has the value 0x2C in it, and that initial values of C, Z are both ‘0’. Assume the above memory contents, W register value, initial C, Z values at the START of each instruction. a) xorlw 0x Circle one: W dest. Reg. file dest. New value (hex) ____ C_flag :____ , Z flag:__ b) subwf 0x071, w Circle one: W dest. Reg. file dest. New value (hex) ____ C_flag :____ , Z flag:__ c) movf 0x073, f Circle one: W dest. Reg. file dest. New value (hex) ____ C_flag :____ , Z flag:__ d) btg 0x072, 4 Circle one: W dest. Reg. file dest. New value (hex) ____ C_flag :____ , Z flag:__ e) rrcf 0x073,w Circle one: W dest. Reg. file dest. New value (hex) ____ C_flag :____ , Z flag:__
Write a PIC18 assembly code fragment to implement the following. The code of the loop body has been left intentionally blank; I am only interested in the comparison test. For the loop body code, just use a couple of dummy instructions so I can see the start/begin of the loop body. signed char i, k;
do { ...operation 1... ...operation 2... }while (k >= i);