Open In App

How to Execute Assembly Language Programs in Keil Microvision?

Last Updated : 25 Apr, 2022
Improve
Improve
Like Article
Like
Save
Share
Report

An assembly language programs are the statements that are assembly language instructions from an instruction set or an assembler’s directives. In this article, we are going to see how to execute these assembly language instructions or assembler directives in Keil Microvision software. Keil Microvision software is an open-source software or an IDE used for executing assembly language programs and embedded C programs. Let’s see the steps to execute the assembly language program in Keil Microvision software. 

Executing assembly language programs in Keil Microvision Software

Follow the following steps to execute assembly language programs in Keil Microvision software:

Step 1: Open Keil Microvision software then click on the project then click on the new Microvision project.

Open-Keil-Microvision-software

 

Step 2: Save your file with .asm extension for example (addition of numbers.asm) and save it.

Save-your-file-with-.asm-extension

 

Step 3: Select microchip AT89S52 and click on ok.

Select-microchip-AT89S52

 

Step 4: Now click on target 1 and then double click on source group 1, select the file that you saved previously with extension .asm add it to the source group, and close it.

Click-on-target-1

 

Step 5: Now click on the + sign shown before source group 1, then double click on the file that comes after clicking on +sign. Then write assembly language code in the plane text area that appears.

Click-on-the-plus-sign

 

Step 6: Click on build and rebuild to check errors then click on debug and start debug session. 

Click-on-build-and-rebuild

 

Step 7: Then click on run you can run directly or you can run step by step by clicking every time on the step or pressing F11 and then check the output here the output is visible in blue color.

Click-on-run-button

 

By following the above-mentioned steps you can execute any type of assembly language statements or instructions and assembler directives in Keil Microvision software.


Like Article
Suggest improvement
Share your thoughts in the comments

Similar Reads