当前位置:网站首页>Assembly led on
Assembly led on
2022-06-26 08:16:00 【Ice leaf LV】
MCS-51 Single chip microcomputer
Maybe C Everyone knows language , But it is not necessary to use assembly language .
Use assembly language to light up a LED The lamp
Program :
ORG 0000H
MAIN:
CLR P2.0
LJMP MAIN
END
The notes are as follows :
ORG 0000H ;ORG It's a pseudo instruction , The corresponding machine code is not generated . Start address from 0000H Start .
MAIN: ;MAIN It's a label , Statement symbol address .
CLR P2.0 ;CLR It's a pseudo instruction , function : Zero clearing , hold P2.0 Register bit is cleared .
LJMP MAIN ;LJMP It's a pseudo instruction , function : Program jump instruction , Jump to the label MAIN Procedures section .
END ;END Is the assembly end directive , function : This instruction is used to terminate the source program assembly .
// Don't learn assembly , You will never understand how a program works at the bottom .
边栏推荐
- WiFi-802.11 2.4G频段 5G频段 信道频率分配表
- X-VLM多模态模型解读
- h5 localStorage
- Listview control
- 技术分享 | MySQL:caching_sha2_password 快速问答
- drf的相关知识
- Oracle database self study notes
- Install the local Google plug-in and watch the free video through the oil monkey script
- Diode voltage doubling circuit
- Opencv鼠标事件+界面交互之绘制矩形多边形选取感兴趣区域ROI
猜你喜欢

xxl-job配置告警邮件通知

Can the encrypted JS code and variable name be cracked and restored?

Recognize the interruption of 80s51

PyTorch-12 GAN、WGAN

Analysis of internal circuit of operational amplifier

Getting started with idea

Chapter VII (structure)

Method of measuring ripple of switching power supply

Data governance: from top project to data culture!

I want to create SQL data (storage structure)
随机推荐
Opencv mouse event + interface interaction drawing rectangle polygon selection ROI
Wifi-802.11 2.4G band 5g band channel frequency allocation table
ASP. Net and Net framework and C #
PyTorch-12 GAN、WGAN
教你几招:30句哄女孩的“霸道”温馨话,不看后悔!
Reflection example of ads2020 simulation signal
Analysis of internal circuit of operational amplifier
Necessary protection ring for weak current detection
CodeBlocks集成Objective-C开发
X-VLM多模态模型解读
Idea update
Chapter 4 (functions and preprocessing)
What is the five levels of cultivation of MES management system
Oracle 19C local listener configuration error - no listener
Getting started with idea
我想要股票账户优惠开户,如何操作?手机开户安全么?
[untitled]
Calculation of decoupling capacitance
Method of measuring ripple of switching power supply
JWT in go