Está en la página 1de 1

1.

EQU CONT $AB


EQU ALTA $AA
LAIM 8
STA CONT
LAIM $EF
STA ALTA
LAIM 0
Ciclo1 ADDI ALTA
BCS fin
DBZ ALTA
DBZ CONT
JMP ciclo1
STA $43
Fin STOP

2. Existen 20 ($14) datos almacenados en memoria desde la dirección $EF


hacia posiciones decrecientes. Realice un programa CS2 que los reescriba
a partir de $9F.
EQU fuente $80
EQU cont $81
EQU stind $F0
LAIM $80
ROL
ROL
STA stind
LAIM $9F
ADD stind
STA stind
LAIM $F0
ROL
ROL
ROL
ROL
STA $F1
LAIM $14
STA cont
LAIM $EF
STA fuente
ciclo: LAIM 0
ADDI fuente
JSR stind
DBZ stind
DBZ cont
JMP ciclo
STOP

También podría gustarte