...
/******hard ware definition here******/


here you have equ statements like
RS 	EQU P2.5
LCDDATE EQU P0

THESE ARE ONLY EXAMPLES


/*****MEMORY DEFINATIONS HERE*****/


here you have equ statements like
MCOUNT 	EQU 45H


/*****CONSTANT DEFINATIONS HERE****/

here you have equ statements like
OFF	EQU 0
ON	EQU 1
(IN YOUR CASE THIS DOESNOT EXIST)


/******NOW VECTOR ADDRESSES******/

ORG 0000H
SJMP START

ORG 000BH
SJMP TIMER0

change these SJMPS to AJMP or LJMP if necessary


/*****NOW ISR*****/

ORG 0030H  (THIS NO IS JUST A EXAMPLE. CHOOSE ANY NO ABOVE VECTOR TABLE

TIMER0:

MOV THO,#
MOV TLO,#

(BODY OF TIMER ISR)

RETI


/****ALL ISR ARE OVER NOW START WITH BODY****/
START:

initialise necessary sfr registers here
initialise sfr bits, global variables
initialise lcd

to initialise LCD

acall INIT_LCD
acall CLEAR_LCD

also get your cursor on row1,col1 position

now give a infinite loop

here: SJMP here

/*****NOW WRITE FUNCTIONS****/
INIT_LCD:

(BODY OF FUNCTION)

RET

similarly write other functions


when all functions ends

/****WRITE ARRAY OF CONSTANTS****/

MY_ARR DB 'A','B'.....

OR

ORG ####

DB 'A','B'.....

END

...