This is an old revision of the document!
Create a Assembly Project
Creating an Assembly project is pretty much the same as createing a C project.
Type | Choose “Asm File (.s)”. |
---|---|
Name | Choose an appropriate name. |
Location | Choose correct location (.\App). |
Normal Assembly Project
To create a “normal” Assembly project you just have to add Assembly files to the project instead of C files.
Example code for main procedure:
- main.s
AREA myCode, CODE, READONLY THUMB ADR_LED EQU 0x60000100 ADR_DIPSW EQU 0x60000200 main PROC EXPORT main LDR R0, =ADR_LED LDR R1, =ADR_DIPSW loop LDR R2, [R1, #0] STR R2, [R0, #0] B loop ENDP ALIGN END