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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
10/24/03 17:04
Read: times


 
#57168 - RE: what wrong in my program
Responding to: ???'s previous message
Hi Giri,
There are a lot of things wrong with your program.
The first step in solving your problems is to get
things into order. Displaying formatted text on the
forum requires that you be a log-in registered
member and the use of the (pre-/pre) html language.
I cleaned up your program with Microsoft Notebook and
redisplayed it below.
Regards,
Charles Bannister
YOUR PROGRAM
           
                ORG  00H
		MOV    	00H, #08H   ;COUNTER
		MOV  	02H, #02H
		MOV  	ACC, #0C0H
		PUSH 	ACC 
		MOV  	ACC, #0E1H
		PUSH 	ACC 
PROSES_0: 	POP    	ACC
              	MOV    	P2, ACC     ; CHECK CONTENT ACC
              	CJNE   	A, #00H, PROSES_1
              	JMP    	PROSES_0
PROSES_1: 	JNB    	ACC.7, PUTER_01
              	JMP    	MULAI_0
PUTER_0: 	RL     	A                
                DJNZ   	00H, PROSES_1
                JMP    	NEXT_DATA
MULAI_0: 	MOV    	03, #00H
MULAI_1: 	INC    	03H         ;RESULT PROSES 
MULAI_2: 	MOV    	C, ACC.7
              	MOV    	P0.2, C      
              	RL     	A
              	DJNZ   	00H, LAGI_01              
              	JMP    	NEXT_DATA
LAGI_01: 	MOV    	C, ACC.7
              	MOV    	P0.3, C      
              	ANL    	C, P0.2     
              	MOV    	P0.4, C      
              	CPL    	P0.2        
              	CPL    	P0.3       
              	MOV    	C, P0.3                             
              	ANL    	C, P0.2     
              	ORL    	C, P0.4           
              	JNC    	CONVERT_0   
              	JMP    	MULAI_1
NEXT_DATA: 	POP    	ACC
              	CJNE   	A, #00H, NEXT_DATA_1
              	JMP    	CONVERT_0
NEXT_DATA_1: 	MOV    	00H, #08H
              	JMP    	LAGI_01    
CONVERT_0: 	MOV    	P1, 03H
                END


List of 12 messages in thread
TopicAuthorDate
what wrong in my program            01/01/70 00:00      
   RE: what wrong in my program            01/01/70 00:00      
   RE: what wrong in my program            01/01/70 00:00      
      RE: Vectors            01/01/70 00:00      
   RE: what wrong in my program            01/01/70 00:00      
   RE: what wrong in my program            01/01/70 00:00      
   RE: what wrong in my program            01/01/70 00:00      
   RE: what wrong in my program            01/01/70 00:00      
      RE: what wrong in my program            01/01/70 00:00      
      RE: what wrong in my program            01/01/70 00:00      
         RE: what wrong in my program            01/01/70 00:00      
            RE: what wrong in my program            01/01/70 00:00      

Back to Subject List