Created
April 10, 2017 00:11
-
-
Save Reflej0/d825846bda9106b3687e173562831f48 to your computer and use it in GitHub Desktop.
Programa para contar los numeros negativos y pares dentro de un vector en Assembler, en Motorola 68HC11
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*Cuente los numeros negativos y los pares. | |
ORG $0000 | |
Dirini RMB 2 | |
DirFin RMB 2 | |
Neg RMB 1 | |
Par RMB 1 | |
ORG $C000 | |
LDX DirIni | |
Inicio LDAA 0,x | |
ROLA | |
BGE Espos | |
INC Neg | |
Espos LDAB 0,x | |
RORB | |
BCS Impar | |
INC Par | |
Impar INX | |
CPX DirFin | |
BLO Inicio |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment