4.5. Parentheses

You can use both soft parentheses () and har parentheses [] to tell the order of evaluation.

        lda #2+5*2    // gives lda #12
        lda #(2+5)*2  // gives lda #14
        lda #[2+5]*2  // gives lda #14

Note that 65xx assemblers use soft parenthesis to signal an indirect addressing mode:

        jmp ($1000)    // Creates a jmp indirect command 
        jmp [$1000]    // Creates a jmp absolute command 

You can nest as many parentheses as you want, so (([((2+4))])*3)+25.5 is a legal expression.