1、打开Keil软件,在菜单栏找到Help按钮,然后点击“μVersion Help”调出帮助文档。

2、进入“C51 Development Tools”,切换到“目录”页,在目录当中找到“Ax51 Assembler User's Guide”,即“Ax51 汇编用户向导”。

3、点击“Ax51 Assembler User's Guide”左侧的“+”号,展开该目录,在子目录当中找到“Ax51 Introduction”,即“Ax51 介绍”。

4、同样,点击“Ax51 Introduction”左侧的“+”号,将其展开,子目录中会出现“Program Template File”,在右侧 窗口中会看到这个模板的内容。

5、在“Program Template File”内容的最上面有一行英文:
Program Template File
The following code template contains guidelines and hints on how to write your own assembly modules. This template file TEMPLATE.A51 is provided in the folder \C51\ASM.
这句话告诉读者,这个模板对应文件名为“TEMPLATE.A51”,可以在“\C51\ASM.”目录当中找到。

6、通过快捷方式找到你的Keil所在安装目录,然后切换到“\C51\ASM”,往下翻动,不出意外就会看到传说中的“TEMPLATE.A51”,这便是汇编语言模板文件。

7、模板文件“TEMPLATE.A51”可以通过常用的文本软件打开,里面的的例子涵盖了常用的大部分汇编语法,通过注释即可获取很多信息。
