Here is my code and its making good progress cause all i need is to be able to write to the MCG_C1 register, but it wont accept the value meaning it executes instruction but doesnt change the value it stays at 0x4 instead of updating to 0x6. If i can write the MCG_C1 im good, cause i can manually change it after my code goes through and it pops the LCD right on
Any suggestions?
.section .sdata
.align 2
VAL1: .word 0x6
VAL2: .word 0x40000000
VAL3: .word 0x88b500c7
.text
.align 4
SIM_SCG3: .word 0x40048030
MCG_IRCLKEN: .word 0x40064000
LCD_GCR: .word 0x400be000
.global main
main:
LDR R1,SIM_SCG3 //
LDR R2,VAL2
STR R2,[R1]
LDR R1,LCD_GCR //
LDR R2,VAL3
STR R2,[R1]
LDR R1,MCG_IRCLKEN //
LDR R2,VAL1
STR R2,[R1]
NOP
.END