Asm Editor En

4
The International Distance Contest on Application Programming Microprocessor- based Systems in Assembler Language for MCS-51 Standard Microcontroller Software Installation To install the software, first unzip the file archive on the C drive in folder C:\ asm_8051. Files List of “ASM Editor for Windows” programming environment (for Windows) ASM_Ed.exe - Code Editor AsmEd.ini - Configuration File Editor Default.shk - Keywords file default x8051.shk - Keywords file for the AT89C51 Microcontroller Files List of translators from Assembly language: x8051.exe - cross-assembler for the i8051 family processor link.exe - program linker MyLink.exe - program for both assembling and compiling followed by the outputs on a display MyLink.zip - the source code in Delphi for MyLink.exe Also in the folder C: \ asm_8051 we will create the directories: ASM, HEX, OBJ. ASM directory is intended to store the programs in Assembly language (*. asm). When compiling files in HEX and OBJ folders the files will be created with the appropriate extension (*. hex and *. obj), which are used to download the programs in in-circuit emulator. How to operate in this program To run the program one must run ASM_Ed.exe.

description

Asm Editor EN

Transcript of Asm Editor En

The International Distance Contest on Application Programming Microprocessor-based Systems in Assembler Language for MCS-51 Standard Microcontroller

Software Installation

To install the software, first unzip the file archive on the C drive in folder C:\ asm_8051.Files List of “ASM Editor for Windows” programming environment (for Windows)

ASM_Ed.exe - Code Editor AsmEd.ini - Configuration File Editor Default.shk - Keywords file default x8051.shk - Keywords file for the AT89C51 Microcontroller

Files List of translators from Assembly language: x8051.exe - cross-assembler for the i8051 family processor link.exe - program linker MyLink.exe - program for both assembling and compiling followed by the outputs

on a display MyLink.zip - the source code in Delphi for MyLink.exe

Also in the folder C: \ asm_8051 we will create the directories: ASM, HEX, OBJ. ASM directory is intended to store the programs in Assembly language (*. asm). When compiling files in HEX and OBJ folders the files will be created with the appropriate extension (*. hex and *. obj), which are used to download the programs in in-circuit emulator.

How to operate in this program

To run the program one must run ASM_Ed.exe.

Figure 1. The view of the main program window.

The International Distance Contest on Application Programming Microprocessor-based Systems in Assembler Language for MCS-51 Standard Microcontroller

There are the following areas of the main program window (Figure 1): Main menu (1) Quick access buttons to the functions of the main menu (2) Area for writing programs (3).

Let’s consider the most important functions of “ASM Editor” program.

Menu Item Key CombinationMenu FileNew Ctrl+NOpen Ctrl+OSave Ctrl+SSave as …Print … Ctrl+F10ExitMenu EditUndo Ctrl+ZRedo Ctrl+YCut Ctrl+XCopy Ctrl+CPaste Ctrl+VSelect All Ctrl+AMove Right Ctrl+RMove Left Ctrl+LFind Ctrl+FReplace Ctrl+RМеню ProjectCompile Resource F9

When developing the program in the environment of “ASM Editor” the following procedure is recommended:

1. Start the “ASM Editor” (ASM_Ed.exe).2. In area for writing program, first enter the text of the program, using the syntax and rules

for writing programs in assembly language.3. Save the program (by choosing File> Save or by clicking on the toolbar).Save the program on the folder C:\asm_8051\asm disk. The file name should be written

in Latin characters and contain no more than 8 characters.4. Compile a program by selecting Project> Compile Resource. This item allows you to

start the process of compiling the program and simultaneous error checking and then the process of linking the compiled program. When an error occurs, error messages appears on the screen (see Figure 2), and linking is not performed. To close the error message, press any key.

The International Distance Contest on Application Programming Microprocessor-based Systems in Assembler Language for MCS-51 Standard Microcontroller

Figure 2. The view of error messages.

If compilation is successful, the message of a successful compilation will appear on the screen (Figure 3). In the HEX and OBJ folders the files have been created with the appropriate extension (*. hex and *. obj). To close the message box after a successful compilation, press any key.

Figure 3. The view of message box after a successful compilation.