c언어 컴파일 중 error:unpredictable STR instruction, writeback base is also a source 라는 에러를 출력하네요.. 그냥 해당 메모리 주소에 주소값을 넣고 싶었던 것 뿐인데..ㅠㅠ 이런 제 맘이 잘못된걸까요?...
str Rt, [Rn {, #offset}] ; immediate offset => *(Rn + offset) = Rt str Rt, [Rn, #offset]! ; pre indexed => Rn = Rn + offset, *(Rn) = Rt str Rt, [Rn], #offset ; post indexed => *(Rn) = Rt, Rn = Rn + offset Rn must be different from Rt in the pre-index and post-index forms.
str Rt, [Rn {, #offset}] ;
str Rt, [Rn {, #offset}] ; immediate offset => *(Rn + offset) = Rt str Rt, [Rn, #offset]! ; pre indexed => Rn = Rn + offset, *(Rn) = Rt str Rt, [Rn], #offset ; post indexed => *(Rn) = Rt, Rn = Rn + offset Rn must be different from Rt in the pre-index and post-index forms.라고 armasm 가이드에 나와 있네요.