Tuesday, March 26, 2013

the previous assembly language file

Proposed first to save the blank document, click the menu "File", in the drop-down menu select "Save As" option in the pop-up dialog box "File name" field on the right edit box, enter the file name you want to use at the same time, you must enter the correct extension, such as "Text1.asm", then click "Save" button. (Note: If you write programs in C language, the extension ". C"; If you write programs in assembly language, the extension ". Asm", and must add the extension file name.) Returned to the editing interface, a single Click "Target 1" in front of "+" sign, then "Source Group 1" on the right-click pop up the shortcut menu shown in Figure 4. The use requirement of laser pointer is not too much.
Then click "Add File to Group'Source Group 1 '", open the dialog box as shown below, in the "File Types" at the default "C Source file (*. c)", because we save the previous assembly language file, so need to select "Asm Source file (*. s *; *. src; *. a *)", so you can see in the above assembly language file you just saved "xianshi.asm", then double-click the file automatically added to the project, click "Close" to close the dialog. Then you can enter on the right side of the editor of the assembler source. In the input command, the reader can see in advance the benefits of saving the file to be edited: Keil will automatically identify keywords and prompt the user in different colors attention, so that users will make fewer mistakes, help to improve programming efficiency. After entering the program do not forget to save again. After editing the program file, click the "Project" menu, select "Built target" option (or use the shortcut key F7), or click the shortcut icon on the toolbar to compile the code, if there are errors in the final output window will appear in all the wrong location and wrong reasons, and "Target not created" prompt. The use requirement of laser pointer will guide the user much.
Double-click the Department's error, the corresponding error in the editing area at the left a blue arrow command prompt, then change the current error. All tips will be modified over the error, and then repeat the operation compiled, until the emergence of "" shiyan1 "- 0 Error (s), 0 Warning (s)", compiled entirely by description.

No comments:

Post a Comment