单片机汇编语言中符号 # 是什么意思

来源:百度知道 编辑:UC知道 时间:2024/06/19 20:43:07

#后面的数表示为立即数,一般就是常数,有时是地址值。

你这回答不完全,你这只能特指在51系列的汇编中,因不同厂家的汇编就不同样,如义隆的就是用@表示后是立即数。这些符号只是一个特定的表示符,在不同的厂家芯片的汇编中这些*,#,@,%,......都有只是一个厂家在出汇编时特定的一个符号罢。要具体到那个厂家的什么单片机上并要说明这符号在什么位置上才好回答你这问题。

解释说明的意思,汇编时不被编译

LIST p=16F84 ; PIC16F844 is the target processor

#include "P16F84.INC" ; Include header file

CBLOCK 0x10 ; Temporary storage
tempo
tptrl
tptrh
note
length
pitch
temp
dl1
dl2
ENDC

ORG 0
entrypoint goto initialise

ORG 4
intvector goto toggle

initialise ; Register set up:
clrw ; Zero.
movwf PORTA ; Ensure PORTB is zero before we enable it.