Reference no: EM132214067
Write a subroutine to do the following:
The inputs to the subroutine are a pointer in register Y and an 8-bit number in register B Starting at the address in register Y, clear (set to 0) the number of bytes in memory corresponding to register B For example, if Y is $2000 and B is 8, clear 8 bytes of memory starting at $2000
The subroutine should preserve all registers, and it does not have any return values. Identify each of the following memory technologies:
a. Volatile, requires periodic refresh
b. Volatile, does not require periodic refresh
c. Non-volatile, programmed once
d. Non-volatile, erasable using UV light
e. Non-volatile, electrically erasable (identify two) Diagram the memory map of the following processor:
a. RAM, Flash, and registers: RAM starts at address $0000, 512 bytes Flash starts at address $C000, 4 kbytes Registers start at address $8000, 12 bits of address
For the memory map, show the starting and ending address of RAM, Registers, and Flash.
b. What should be the initial value of the stack pointer when the processor boots up?