This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Replies: 4
Views: 3934
; comment - not indentedlabel: ; not indented code1 ; indented 2 spaces code2 ; indented 4 spaceslable2: ; not indented
; blink.s - blink user LED on Luminary Micro EV-LM3S811 (Cortex-M3) AREA TEXT, CODE, READONLY CODE16 ; vector table DCD 0x20002000 DCD Reset_Handler DCD iloop DCD iloop ; start the program hereReset_Handler EXPORT Reset_Handler ; initialize GPIO port C, pin 5 as outputRCGC2 EQU 0x400FE108 ; run-mode clock gating control 2RCGC2_PORTC EQU 1 <2 ; PORTC clock enable ldr r0, =RCGC2 ldr r1, =RCGC2_PORTC str r1, [r0]GPIODIR_PORTC EQU 0x40006400GPIO_PC5 EQU 1 <5 ldr r0, =GPIODIR_PORTC ldr r1, =GPIO_PC5 str r1, [r0]GPIODATA_PORTC EQU 0x40006000 ldr r0, =GPIODATA_PORTC + (GPIO_PC5 <2)loop ldr r1, =GPIO_PC5 str r1, [r0] ldr r2, =10000001 subs r2, r2, #1 bne %1 ldr r1, =0 str r1, [r0] ldr r2, =10000001 subs r2, r2, #1 bne %1 b loop ; and do it again ; an infinite loop in place of real exception handlersiloop b iloop ; the end END[end-of-file]