Arm_ How to press the stack

Source: Internet
Author: User

(1) Additional questions
Write assembler to add 8 times R4~r11, R4~r11 start value is 1~8, after each false operation put R4~R11 content into SP Stack, SP's initial set to 0x800.
(2) Problem analysis
First, the RI is added by adding to the add value.
The data is then pressed into the stack by Stmia, with a count record of the number of operations, the loop ending compares whether count is 0, the exit is satisfied, or the sum assignment is repeated.
(3) design scheme (algorithm idea description or drawing flowchart)
1. R4~r11 the eight values into the stack after doing a cumulative assignment
2. Counter R0 minus One
3. Compare if R0 is 0, if exit, otherwise repeat
(4) Assembly realization:

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.