Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
10/29/04 05:49
Read: times


 
#79977 - startup code
hi
i want to enable the On-chip xdata on the P87C51RD+.
I have made the following changes in the startup.a51.
	NAME	?C_STARTUP
?C_C51STARTUP	SEGMENT   CODE
?STACK		SEGMENT   IDATA
		RSEG	?STACK
		DS	1
		EXTRN CODE (?C_START)
		PUBLIC	?C_STARTUP
		CSEG	AT	0
?C_STARTUP:	LJMP	STARTUP1
		RSEG	?C_C51STARTUP
STARTUP1:
		ANL     0B1h, #01h      ; CLEAR XMAP0 (enabling F800-FFFF XRAM)
IF IDATALEN <> 0
		MOV	R0,#IDATALEN - 1
		CLR	A
IDATALOOP:	MOV	@R0,A; my code stuck in the loop
		DJNZ	R0,IDATALOOP;
ENDIF

regards
Farhan

List of 3 messages in thread
TopicAuthorDate
startup code            01/01/70 00:00      
   RE: startup code            01/01/70 00:00      
   RE: startup code            01/01/70 00:00      

Back to Subject List