This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Constant errors A1163E and A1355U

I always keep getting 2 errors and they are:

a.s(2): error: A1163E: Unknown opcode AREA, , expecting opcode or Macro

a.s(3): error: A1355U: A Label was found which was in no AREA

no matter what I do they are always there. What is the problem?

Example code:

GLOBAL Reset_Handler
AREA, mycode, CODE, READONLY
Reset_Handler

PINSEL0 EQU 0xE002C000
IO0BASE EQU 0xE0028000

IO0PIN EQU 0x0
IO0SET EQU 0x4
IO0DIR EQU 0x8
IO0CLR EQU 0xC

MASK EQU 0xFF00

MOV r0, #0
LDR r1, =PINSEL0
STR r0, [r1]

LDR r1, =IO0BASE
MOV r5, #MASK
STR r5, [r1, #IO0DIR]


Main

STR r5, [r1, #IO0CLR]

LDR r4, =0xFFFF
DelayOn SUBS r4, r4, #1
BGT DelayOn


STR r5, [r1, #IO0SET]



LDR r4, =0xFFFF
DelayOff SUBS r4, r4, #1
BGT DelayOff

B Main

stop B stop

END