asm instruction question

#1173073
Dustin Sr wrote:
> I am trying to debug my source through the disassembly and I can't find
> any documentation on asm instruction streqt.  Could someone exsplain
> this instruction to me.
>
> streqt  fp, [r9], #543
>
> Thanks,
> DB

It is "Store Register With Translation" with a condition code of EQ (i.e
equal). The ARM instruction set has a clever feature of conditional
instructions. So this instruction is executed only if the Z flag is set
(for example from the result of a preceding compare).

It is listed in the ARM Architecture Reference Manual (you do have that
right!?) under the STRT instruction - the default condition code is AL
(always), so this is equivalent to STRALT.

The condition code reduces instruction count considerably because short
conditional sequences of one or two instructions can be encoded without
a separate conditional branch instruction.

The ARM Architecture Reference Manual can be downloaded from
http://www.altera.com/literature/third-party/ddi0100e_arm_arm.pdf. This
is not the latest edition but unless you are using a recent ARM
architecture part it should be fine - it covers ARM architecture v3, 4,
and 5 (which includes ARM7 and 9 parts - ARM's numbering is designed to
confuse it seems!).

Clifford

Reply

A question of your own? This thread is over 18 years old. Ask it in a thread of its own – more people read along there, and it gets answered more often and sooner.

Start a new thread

A fix, an addition or feedback on this thread? Then reply here.

Formatting
  • [c]C-Code[/c]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]
  • [[Title]] – link to an article
  • Link to another post: right-click its post ID (#8078628), copy the address, paste it into the text

More about formatting

Post long source code as an attachment, not in the text.

Already registered? Log in

Not shown to anyone. We send you a link; your post appears once you confirm it there.

By submitting you create a free account and accept the terms of use.