8051 Instruction Set: Facebooktwitterlinkedinredditpinterestshare
8051 Instruction Set: Facebooktwitterlinkedinredditpinterestshare
MOV AH,09H;
LEA DX,MSG;
INT 21H;
Line5. RET
Line6. P1 ENDP
Line4. JG NOTFOUND
Line5. MOV AX, BX
Line4. INC SI
Line1. .DATA
Line3. .CODE
CMP BL, DX
S[0] = 0
S[1] = 1
S[2] = 1
S[3] = 2
S[4] = 3
occupied used
to Rx
to acc
acc
address
address in Rp
address in Rp to acc
@Rp,add address in Rp
in Rp
external add in Rp to
acc
acc
DPTR
copied to acc
to acc
address contained in SP
contained in SP to
decrement SP
add
address in Rp
address in Rp
Logical Instructions
Logical Instructions: –
occupied used
result in acc
result in add
result in acc
result in add
result in acc
result in add
acc
with carry
Rrc a Rotate acc one bit right — 1 1
with carry
occupied used
add
address in Rp
add
content of address
in acc
acc
Add a, add Add the data in add with Direct 2 1
acc
result in acc
result in acc
result in acc
acc
in acc
byte in B
remainder in B
format
Branching Instructions
Branching Instructions: –
occupied cycles
used
b,label 0
label
accumulator is 0
accumulator is not 0
and dptr
address sadd
address sadd
address sadd
operation
operation