elhacker.net cabecera Bienvenido(a), Visitante. Por favor Ingresar o Registrarse
¿Perdiste tu email de activación?.

 

 


Tema destacado: (TUTORIAL) Aprende a emular Sentinel Dongle By Yapis


  Mostrar Mensajes
Páginas: [1]
1  Programación / ASM / Ayuda Luces secuenciales en: 16 Diciembre 2011, 05:02 am
Estoy realizando un programa con nasm para crear luces secuenciales (leds) el problema esta k no lo hace automaticamente y solo lo hace de izq a der una sola vez y para ejecutar mi programa tengo k hacerlo mediante el debug, siendo k tiene k hacerlo automaticamente

codigo:

SECTION .stack pila
SECTION .data datos
SECTION .text codigo
 ..start:
 
mov ax,data
mov ds,ax

mov bh,30h
sub bh,30h

mov dx,378h
mov al,bh
out dx,al

uno:
mov bx,1
cmp bx,8
jne led
je salir



led:
shl al,1
mov dx,378h
out dx,al

mov cx,1
cmp cx,8
je salir
jne uno


 salir:
 mov ax,4C00h
 int 21h


espero me puedan ayudar
Páginas: [1]
WAP2 - Aviso Legal - Powered by SMF 1.1.21 | SMF © 2006-2008, Simple Machines