Radasm Use of Concise Handbook (Chinese Version) _ Microcomputer principle and assembly language

Source: Internet
Author: User
Operational aspects: First, Bookmark:
Shift+f8 bookmarks or deletes bookmarks on the line (crtl+0-9 can define 10 bookmarks that are stored in the file) and can be bookmarked by editing \ Bookmark \ Toggle. (Crtl+f8 for next bookmark, F8 for previous bookmark) Two, column selection:
Crtl+b for Toggle Line & Liera box when drawing box. Expand & Close Module & Show line number:
Crtl+e for the expansion and shutdown module, the left 2 & 3 small buttons are expanded all and close all the way, 1 is the display line number. Iv. Display API function prototypes:
When the cursor touches a function name, a prototype of the function can be displayed and opened with the View \ Information tool. Five, Output window:
You can use the View \ Output window or click on the icon on the title bar. Six, full screen display:
Switch through CRTL+W. Seven, lock the file:
In the file tree, you can lock & unlock files with the right mouse button. Viii. New Project:
When you create a project, the "Import" button appears in the last 2nd step of the wizard to import existing files (such as icons), and then, in the filegroup, the right key \ Import \ file can be categorized by the engineering group (right-key file tree). Nine: Set up the Project save location & file association:
To set the location where the project is saved: through the options \ Settings path projects, file association: Set (Association. ASM and. Rap) in the folder Options \ file Types tab 10: Breakpoint Settings: (the program will only work when it runs Crtl+shift+f5)
A: Change the "release" to "Debug" in the Engineering option
B: Add the Include C:\RadASM\Masm\Inc\RADbg.inc at the end of the file definition
C:alt+f8 to set & clear breakpoints, you can clear them all by editing \ Breakpoints
D: When the breakpoint is not reflected, it is possible that there is no F5 or the resource file dependent on link is not present (link is set through the project option) 11: Resource editors use VC to edit, edit good. The RC code can be pasted into the radasm. 12: In the Toolbox
1) ASCII Coding table
2) The value of the color pickup
3) Code formatting
Makefile aspect: Project \ Engineering Options: (only a few commonly used)
Compile (Compile resource file): 4,o, $B/RC. exe/v/I "$I", 1 (4 res file name representing the final output)
Assembly (assembly ASM for machine code): 3,o, $B \ml. EXE/C/coff/cp/zi/nologo/i "$I", 2 (3 for obj filename of final output)
Link (connect file and generate PE file): 5,o, $B \link. Exe/subsystem:windows/debug/version:4.0/libpath: "$L"/Out: "$", 3,4 (/out: "$" PE file name)
Run (run file): 0,0,,5 (5 represents the running filename)
Run W/debug (Debug run): 0,0, "$E \ollydbg", 5 (5 represents the file name of the debug run)
The order in which the PE files are generated:
1:compile (compile resource file) Shift+f5
2:assembly (assembly ASM for machine code) F5
3:link (connect file and generate PE file) crtl+alt+f5
4:run (run file) shift+crtl+f5
5:run w/debug (Debug Run) Crtl+d tips:
One: By breaking a breakpoint at 2, 3 lines, when performing to line 3rd hit, look at the value in the eax, and paste the value into the tool in VS-Error lookup. You can see what the wrong problem is. (Note that the number is hexadecimal)
1:invoke Loadlibrary,offset DllName
-"2:invoke GetLastError
-"3:invoke Messagebox,null,offset sztext,offset SZCAPTION,MB_OK Other:
1. Options \ Setting Path: You can set the appropriate path.
2. OD related paths can be set in ollydbg: Options \ Interface options \ Directory tab. FAQ:
A relative path problem when the resource file cannot be found in 1.radasm
To set engineering options when resources are available
Engineering \ Engineering Options 4,o, $B/RC. exe/v/I "$I", 1
This allows you to use the relative path in the RC file. 2. Format output strings and values
Wsprintf,addr szbuffer,addr szstart,............ szbuffer db 256 dup (?); global variables
Local @szBuffer [256]:d B; Locals Szstart db ' return:%d! ', 0; %d output decimal%x output hexadecimal%s output string,%c output character,%08x, 0 padding when less than 8 bits,%lu is output 32-bit integer
Invoke Wsprintf,addr szbuffer,addr Szstart,eax;
Szstart db ' return:%s! ', 0; If the%s format is used, the addr pseudo instruction is required because%s receives the address of a variable
Invoke Wsprintf,addr szbuffer,addr szstart,addr sztext;
Invoke Messagebox,null,offset Szbuffer,offset SZCAPTION,MB_OK

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.