Skip to main content
Visitor II
July 31, 2013
Question

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

  • July 31, 2013
  • 2 replies
  • 664 views
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

    Visitor II
    August 1, 2013
    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
    s1975Author
    Visitor II
    August 1, 2013
    Posted on August 01, 2013 at 10:46

    thank you, compiled