Ide86 assembly language environment

Source: Internet
Author: User

Ide86 is an IDE environment for compiling, debugging, and running assembly languages. Of course, from the current point of view, its interface is not friendly and looks relatively watery, but after all, it was something from the 1980s S. Let's just water... The following figure shows the integration environment after it is started.

Ide86 can be used to write assembler programs, but the interface is not very good, so you should find some text editors to use. I am using notepad ++, which has the syntax highlighting function, so that we can write instructions to a certain extent. Note that the file suffix is. ASM. For example, we have compiled a program ex1.asm for memory initialization. To compile and run the program, select the compile (compile) option first (the selection here cannot be done with the mouse, you can only move the cursor up or down), as long as you enter your own Assembly file name after the colon, here we are ex1.asm. (Note that the Assembly Language is case insensitive, so it doesn't matter if we use uppercase or lowercase letters ~~~)

 

Keep the default value of control parameter.

After compilation, the screen will output the compilation information,

It can be seen that 0 error and 0 warning indicate that our program has no syntax error.

Then, we need to link,

The file name remains unchanged, and the suffix is. obj. Similarly, the command parameter must be set to the default value. The link information provided by the link program is as follows:

It can be seen that a warning information is provided. The prompt "no stack" is displayed. Because our program is very simple and no stack is used, the prompt "no stack" is displayed, which can be ignored here.

The next step is the "debug" field. Select "includebug”" and keep the parameter. You can see that the suffix of the file is the. exe executable file.

The debugging interface will appear later,

Here, you can click a line to add a breakpoint, and then select Run for debugging.

View a storage unit: Select "dump" under "View" to bring up the storage unit viewer, right-click and select "Goto", and enter the address of the memory unit to be viewed, you can view the content of the corresponding memory unit. For example, if we want to view the content of the memory unit given by Si as the offset address in the segment register ds, just enter "ds: Si" and press Enter.

View CPU registers:

Select "CPU" in "View" to bring up the following viewer. On the left side is the compiled machine code, and on the right side is the corresponding command. By using the DEBUG command in the run menu, we can always observe the changes of the corresponding register.

In addition, "User Screen" in "window" allows us to view the output on the user screen after the program runs.

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.