1. Xolisa.X

    Thread Starter New Member

    Apr 14, 2008
    9
    0
    How to do 4 sequences in one look-up table..........
    plz.......

    i hav these sequence....but i want 2 display them in 1 look-up table
    ;*****************************************************
    Lookup1 MOVLW HIGH BASE1
    MOVWF PCLATH
    MOVLW LOW BASE1
    ADDWF offset,w
    MOVWF PCL

    BASE1 RETLW B'10000000'
    RETLW B'01000000'
    RETLW B'00100000'
    RETLW B'00010000'
    RETLW B'00001000'
    RETLW B'00000100'
    RETLW B'00000010'
    RETLW B'00000001'
    Lookup2 MOVLW HIGH BASE2
    MOVWF PCLATH
    MOVLW LOW BASE2
    ADDWF offset,w
    MOVWF PCL
    BASE2 RETLW B'00000001'
    RETLW B'00000010'
    RETLW B'00000100'
    RETLW B'00001000'
    RETLW B'00010000'
    RETLW B'00100000'
    RETLW B'01000000'
    RETLW B'10000000'

    Lookup3 MOVLW HIGH BASE3
    MOVWF PCLATH
    MOVLW LOW BASE3
    ADDWF offset,w
    MOVWF PCL

    BASE3 RETLW B'11111111'
    RETLW B'01111111'
    RETLW B'00111111'
    RETLW B'00011111'
    RETLW B'00001111'
    RETLW B'00000111'
    RETLW B'00000011'
    RETLW B'00000001'
    Lookup4 MOVLW HIGH BASE4
    MOVWF PCLATH
    MOVLW LOW BASE4
    ADDWF offset,w
    MOVWF PCL
    BASE4 RETLW B'10000000'
    RETLW B'11000000'
    RETLW B'11100000'
    RETLW B'11110000'
    RETLW B'11111000'
    RETLW B'11111100'
    RETLW B'11111110'
    RETLW B'11111111'
    RETURN
    ;*****************************************************
     
Loading...