Win32asm memo: setting up the ultraedit experiment environment

Source: Internet
Author: User
Tags ultraedit

1. Download me to download this version: "ultraedit 13.00a + 2 purified green free registration edition" (http://www.onegreen.net/Soft_Show.asp? Softid = 3453)

2. Set (1) syntax coloring: There is a wordfile.txt file under the installation directory of ultraedit, which is the configuration file for syntax coloring. Ultraedit does not color the MASM syntax by default. To enable its support, you must first download a file that supports coloring: coloring. Here is a possible change, that is, the "/l20" at the beginning. l should mean language, and 20 refers to the first (I guess the last two sentences ), ultraedit supports only 20 syntax coloring methods at a time. So if your ultraedit has never been moved, it will be fine by default. If you want to compact, change to "/LXX" (XX followed by the previous "/Lxx-1"), in short as long as it does not repeat the line. (2) configure the script for "user tool": Create a new batch file named "Go. bat ", the content is as follows (Lib, include, path should be modified according to your actual situation ):

@ Echo off </P> <p> REM simply complie, build and execute win32asm programs. </P> <p> REM Author: t0nsha <liaodunxia {at} gmail.com>, update @ 20080526 </P> <p> set filename = "% ~ N1 "</P> <p> if not exist % filename %. ASM (</P> <p> echo error! The ASM source file: "% filename:" = %. ASM "does not exist! </P> <p> echo usage: % ~ N0 filename [. ASM] </P> <p> pause </P> <p> Goto: EOF </P> <p>) </P> <p> if not exist "D:/masm32/bin/ml.exe" (</P> <p> echo error! Can't find "D:/masm32/bin/ml.exe "! </P> <p> echo please confirm you 've already installed masm32v9r at the root of the D: /</P> <p> pause </P> <p> Goto: EOF </P> <p>) </P> <p> set include = D: /masm32/include; % include % </P> <p> set Lib = D:/masm32/LIB; % lib % </P> <p> set Path = D: /masm32/bin; % PATH % </P> <p> set mloption =/C/COFF/CP/Zi/nologo </P> <p> set linkoption =/subsystem: windows/debug/debugtype: CV/nologo </P> <p> set linkfile = % filename %. OBJ </P> <p> call: clean % Filename % exe pdb </P> <p> ml % mloption % filename %. ASM </P> <p> If exist % filename %. RC (</P> <p> RC % filename %. RC </P> <p> set linkfile = % linkfile % filename %. res </P> <p>) </P> <p> REM to share ". data? "Section, please add:/section :. BSS, S </P> <p> If exist % filename %. def set linkoption = % linkoption %/dll/DEF: % filename %. def </P> <p> link % linkoption % linkfile % </P> <p> REM ext info: http://support.microsoft.com/default.aspx? SCID = KB; en-US; q132340 </P> <p> call: clean % filename % OBJ res ilk exp </P> <p> If exist then filename=.exe start/B CMD/C then filename=.exe </P> <p> echo on & Goto: EOF </P> <p>: Clean </P> <p> If "% 2" = "" Goto: cleanend </P> <p> If exist % filename %. % 2 del % filename %. % 2 </P> <p> shift </P> <p> goto clean </P> <p>: cleanend

(3) Preparation of "user tools": Choose "Advanced (a)"> "tool preparation (o )... ", open the" tool Preparation "window, click" insert ", select the" command "label, and enter" & go "in" menu item name (m "; enter "D:/masm32/nmake_make/go. bat "% N" (go. for bat, follow your own settings. The N of % N is better to be lowercase N, if it is capital N, A long file name is converted to a DOS 8.3 format file name), and "% P" is entered in "working directory (W):" To represent the current path. (4) Add to "toolbar": Select "Advanced (a)"> "preparation (c )... ", open the" Preparation "dialog box, expand" toolbar and menu ", click" Custom toolbar ", and find" user tool 1 "in the right list box of the" toolbar Preparation "window ", select, click the right triangle, and click OK. The defined "user tool 1" is added to the toolbar. (5) define the shortcut key (F5): in step 2, open the "configuration" dialog box, find "Key ing", find "user tool 1", and press new (multiple) key: "in the text below, press the" F5 "key and click" allocate ". After writing the program, we can run it like" F5 "in VC ++.

3. Here is a win32asm applet for acceptance. Come and check the results!

. 386 </P> <p>. model flat, stdcall </P> <p> Option Casemap: None </P> <p>; include </P> <p> include windows. INC </P> <p> include user32.inc </P> <p> includelib user32.lib </P> <p> include kernel32.inc </P> <p> includelib kernel32.lib </P>> <p>; data </P> <p>. data </P> <p> szcaption dB 'Congratulations, 0 </P> <p> sztext db' when you see this information, you can compile the Win32 Assembler! ', 0 </P> <p>; Code </P> <p>. code </P> <p> Start: </P> <p> invoke MessageBox, null, offset sztext, offset szcaption, mb_ OK </P> <p> invoke exitprocess, null </P> <p> end start </P> <p>

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.