Question: Given the following code in assembly: bit.b#0x08, &P1IN jne Active jmp NotActive Active:; various code for Active case jmp Done NotActive: ; various code for

Given the following code in assembly:

bit.b#0x08, &P1IN

jne Active

jmp NotActive

Active:; various code for Active case

jmp Done

NotActive:

; various code for other case

Done:

1. What Port pin is tested in this code? _______

2. What state must that port pin be in (HIGH or LOW) to reach the label Active:? ___________

Given the following code:

Below are portions of a list file.

189 00C0CA 3C4000E0 mov #PatternTable1, R12

;;>>> some code left out in interest of space

269 00E000 PatternTable1

270 00E000 FCRow0DB%11111100

271 00E001 D3Row1DB%11010011

272 00E002 A6Row2DB%10100110

3. What value is contained in R12 after the following line(189) executes? 0x___________

4. What is the starting address of the table (PatternTable1) shown below?

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!