You are on page 1of 3

ELECTRNICADIGITALII1

PROBLEMASRELACIONADOSCONELCONJUNTODEINSTRUCCIONESDEL8051
1. Culeselcdigohexadecimalenbytesparalasinstruccionessiguientes?
a. INC DPTR
b. MOV A,#2
c. CJNE A,#0DH,$+3
d. PUSH ACC
e. SETB P2.2
f. MOV DPH,#84H
g. JNB ACC.0,$
h. POP DPH
i. MOV A,#=
j. XLR A,#S
k. CLR C
2. Quinstruccionesrepresentanlossiguientesbytesdecdigodemquina?(CADAINCISO
ESUNASOLAINSTRUCCIN)
a. 7EH,02H
b. C2H,97H
c. 13H
d. F6H
e. 22H
f. 90H,80H,30H
g. EFH
h. 12H,80H,50H
i. F5H,8DH
j. 04H
k. 83H
l. 75H,8AH,E7H
3. Lainstruccinsiguienteesdel8051:
MOV 50H,#0FFH
a. Culeselcdigodeoperacinparaestainstruccin?
b. Cuntosbytestienelainstruccin?
c. Expliqueelpropsitodecadabytedelainstruccin.
d. Cuntosciclosdemquinasenecesitanparaejecutarlainstruccin?
4. Culeseloffsetrelativoparalainstruccin
SJMP ADELANTE

silainstruccinestenlasdirecciones2FF0Hy2FF1H,ylaetiquetaADELANTErepresenta
lalocalidad041FH?
5. Culeseloffsetrelativoparalainstruccin
SJMP ATRAS
DR.JAVIERVEGAPINEDAINSTITUTOTECNOLGICODECHIHUAHUA

ELECTRNICADIGITALII2

silainstruccinestenlasdireccionesA050HyA051H,ylaetiquetaATRASrepresentala
localidad9FE0H?
6. Asumaquelainstruccin
AJMP ADELANTEestenlamemoriadecdigoenlas
direcciones2FF0Hy2FF1H,ylaetiquetaADELANTEcorrespondeaunainstruccinenla
direccin2F96H.Culeselcdigodemquinaparaestainstruccin?

7. Asumaquelainstruccin
ACALLFACTORIALestenlamemoriadecdigoen
lasdirecciones06F4Hy06F5H,ylaetiquetaFACTORIALcorrespondeaunasubrutina
empezandoenladireccin07ABH.Culeselcdigodemquinaparaestainstruccin?

8. Enunciertopuntodeunprograma,sedeseasaltaralaetiquetaEXITsielacumuladores
igualalcdigoASCIIdelaletraQoq,delocontrarioqueelprogramacontinesin
saltar.Quinstruccin(es)debera(n)deusarse?

9. Lainstruccin
SJMP BACK
estenlamemoriadecdigoenla
direccin0100Hy0101HylaetiquetaBACKcorrespondeaunainstruccinqueestenla
direccin00AEH.Culeselcdigohexadecimaldelainstruccin?

10. Lainstruccin
CJNER7,#Z,NOCERO
estsucdigodemquinaenlas
direcciones022AHa022CH.Culessonlosbytesenlenguajedemquinaparaesta
instruccin?

11. Quhacelasiguienteinstruccin?
SETB 0D7H

12. Culesladiferenciaentrelassiguientesdosinstrucciones? INCAeINCACC

13. Culessonlosbytesdelenguajedemquinaparalasiguienteinstruccin?LJMPMAIN
silaetiquetaMAINrepresentaladireccinA0F6H?

14. Asumaqueelacumuladorcontiene5AH.Culeselcontenidodelacumuladordespusde
lainstruccinsiguiente?:

a. XRL A,#0FFH
b. ORL A,#47H
c. RLC A
(conPSW=0C0Hantesdeejecutarlainstruccin)
d. RRC A
(conPSW=78Hantesdeejecutarlainstruccin)
e. Despusdelasecuenciadeoperaciones:
MOV
A,#7FH
MOV
50H,#29H
MOV
R0,#50H
XCHD A,@R0

DR.JAVIERVEGAPINEDAINSTITUTOTECNOLGICODECHIHUAHUA

ELECTRNICADIGITALII3

15. Lamemoriainternadel8051estinicializadacomosigue,inmediatamenteantesdela
ejecucindeunainstruccinRET:
Direccininterna Contenido . SFRs Contenido
0B
9A
SP
0B
0A
78
PC
0200
09
56

A
55
08
34

07
12

CuleselcontenidodelPCdespusdequelainstruccinRETseejecuta?

16. Unasubrutinadel8051semuestraacontinuacin:
SUB: MOV R0,#20h
LOOP: MOV @R0,#0

INC
R0

CJNE R0,#80H,LOOP

RET
a. Quhacelasubrutina?
b. Cuntosbytesenmemoriaocupalasubrutina?

Seleccionadosdellibro:The8051Microcontroller,3rdEd,I.ScottMacKenzie,PH,1999.

DR.JAVIERVEGAPINEDAINSTITUTOTECNOLGICODECHIHUAHUA

You might also like