Hi,
I have an exam in a few weeks and two of the mock exam questions are slightly confusing. Ive attempted to answer them but can you tell me if I have it right please.
1.
What is the significance of the Stack locations 000h, 004h and 005 to 07FFh.
Ive attached a picture of the relevant section of the datasheet.
Is the answer to the first part, that stack locations 000h to 004h are used for the reset vector, which means that the program can start between these four memory locations, which is defined in "ORG" at the start of the code.
In answer to the second question, this is all "on chip memory". This is where the compiled assembly program (hex file) will be stored.
2.
What is the significance of Bank 0 to Bank 3, and how does the user access them?
Bank 0-3 contain all of the file registers for the data memory. I dont really understand the last part of the question.
In which registers is the user able to store user specific data
Is it in the general purpose register? For example 20h.
Any help would be appreciated,
James
I have an exam in a few weeks and two of the mock exam questions are slightly confusing. Ive attempted to answer them but can you tell me if I have it right please.
1.
What is the significance of the Stack locations 000h, 004h and 005 to 07FFh.
Ive attached a picture of the relevant section of the datasheet.
Is the answer to the first part, that stack locations 000h to 004h are used for the reset vector, which means that the program can start between these four memory locations, which is defined in "ORG" at the start of the code.
In answer to the second question, this is all "on chip memory". This is where the compiled assembly program (hex file) will be stored.
2.
What is the significance of Bank 0 to Bank 3, and how does the user access them?
Bank 0-3 contain all of the file registers for the data memory. I dont really understand the last part of the question.
In which registers is the user able to store user specific data
Is it in the general purpose register? For example 20h.
Any help would be appreciated,
James