What Does the | Symbol Mean in Assembly?

  • Thread starter Thread starter nothing909
  • Start date Start date
  • Tags Tags
    Assembly
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
3 replies · 2K views
nothing909
Messages
168
Reaction score
4
Homework Statement
Code:
mov.w   #WDTPW|WDTHOLD, &WDTCTL

What does the | symbol mean in assembly? I've been learning C and I've just recently started learning assembly. In C, the | symbol is a bitwise OR, but what does it mean in assembly?
 
Physics news on Phys.org
Last edited:
nothing909 said:
What does the | symbol mean in assembly? I've been learning C and I've just recently started learning assembly. In C, the | symbol is a bitwise OR, but what does it mean in assembly?
There is no such thing as generic "assembly." Each processor family (Intel/AMD x86, Intel Itanium, Motorola 68000, ARM, MIPS, etc.) has its own assembly language. You have to specify which kind of assembly language you're working with.