vscode 51单片机汇编代码片段推荐
时间: 2023-07-28 09:35:08 浏览: 242
以下是一些常用的VS Code 51单片机汇编代码片段:
1. `MOV`指令:
```json
"MOV": {
"prefix": "mov",
"body": [
"mov ${1:dest}, ${2:src}"
],
"description": "MOV instruction"
}
```
2. `ADD`指令:
```json
"ADD": {
"prefix": "add",
"body": [
"add ${1:dest}, ${2:src}"
],
"description": "ADD instruction"
}
```
3. `SUBB`指令:
```json
"SUBB": {
"prefix": "subb",
"body": [
"subb ${1:dest}, ${2:src}"
],
"description": "SUBB instruction"
}
```
4. `DJNZ`指令:
```json
"DJNZ": {
"prefix": "djnz",
"body": [
"djnz ${1:reg}, ${2:label}"
],
"description": "DJNZ instruction"
}
```
5. `JC`指令:
```json
"JC": {
"prefix": "jc",
"body": [
"jc ${1:label}"
],
"description": "JC instruction"
}
```
这些代码片段可以提高您的代码编写效率,您可以在 VS Code 中通过输入相应的前缀来快速使用它们。
阅读全文
相关推荐













