Partager via


SH-4 Assembler Conditional Assembly Directives (Windows Embedded CE 6.0)

1/5/2010

The following table shows the conditional assembly directives.

Directive Syntax Description

.ASSIGNA

<preprocessor variable>[:].ASSIGNA <value>

Defines an integer preprocessor variable; the defined variable can be redefined.

.ASSIGNC

<preprocessor variable>[:].ASSIGNCD<character string>

Defines a character preprocessor variable; the defined variable can be redefined.

.AIF.AELSIF.AELSE.AENDI

.AIF <condition1><Source statements assembled if condition1 is satisfied>.AELSIF <condition2><Source statements assembled if condition1 is not satisfied,but condition2 is satisfied>.AELSE<Source statements assembled if neither condition1nor condition2 is satisfied>.AENDI

Determines whether to assemble a part of a source program according to the specified condition.

When the condition is satisfied, the statements after the .AIF are assembled.

When the condition is not satisfied, the statements after the .AELSE are assembled.

.ERROR or .AERROR

.ERROR[<expression>[,<expression>...]]

Reports error detected at assembly time by user code.

The alternate spelling .AERROR is also supported

.AREPEAT.AENDR

.AREPEATD<count><Source statements iteratively assembled>.AENDR

Repeats assembly of a part of a source program between .AREPEAT and .AENDR the specified number of times.

.AWHILE.AENDW

.AWHILE <condition><Source statements iteratively assembled>.AENDW

Assembles a part of a source program between .AWHILE and .AENDW iteratively while the specified condition is satisfied.

.EXITM

.EXITM

Terminates .AREPEAT or .AWHILE iterated expansion.

.ALIMIT

.ALIMITD<maximum count>

Specifies the upper limit value for expansion of the AWHILE directive in the preprocessor.

See Also

Reference

SH-4 Assembler Directives