we have been working in food service ( kitchen ) for a while some are doing customer service, food service, and food production. We have to pick a topic that is related to food service that can teach trainers how to deal with these situations while working. i have picked a (allergy vs intolerance ) and I have to do an outline.
EGCP 280- Microcontrollers
LAB #3 Report
Name:
Date:
Delete this section.
• Body text must be Times new roman, font 12.
• Please crop your screenshots to show relevant sections legibly.
• Organize your report in the same sequence as the deliverables listed, maintain the same
section numbering.
1.
Part A: CMP
Write a code to use cmp and compare the following integers M and N, and briefly
describe what changes you observe on N, Z and C. Insert relevant screenshots.
(a) M = N
(b) M > N
(c) M < N
Part B: Stack Operations
2. Store two values on to the stack. By how many bytes did you observe the stack pointer
change? Did it decrease or increase? Use the stack pointer value to observe the stack
(memory browser). Insert relevant screenshots.
3.
Use LDR to load the two stored values from the stack onto local registers. Add them and
store the result back onto the stack using STR.
Note:
The stack pointer (SP) must always be reset to the initial value it was at when you started your assembly
code. To do so, you must ensure that there are as many pops as pushes by the end of the code. You are
pushing 3 values on to the stack in the code above, so make sure you have 3 pops at the end of the code
before you return to the C code.
SP must only be changed with ‘push’ and ‘pop’. Use the same LDR/STR rules from previous lab to dereference SP and load/update the contents on/from a local register.