Skip to content

Instantly share code, notes, and snippets.

@Reflej0
Created April 10, 2017 00:11
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/d825846bda9106b3687e173562831f48 to your computer and use it in GitHub Desktop.
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
*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