
BIN_DEC_CONVRT:
    MOV	R0, #RAM_ADDR
****MOV	A, P2     <--- This does not make real sense to get tbe number to
                       convert from P2 where the LEDs are connected. I suggest
	               getting the actual value that needs to be comverted.
****MOV	B, #10	  <--- This is wrong. This should be "MOV B, #100"
    DIV	AB
****MOV	@R0, B	  <--- This should be "MOV @R0, A" to store the number of 100s 
                       to first buffer location.
    INC	R0
****              <--- Missing here "MOV A, B" to get the previous remainder
                       ready for the divide by 10.
    MOV	B, #10
    DIV	AB
****MOV	@R0, B    <--- Here you want to change this to "MOV @R0, A" so as to
		       store the number of 10s to secomd buffer location. 
    INC	R0
****MOV	@R0, A	  <--- Wrong here. Change to "MOV @R0, B" to be saving final																															                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           
                       number of 1s at third position of the buffer.
    RET
