Set a register's bit with another registers bit

8 views
Skip to first unread message

michi.j...@gmail.com

unread,
May 20, 2016, 2:05:32 PM5/20/16
to BeagleBoard
Hello!

I want to set a register's bit in PRU assembler like this:

r3.t1 = r29.t0

Is there any way to do this in a one line approach? I have this solution, but i am not satisfied with it:

SENDHIGH:
    SET        r3.t1
    LSR        r29, r29, #1
    QBA        INSPECT_DATA
   
SENDLOW:
    CLR        r3.t1
    LSR        r29, r29, #1
    QBA        INSPECT_DATA

INSPECT_PIXELDATA:
    QBBS    SENDHIGH, PIXELDATA.t0
    QBBC    SENDLOW, PIXELDATA.t0

Defining a macro could be an idea, but do you guys know any built-in operation, that could do this trick for me?
Reply all
Reply to author
Forward
0 new messages