far accendere " a cascata " led da disp.creato da

Quello più vicino al linguaggio macchina vero e proprio.

far accendere " a cascata " led da disp.creato da

Postby Dersew on Sat Oct 14, 2006 3:32 pm

ehehhe..già, un bel lavoretto..ecco un listato realizzato da poco ke permettere ad un apparekkio cn collegati 8 led 8 resistenze e poi una porta parallela...l'accenzione dei led a cascata semplicemente premendo un stato qualsiasi della tastiera...

Code: Select all
.186
.model tiny
.code
include rit2.txt
org 100h
start: mov al,00000000b
       mov dx,278h
       out dx,al
       mov ah,10h
       int 16h
       mov al,00000001b
       mov dx,278h
       out dx,al
       mov ah,10h
       int 16h
       mov al,00000010b
       mov dx,278h
       out dx,al
       mov ah,10h
       int 16h
       mov al,00000100b
       mov dx,278h
       out dx,al
       mov ah,10h
       int 16h
       mov al,00001000b
       mov dx,278h
       out dx,al
       mov ah,10h
       int 16h
       mov al,00010000b
       mov dx,278h
       out dx,al
       mov ah,10h
       int 16h
       mov al,00100000b
       mov dx,278h
       out dx,al
       mov ah,10h
       int 16h
       mov al,01000000b
       mov dx,278h
       out dx,al
       mov ah,10h
       int 16h
       mov al,10000000b
       mov dx,278h
       out dx,al
       mov ah,10h
       int 16h
       mov al,11111111b
       mov dx,278h
       out dx,al
       mov ah,10h
       int 16h
       jmp start
   ret

END start
code end


:lol: :D
Image
User avatar
Dersew
Algoritmo
 
Posts: 180
Joined: Thu Jun 08, 2006 8:17 pm
Location: Catania

far accendere " a cascata " led da disp.creato da

Sponsor

Sponsor


Postby k8 on Sat Oct 14, 2006 3:39 pm

Grande Der, bella roba!
Perchè non posti anche il video!
ahah che ficata

edit:
che sarebbe
mov al,11111111b ?
10,100,1000,10000
:shock: :shock:
User avatar
k8
Admin
 
Posts: 2115
Joined: Tue Jun 06, 2006 4:00 pm


Return to ASM

Who is online

Users browsing this forum: No registered users and 1 guest