S3C8275X/F8275X/C8278X/F8278X/C8274X/F8274X ADDRESS SPACES
2-9
PROGRAMMING TIP — Using the Page Pointer for RAM Clear (Page 0, Page 1)
LD PP,#00H ; Destination 0, Source 0
SRP #0C0H
LD R0,#0FFH ; Page 0 RAM clear starts
RAMCL0 CLR @R0
DJNZ R0,RAMCL0
CLR @R0 ; R0 = 00H
LD PP,#10H ; Destination 1, Source 0
LD R0,#0FFH ; Page 1 RAM clear starts
RAMCL1 CLR @R0
DJNZ R0,RAMCL1
CLR @R0 ; R0 = 00H
NOTE: You should refer to page 6-39 and use DJNZ instruction properly when DJNZ instruction is used in your program.