Microprocessor

I would like to design a vehicles signal. When DIP switch 1 is turned on, the LED will move from left to right - LCD display will display turn right. DIP switch 2 will light up the LED from right to left - LCD display turn left. And when DIP switch 3 is turned on, all LED will light up and LCD will display stop.
I already do the coding for each part. My problem is that I don't know how to combine them. And I'm using HCS12 Dragon-Plus Board.
And how do I post my coding? It doesn't allow .txt or .asm file
I already do the coding for each part. My problem is that I don't know how to combine them. And I'm using HCS12 Dragon-Plus Board.
And how do I post my coding? It doesn't allow .txt or .asm file