Ensamblador - informacion sobre puerto seriales

 
Vista:

informacion sobre puerto seriales

Publicado por diego (1 intervención) el 18/10/2006 15:59:02
Cordial salduo:

Solicito informacion debido a que deseo hacer un sensor de temperatura leido por el puesto serial.
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder

RE:informacion sobre puerto seriales

Publicado por Karina (3 intervenciones) el 09/02/2007 16:14:52
; thermometer.exe is started automatically from c:\emu8086\devices.
; it is also accessible from the "virtual devices" menu of the emulator.

#start=thermometer.exe#

; temperature rises fast, thus emulator should be set to run at the maximum speed.

; if closed, the thermometer window can be re-opened from emulator's "virtual devices" menu.


#make_bin#

name "thermo"

; set data segment to code segment:
mov ax, cs
mov ds, ax

start:

in al, 125

cmp al, 60
jl low

cmp al, 80
jle ok
jg high

low:
mov al, 1
out 127, al ; turn heater "on".
jmp ok

high:
mov al, 0
out 127, al ; turn heater "off".

ok:
jmp start ; endless loop.
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar