Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9202679
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T23:18:46+00:00 2026-06-17T23:18:46+00:00

I would like to simulate ARM code. For example, I want to run code

  • 0

I would like to simulate ARM code. For example, I want to run code like this:

MOV    R0, #5
ADD    R0, R0, #1
//somehow output R0

And it would output 6 on some software on my Ubuntu. Is it possible?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T23:18:46+00:00Added an answer on June 17, 2026 at 11:18 pm

    Keil MDK can be used to simulate the ARM codes. It provides a Simulate/Debug perspective which can be used to probe the ARM register set, memory content, etc…

    MDK-Lite evaluation version is available free of cost for a maximum code size of 32KB.

    Linux version of MDK is not available. But Keil MDK works perfectly over WINE in Ubuntu.


    Keil uVision MDK Installation on WINE:

    Step 1: Install wine on Ubuntu

    Open a terminal and type:

    sudo apt-get install wine
    

    Step 2: Download Keil MDK.

    Step 3: Install MDK

    Right-Click on MDK executable file and select “Open With Wine Windows Program Loader” option.

    Step 4: Invoke Keil uVision MDK on Ubuntu

    Open a terminal and type:

    wine ~/.wine/drive_c/Keil/UV4/Uv4.exe
    

    Step 5: Install Flash Magic (Optional)

    Flash Magic is a tool used to download software for Keil boards. Download Flash Magic Software and install it on wine (refer previous steps).

    Create a COM1 link to serial port. Open a terminal and type:

    ln -s /dev/ttyS0 ~/.wine/dosdevices/COM1
    

    Keil uVision MDK Project Creation and Debugging:

    Step 1: Create a Keil UVision project for ARM7 target.

    In Keil UVision tool bar select Project –> New Project.

    Navigate to a location where you want to create this project.

    Enter a project name and click Save.

    Select ARM –> ARM7(Little Endian) as device for Target. Click OK.

    Step 2: Create an assembly source file for the target

    In Keil UVision tool bar select File –> New. Add the following code to the newly created file:

        AREA text, code, readonly
        ENTRY
    
        MOV    R0, #5
        ADD    R0, R0, #1
    
        END
    

    Provide tab-space before each assembly statement as done above. Save the file with ‘.s’ extension.

    Step 3: Add source file to project

    In Project window (located left side of UVision), Right click on Source Group 1 and select “Add Files to Group Source Group 1” option.

    Select test.s and click ‘Add’. (Select File Type as ASM Source file)

    enter image description here

    Step 4: Build source file

    In Keil UVision tool bar select Project –> Build target or Press F7 to compile the source file.

    Step 5: Simulate/Debug application

    In Keil UVision tool bar select Debug–> Start/Stop Debug Session or Press Ctrl + F5.

    The debug perspective opens up with a Register view at left side, Code View at center, Memory view at right bottom, etc…

    enter image description here

    Use the debugging keys to execute the code:

    enter image description here

    Observe Register view at end of program execution:

    enter image description here

    In Keil UVision tool bar select Debug–> Start/Stop Debug Session or Press Ctrl + F5 to come out of Debugging Perspective.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a link like this: <a href=www.example.com> I would like to simulate the
I would like to run some code on the Python version of Google App
I would like to simulate radio button behaviour using checkboxes, this says : When
I don't know what exactly this feature is, but I would like to simulate
I would like to simulate an analog joystick on the touchable screen like this
I need some quick advice. I would like to simulate a cellular automata (from
I would like to simulate the user pressing tab then enter when they press
I am rendering textured quads from an orthographic perspective and would like to simulate
Would like to know the c# code to actually retrieve the IP type: Static
I would like to simulate dropping stones into a bucket on the web. Drag

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.