Jump to content
43oh

justinmreina

Members
  • Content Count

    1
  • Joined

  • Last visited

Reputation Activity

  1. Like
    justinmreina got a reaction from agaelema in Extremely simple ARM assembly example with Tiva C?   
    Here is my example, which took nearly a full dedicated hour to complete, sheesh!
     
    Tiva assembly is precise and complete, but has subtle yet important differences from MSP430 assembly, take a peek! Full project attached in ZIP as well
     
    Assembly Routines (asmExampleFile.asm)
    .global asmRAMVal, asmFlashVal, asmFcn1, asmFcn2 .bss asmRAMVal, 4h .data asmFlashVal .word 6h .text asmFcn1: nop movw r0, #1266 bx lr asmFcn2: nop movw r0, #1267 bx lr C Usage of Assembly Routines (main.c)
    //ASM Routines extern void asmFcn1(void); extern void asmFcn2(void); //ASM Varaiables extern uint16_t asmRAMVal; extern uint16_t asmFlashVal; int main(void) { asmFcn1(); // Asm function-file calls asmFcn2(); ram_var = asmFlashVal; //Asm variable usage asmRAMVal = 0xE234; return EXIT_SUCCESS; } ref_asm.zip
  2. Like
    justinmreina got a reaction from bluehash in Extremely simple ARM assembly example with Tiva C?   
    Here is my example, which took nearly a full dedicated hour to complete, sheesh!
     
    Tiva assembly is precise and complete, but has subtle yet important differences from MSP430 assembly, take a peek! Full project attached in ZIP as well
     
    Assembly Routines (asmExampleFile.asm)
    .global asmRAMVal, asmFlashVal, asmFcn1, asmFcn2 .bss asmRAMVal, 4h .data asmFlashVal .word 6h .text asmFcn1: nop movw r0, #1266 bx lr asmFcn2: nop movw r0, #1267 bx lr C Usage of Assembly Routines (main.c)
    //ASM Routines extern void asmFcn1(void); extern void asmFcn2(void); //ASM Varaiables extern uint16_t asmRAMVal; extern uint16_t asmFlashVal; int main(void) { asmFcn1(); // Asm function-file calls asmFcn2(); ram_var = asmFlashVal; //Asm variable usage asmRAMVal = 0xE234; return EXIT_SUCCESS; } ref_asm.zip
×
×
  • Create New...