cancel
Showing results for 
Search instead for 
Did you mean: 

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

s1975
Associate II
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?
2 REPLIES 2
fggnrc2
Associate II
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
Associate II
Posted on August 01, 2013 at 10:46

thank you, compiled