BCM5722 Programmer’s Guide
10/15/07
Broadcom Corporation
Page 3 Notational Conventions Document 5722-PG101-R
<Block> Begin or Cstyle {
<Pseudo Code>
End or Cstyle}
Any valid logic including <Expression>,
<Repetition>, <While>, <Conditionals>,
<Assignment>, etc.
<While> While <expression>
<Block>
Other variants of while valid (i.e., Do while, and so
on)
<Repetition> For < iterations> do
< Block>
<Expression> <Expression1> <Operator>
<Expression2>
Apply operator to two subexpressions E1 and E2.
The result will be interpreted as a boolean value.
<Assignment> variable/register = CONSTANT
variable/register = variable
variable/register = <Expression>
variable/register = variable/register
<Operator>variable/register
Assign constant.
Assign to variable.
Assign to result of expression (Boolean).
Assign to result of operation on variables/registers.
<Operator> &
|
<<
>>
==
!=
<
<=
>
>=
And
Or
Bitwise And
Bitwise Or
Bitwise Shift Left
Bitwise Shift Right
Boolean equality
Boolean inequality
Less than
Less than equal
Greater than
Greater than equal
Boolean And
Boolean Or
Procedure/subroutine Procedure <name>
Call procedure/subroutine Call <name>
Operational comment // Comments, Comments, Comments Not part of the logic flow
Deference *(variable/register/CONSTANT _DEFN) Contents of an address/location
Table 1: Pseudocode (Cont.)
Definition Notation Notes