Datasheet 搜索 > 8位微控制器 > Microchip(微芯) > PIC18F47K40-I/P 数据手册 > PIC18F47K40-I/P 用户编程技术手册 3/52 页


¥ 22.929
PIC18F47K40-I/P 用户编程技术手册 - Microchip(微芯)
制造商:
Microchip(微芯)
分类:
8位微控制器
封装:
PDIP-40
描述:
MICROCHIP PIC18F47K40-I/P 微控制器, 8位, XLP, PIC18FxxKxx, 64 MHz, 128 KB, 4 KB, 40 引脚, DIP 新
Pictures:
3D模型
符号图
焊盘图
引脚图
产品图
页面导航:
功能描述在P5P8P11P13P14P15P33P35P41P42P46P49
导航目录
PIC18F47K40-I/P数据手册
Page:
of 52 Go
若手册格式错乱,请下载阅览PDF原文件

2.3 ■ Assembly Language Program Structure 39
Example 2.1
▼
The following instructions contain valid labels:
(a) loop addwf 0x20,F,A
(b) _again addlw 0x03
(c) c?gtm andlw 0x7F
(d) may2_june bsf 0x07, 0x05,A
The following instructions contain invalid labels:
(e) isbig btfsc 0x15,0x07,B ;label starts at column 2
(f) 3or5 clrf 0x16,A ;label starts with a digit
(g) three-four cpfsgt 0x14,A ;label contains illegal character “-”
▲
2.3.2 The Mnemonic Field
This field can be either an assembly instruction mnemonic or an assembler directive and
must begin in column 2 or greater. If there is a label on the same line, instructions must be sep-
arated from that label by a colon or by one or more spaces or tabs.
Example 2.2
▼
Examples of mnemonic field:
(a) false equ 0 ;equ is an assembler directive
(b) goto start ;goto is the mnemonic
(c) loop: incf 0x20,W,A ;incf is the mnemonic
▲
2.3.3 The Operand Field
If an operand field is present, it follows the mnemonic field. The operand field may contain
operands for instructions or arguments for assembler directives. Operands must be separated
from mnemonics by one or more spaces or tabs. Multiple operands are separated by commas.
The following examples include operand fields:
(a) cpfseq 0x20,A ; “0x20” is the operand
(b) true equ 1 ; “1” is the operand
(c) movff 0x30,0x65 ; “0x30” and “0x65” are operands
2.3.4 The Comment Field
The comment field is optional and is added for documentation purpose. The comment field
starts with a semicolon. All characters following the semicolon are ignored through the end of
the line. The two types of comments are illustrated in the following examples.
(a) decf 0x20,F,A ;decrement the loop count
(b) ;the whole line is comment
器件 Datasheet 文档搜索
AiEMA 数据库涵盖高达 72,405,303 个元件的数据手册,每天更新 5,000 多个 PDF 文件