Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.arch.embedded > #21715

Re: Question about ARM instruction: STMIA / STMEA

Subject Re: Question about ARM instruction: STMIA / STMEA
Newsgroups comp.arch.embedded
References <5f1e3e48-3b23-4d32-a5f9-a38731a91c9b@googlegroups.com> <09ce83ea-1f67-4021-bf86-08d87c3ff625@googlegroups.com>
From Richard Damon <Richard@Damon-Family.org>
Message-ID <VGwxx.11796$OF1.8625@fx16.iad> (permalink)
Organization Forte - www.forteinc.com
Date 2015-08-08 19:56 -0400

Show all headers | View raw


On 8/8/15 6:39 PM, Robert Willy wrote:
>
> Although it works as the STR/LDR instructions, I have not figured out why
> it needs #4 more in the push operation yet.
>
> Thanks for your views.
>

Because STMFD assumes that the stack pointer is pointing to an 
'occupied' (i.e. 'Full') location, so it is decremented first before the 
1st store, thus you need to computer the stack frame location one 
element farther than the first item.

Back to comp.arch.embedded | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

Question about ARM instruction: STMIA / STMEA Robert Willy <rxjwg98@gmail.com> - 2015-08-06 15:42 -0700
  Re: Question about ARM instruction: STMIA / STMEA Simon Clubley <clubley@remove_me.eisner.decus.org-Earth.UFP> - 2015-08-07 11:52 +0000
    Re: Question about ARM instruction: STMIA / STMEA Theo Markettos <theom+news@chiark.greenend.org.uk> - 2015-08-07 19:12 +0100
  Re: Question about ARM instruction: STMIA / STMEA Nobody <nobody@nowhere.invalid> - 2015-08-08 02:46 +0100
  Re: Question about ARM instruction: STMIA / STMEA Robert Willy <rxjwg98@gmail.com> - 2015-08-08 15:39 -0700
    Re: Question about ARM instruction: STMIA / STMEA Richard Damon <Richard@Damon-Family.org> - 2015-08-08 19:56 -0400

csiph-web