Assignment
Assignment
1. A given ARM chip has the following address assignments. Calculate the
space and the amount of memory given to each section.
a) Address range of 0x00100000 – 0x00100FFF for EEPROM
b) Address range of 0x40000000 – 0x40007FFF for SRAM
c) Address range of 0x00000000 – 0x0007FFFF for Flash
d) Address range of 0xFFFC0000 – 0xFFFFFFFF for peripherals
2. Find the address space range of each of the following memory of an ARM
chip:
a) 2 KB of EEPROM starting at address 0x80000000
b) 16 KB of SRAM starting at address 0x90000000
c) 64 KB of Flash ROM starting at address 0xF0000000
3. State the contents of RAM locations 0x92 to 0x96 after the following
program is executed:
4. State the contents of R2, R1, and memory location 0x20 after the following
program:
(a)AREA b) c)
E2_7A,READONLY,CODE AREA AREA
ENTRY E2_7B,READONLY,CODE E2_7C,READONLY,CODE
ADR R2,DTA ENTRY ENTRY
LDRB R0,[R2] ADR R2,DTA ADR R2,DTA
ADD R1,R1,R0 LDRB R0,[R2] LDRB R0,[R2]
H1 B H1 ADD R1,R1,R0 ADD R1,R1,R0
DTA DCB 0x55 H1 B H1 H1 B H1
DCB 0x22 DTA DCB 0x55 DTA DCB 0x55
END ALIGN 2 ALIGN 4
DCB 0x22 DCB 0x22
END END
Assignment-2
b) LDR R2,=0xFFFFFFFF
ADDS R1,R2,#0x95
a)
MOV R2,#0x4F ;R2 = 0x4F
MOV R3,#0x39 ;R3 = 0x39
SUBS R4,R2,R3 ;R4 = R2 – R3
b)
MOV R2,#0x4F ;R2 = 0x4F
SUBS R4,R2,#0x05 ;R4 = R2 – 0x05
7.