Assembly selection and configuration of the IDE

Source: Internet
Author: User
Tags api manual command line constant manual function prototype modify resource

IDE, full name integrated development environment, for MASM IDE, I think everyone's minimum requirements are at least required to write the program in the command line does not need to manually enter the command to compile and link, so inconvenient, if the code is wrong, you need to use the editor (usually the accounting) to modify and then repeat the compilation, link, Spend a lot of time on this kind of operation.

To this end, Redasm appeared, it has written MASM program of all the basic functions, as long as the set up, in the Redasm to write the program is almost as VC, API function prototype prompts, constant automatic pop-up, the structure of the member variable display (temporarily does not support the declared structure type of variables), Process variable names are listed themselves, support quick jump, automatic completion of keywords, Integration Dialog editor/Menu editor, toolbar Editor, debugger, and so on, etc, let me wait for the compilation of the Madman surprised, but (live to hear these two words always let a person's heart tightness ^_^), redasm support for Chinese is rather bad, and has not been resolved, the situation is to open, edit the source files in Chinese will stop responding or panic, unless the entire program does not use Chinese then there is no problem, the latest version of the REDASM can be set in Chinese fonts to support double-byte editing, but this method only applies to more than 2000 of the operating system, For us these use the broken machine to install 98 all to feel slow, to the English headache person, Redasm became I and so on person's heart the chicken---function is powerful but is very useful, but it is really very practical, in the heart this pity, like the surging river water .... (STOP)!

So, if your operating system is above 98 (excluding me), recommend you choose Redasm, the latest version of the Redasm faster, practical features so that MASM program is very convenient to write, you can go to the author's homepage to download (http://radasm.sonshinesoftware.com/

, remember that redasm updates are pretty fast, and it's also a support to authors to see if they are updated at times.

However, because I redasm only a few times, its function and characteristics I do not know, detailed their own to play it, and the setting of MASM is also quite convenient, as long as the MASM32 set a good path on the line.
Several disadvantages of redasm:

1. There is no template, although you can write one, but internal modeling is an IDE has the basic conditions, do not know why the author of Redasm not write a few.

2. The highlighted API function and the constant library are incomplete, we still have to see the reference manual when we encounter a function that is not joined. (set up written MASM always open a reference manual to facilitate inquiries).

3. Resource editing function is not very practical, redasm to edit the dialog box, menu editing, etc. separated, encounter the need to add other resources, or to modify their own, this is inconvenient.

Another point to recommend another is also I have been using the IDE, no, can not say that the IDE, can only say that the editor, that is EditPlus, as long as their own set up, EditPlus can be quite convenient for MASM programming, how to configure everyone do not worry about, I have written for you the relevant configuration file, and did a setup program, please download the site's MASM for EditPlus, installed after the line, the current MASM for EditPlus has been upgraded to serial 0004, because MASM for EditPlus is my own configuration, I will tell you in detail about the advantages of MASM for EditPlus.

1.MASM for EditPlus keyword is very complete, because I am in accordance with the latest version of MASMv8.0 to make the grammar file table, all MASMv8.0 supported functions can be highlighted, If an API that exists in the API manual is not highlighted in the EditPlus, it proves that the function MASM not supported, the same is true for constants and structs, and all the keywords support automatic completion, so as to avoid the annoying error of casing.

2.MASM for EditPlus is quite a lot of templates, which saves you from having to write your own repetitive code while you're learning.

3. Batch processing is quite perfect, but also support the compilation of VC, batch processing has considerable intelligence, when the compiled file is exe/dll and other programs, if the source file directory does not exist resource files, batch processing will be copied to the corresponding res renamed to the target directory, after the compilation can line to a program containing resource files , so you can easily click the 4th toolbar to start the VC resource editor for editing.

3. When the compilation mode is Dll/vxd, if the source file directory does not exist in the Def file, then the batch will automatically use the redirected file to create it, so you do not have to manually set up your own, of course, to output the function of the words or to add their own.

4. When the Lib is established, the Inc file is automatically created, although some API functions are sometimes added, but this does not affect its use, because the MASM compile is to find the prototype to skip, so the establishment of their own lib in use as far as possible included in the last.

5. Because MASM for EditPlus integrates the MASM5.0, MASMv8.0, VC resource Editor, 98DDK header file, you only need to install MASM for editplus after you do not need to do other settings, and as long as you install the SoftICE , you can also use the MASM for EditPlus to debug source code.

6. If you prefer to compile manually, you can do this by opening the MASM for EditPlus BIN directory at startup, such as adding a set path=%path% in Autoexec.bat;D: \masm32\bin, note D:\MASM32\ Bin if your own installation directory under the bin, the command line in the future, as long as the input Mlink file path can be one-step compilation, such as compiling C:\1.asm, then the Mlink c:\1.asm, you can automatically compile 1. EXE file to. The only requirement is to include a line of comments in the first few lines of the source code, with double quotes containing the schema of the compilation, such as; Mode= "DOS", the compiler is automatically compiled into a DOS assembler, and the relevant key is Dos/con/dlg/exe/dll/mdi/vxd/lib.

Small tips:

===============

1.RedASM has a very convenient function, called the ASCII code table, which is very useful to know the value of certain characters, in fact editplus this function more convenient, you just move the cursor to the corresponding characters, in the EditPlus status bar will automatically display its ASCII value, Although special characters cannot be displayed, they are already quite handy.

2. When a file in a custom process, too many functions, you can point to search the list of-> functions to see the existing process, double-click can immediately jump to the table of contents row. For large files quite file.

3. When you want to find characters, if you want to find out whether a variable is declared, you can double-click to select the Word, and then click the text selected when you find it automatically appears in the Find edit box.

4. When you want to find the corresponding Lib of an API function or view the value of a constant, you can do this: Dot search-> in the file, enter the name of the API, then file type use *.inc, folder select MASM for editplus include file, Then the point lookup, in less than 1 seconds, can find its corresponding inc file. Also very convenient, and set up, after the search only double-click to query the API point in the file to find, all the settings do not need to input, direct point lookup on the line, with good words, this than in the API manual to find more convenient.

5. If you compile with the EditPlus Output window, when an error occurs, you simply double-click the line in the list where the error prompts, you can automatically jump the source file related lines, this is the same as the VC editor. This function is also quite convenient. In the parameter setting, check "capture Output" under the tool that the user tool needs to use the Output window.

6. If you're already writing a program with MASM, and want to write a software, recommend the use of engineering functions, so you can set a series of files in a project, in the following open file name list on the left side of a folder icon, click can be in the pop-up menu in the file set the project file.

7. Add the API Help file to the 5th toolbar, then just select the keyword to query, point 5th toolbar can display its information, very convenient. If you have not yet installed the API reference manual, please go to my site to download.

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.