Created
April 10, 2017 00:15
-
-
Save Reflej0/68b4373dd6433a76d92a4ca8f5652b4e to your computer and use it in GitHub Desktop.
Programa para encontrar un numero e indicar en que posicion esta 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
*Encontrar un numero en un vector e indicar en que posicion de memoria esta. | |
ORG $0000 | |
Dirfin RMB 2 | |
Cant RMB 1 | |
Dato RMB 1 | |
Memoria RMB 2 | |
ORG $C000 | |
LDX DirFin | |
Inicio LDAA 0,x | |
CMPA Dato | |
BNE Seguir | |
STX Memoria | |
Seguir DEX | |
DEC Cant | |
BNE Inicio | |
FIN BRA FIN |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment