Skip to content

Instantly share code, notes, and snippets.

@Reflej0
Created April 10, 2017 00:15
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Reflej0/68b4373dd6433a76d92a4ca8f5652b4e to your computer and use it in GitHub Desktop.
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
*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