Skip to main content
s1975
Associate II
Jul 31, 2013 7:45 PM UTC
Question

how to make shift bits (asm STVD) , example: 1<<0|1<<3|1<<4

Posted on July 31, 2013 at 21:45

example:

ld A, 1<<0|1<<3|1<<4

it isn't compiled as it is correct to make record for the STVD assembler?
    This topic has been closed for replies.

    2 replies

    fggnrc2
    Associate III
    Aug 1, 2013 4:14 AM UTC
    Posted on August 01, 2013 at 06:14 Hello user assembler shift operators syntax is different from the C one. The right syntax to load A with the result of your expression is:

    LD A,#{{1 shl 0} or {1 shl 3} or {1 shl 4}}

    BR EtaPhi
    s1975
    s1975Author
    Associate II
    Aug 1, 2013 8:46 AM UTC
    Posted on August 01, 2013 at 10:46

    thank you, compiled