penguin
penguin

Reputation: 876

ARM assembler directive (macro) IF statement

I'm using some of the ARM Assembler Directives when I compile my assembler.

Here's what I'm doing:

                GBLA count
count           SETA 0

                WHILE count <=1024

                IF count = {50}
                    ; Do something special here
                ENDIF

count           SETA count+1
                ; Repetitive code here


                WEND

But I get the error message: error: AA1198E: Unknown operand.

I've tried prepending the IF statement with count, in case that did it, but I get a different error.

Unfortunately the ARM documentation on this isn't great (or I'm not very clever, which is more than likely hehe)

Upvotes: 0

Views: 644

Answers (1)

Trevor Arjeski
Trevor Arjeski

Reputation: 2168

Take the { } away from around the 50.

IF count = 50

Upvotes: 1

Related Questions