Professional Documents
Culture Documents
A b starting address
Example :
A b 9400
9400: MOV A,#04H
9402: INC A
.........
B) Viewing already entered program : Unassemble program in
memory
To view an already entered program use the command U
(Unassemble). This command is used to unassemble a given
memory block and display it on the LCD.
Syntax:
Example :
U b 9400 9406
9400: 7407 MOV A,#04H
9402: 04
INC A
.........
C) Entering Data in user memory area: Examine and Modify
memory content
E command allows the user to examine and modify the contents of
memory locations individually.
Syntax:
E b starting address
Use space bar key for viewing and modifying the
content of next memory location. If change in data is not
required use space bar to view/modify the next
memory locations content. Press Enter key to exit edit
mode.
Example :
E b 9400
9400: 02. new data
9400: 02. 55 space bar 30. new data
8051 PROGRAMS
Syntax:
Example :
D b 1000 1020
1000: XX XX XX XX XX XX XX XX
1008: XX XX XX XX XX XX XX XX
GO b starting address
Use LJMP 6000H at the end of the instruction for a
finite loop program, as because it returns to the sign on
prompt.
Example :
GO b C000
8051 PROGRAMS
8051 PROGRAMS
NB:
S1, S2 and S3 are the addresses; their value should be noted while
entering the program.
8051 PROGRAMS
8051 PROGRAMS
LCALL C0FFH
MOV A, #09H
MOVX @DPTR, A
LCALL C0FFH
MOV A, #05A
MOVX @DPTR, A
LCALL C0FFH
DJNZ R4, S5
LJMP 6000H
/* 3rdSequence */
/* 4thSequence */
*/