Your program will not be able to branch to the turn right or turn left signals. It can only do "All ON" and "All OFF" jobs.
The turn right/left routines after modification are completely wrong and it wouldnt work. Lets take a look at the "turn right" subroutine....
cmpa #%00000010
right movb #$00,PORTB
ds.b 1 ;"ds.b 1" means define storage in byte for 1 byte. You cannot just put a data byte in the
ds.b 1 ; middle of a program, the mcu will become crazy hitting this non-instruction byte. It should
;be placed in front before the entering point of a subroutine.
move movb 1,x+,PORTB
ldy #5
jsr Delayby100ms
bra ledright
; ledright are just data bytes, they are not instruction. Branching there will also cause the mcu to go crazy.
bra check
ledright dc.b $80,$40,$20,$10,$08,$04,$02,$01 ; turn right LED pattern
dc.b $80,$40,$20,$10,$08,$04,$02,$01
;dc.b is define character in byte. So those are the byte pattern for the led
; 10000000 $80
; 01000000 $40
; 00100000 $20
; 00010000 $10
; 00001000 $08
; 00000100 $04
; 00000010 $02
; 00000001 $01
; As can be seen, the bit 1 (led on) is moving from left to right so it is the turn signal pattern
I hope you can study the original program and try to understand them first. The program is very simple and I know how to write the whole program for you but you'll learn nothing from it if you dont understand how the instructions work in the first place.
Allen