We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
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, READONLYReset_Handler
PINSEL0 EQU 0xE002C000IO0BASE EQU 0xE0028000 IO0PIN EQU 0x0IO0SET EQU 0x4IO0DIR EQU 0x8IO0CLR 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, =0xFFFFDelayOn SUBS r4, r4, #1 BGT DelayOn STR r5, [r1, #IO0SET] LDR r4, =0xFFFFDelayOff SUBS r4, r4, #1 BGT DelayOff B Main stop B stop
END
https://www.keil.com/support/man/docs/armasm/armasm_dom1361290002714.htm