Question: PIC18 Simulator : Suppose you have a simulation in which you store 5 different literal values in 5 different registers: Registers are: 0x001 0x07f 0x08f

PIC18 Simulator: Suppose you have a simulation in which you store 5 different literal values in 5 different registers:

Registers are:

0x001

0x07f

0x08f

0x401

0xfff

your then clear TRISB, and store the value of 55 into PORTB

You then use the END command, followed by SLEEP to end the process

A total of 16 instructions including "END"

(I have the above part done)

What I would like to get help with is:

-If command ORG with register 20 is added to the very top of the Assembler, what can be observed in the first line in the disassembler?

-Now change ORG to the last address space available in the Program Memory. What is that line in the Program Memory Editor, and what is the register value and address?

-What is the last line in the Program Memory that can be used to write this code and make it run? Why does that line work?

Thanks!

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 Programming Questions!