⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 chr.bas

📁 82 sample programs written in BASCOM-8051 for 8051 developement
💻 BAS
字号:
'--------------------------------------------------------------
'                  CHR.BAS
'                 (c) 1997-2000 MCS Electronics
' This sample shows how to use the CHR() and BCD() function and
' It shows how to use the inline assembler
'--------------------------------------------------------------
Dim K As Byte
Again:
K = 65
Print K ; Chr(k) ; K ; Chr(66) ; Bcd(1)
Printhex K
Print "Now do some assembler"
'------------- Not supported but included : inline assembler --
 Mov A , #2     ;set register
 Mov B , #3     ;set-up second register
 Mul Ab         ;multiply
 Mov {k}, a     ;assign variable
 Print K
 ljmp .again     ;labels are converted to the labelname preceded by a  point
End

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -