
- Open Keil and create a new 51 project, then create a main.c file and add it to the source code.
- Click on "New File" button again and create a new assembly language source file named test.asm and save it to the specified directory.
- In test.asm, input the following code:
- After writing the code in test.asm, you need to add it to the main.c source code. Right-click on the corresponding source program folder of the main.c source code and select "Add Files to Group..." software will show up with an "Add Files to Group..." dialog box.
- Keil's default source files are C, so we search for all the assembly language source files using "*.asm". Selecting the first file and clicking "Add" will show all the assembly language files in that directory.
- Add test.asm after clicking "Add" twice in main.c, and click "Add" again to complete adding the file.
- When compiling test_fun in the assembly source program, if RSEG is not added before the function, the compiler will output errors and warnings.
It's hard to use human language to write software because of the inherent ambiguity in natural languages. However, it's relatively easy to learn programming languages like Assembly Language compared to learning human language. Also, as more researches focus on Natural Language Processing (NLP), there are many ways to develop simple programs without human intervention using NLP.
0
