Вы находитесь на странице: 1из 4

Memory Label Mnemonics Operands addressing Machine Memory Type of Comments Flags

mode used cycle Byte Instruction getting


Address
Required Required affected by
the
Instruction.

ORG Starts the None


program

XX MOV DPTR,# IMMEDIA 1 1 Data Moves None


MYDAT TE transfer
A data to

data

pointer

89H MOV TMOD,# IMMEDIA 1 1 Data Sets timer None


20H TE transfer
to timer 1

mode 2

8CH MOV TH1,#-3 IMMEDIA 1 1 Data Sets baud None


TE transfer
rate to

9600

98H MOV SCON,#5 IMMEDIA 1 1 Data Sets sm1 None


0H TE transfer
and ren

bits to

high

SETB TR1 Direct bit 2 2 Bit Starts the None


addressin manipul timer 1
g ation

D:0x00 MOV R1,#14 IMMEDIA 1 1 Data Moves None


TE transfer data to R1
D:0xE0 AGAI CLR A DIRECT 2 1 Bit Clears the None
N manipul accumulat
ation or

C:0200 MOVC A,@A+D INDEXED 1 2 Data Move None


0H PTR transfer data to A

99H MOV SBUF,A IMMEDIA 1 1 Data Moves A None


TE transfer to SBUF
register
Jump if TI
HERE JNB TI,HERE None 3 2 Bit None
register is
manipul not zero
ation

98H CLR TI DIRECT 2 1 Bit Clears the None


manipul TI
ation

INC DPTR None 1 1 Arithme Incremen None


tic ts the
instructi Data
on pointer

D:0x00 DJNZ R1,AGAI None 2 2 Branch Decremen None


N instructi t andJump
on if R1 is
not zero

SJMP XX None 2 2 Branch Short None


jumps to
the
location

MYD DB ‘VIT None 1 2 Directiv Assign None


ATA UNIVER e string
SITY’

END Ends the None


program
2nd

Memory Label Mnemonics Operands addressing Machine Memory Type of Comments Flags
mode used cycle Byte Instruction getting
Address
Required Required affected by
the
Instruction.

ORG OOOOH

89H MOV TMOD,# Immediat 1 1 Data Set the None


20H e transfer timer 1
and mode
2

8DH MOV TH1,#-6 Immediat 1 1 Data Sets baud None


e transfer rate to
4800

98H MOV SCON,#5 Immediat 1 1 Data Sets SM1 None


0H e transfer and REN
bits to
high

SETB TR1 Immediat 1 2 Bit Starts the None


e manipul timer
ation

None HERE JNB RI,HERE None 1 2 Bit Find RI is None


manipul 1 or not
ation

D:0xE0 MOV A,SBUF Immediat 1 1 Data Data None


e transfer transferre
d from
SBUT to A

90H MOV P1,A Immediat 1 1 Data Data None


e transfer transfer
from A to
P1

None CLR RI Direct 1 2 Bit Clear RI None


manipul
ation

None SJMP HERE None 1 1 Branch Short None


jump to
target

None END None None

Вам также может понравиться