page24
24
Structure d’un programme
Code source + variables + pile

Programme simple : CODE
CSEG at 0000h
LJMP debut
ORG 85h
Debut :
MOV
DPTR, #22AAh
MOV
A, #0Ah
MOVX A,@DPTR
SJMP
debut
End
adresse
code
0000h
0001h
0002h
…
0085h
0086h
0087h
0088h
0089h
008Ah
008Bh
008Ch
02h
00h
85h
…
90h
22h
AAh
74h
0Ah
F0h
80h
F8h
Code instruction LJMP
Code instruction MOV DPTR ,#data
Code instruction MOV A, #data
Code instruction MOVX A, @DPTR
Code instruction SJMP