Is there anyway of avoid get bound by the PortIO ??... :) f0dder ??

Hey bro, f0dder, :) i've optimized the code like this:
Onyl 2 bytes, jejeje, but bytes are bytes, no ?...




[COLOR=indigo]

ORG 100h

MOV DX,0278h
IN AL,DX
MOV AH,09h

CMP AL,0
JNZ LED_ON

LEA DX,LEDOFF
INT 21h
MOV AL,1
JMP EXIT

LED_ON:
LEA DX,LEDON
INT 21h
XOR AL,AL

EXIT:
MOV DX,0278h
OUT DX,AL

RET

LEDON DB 'The LED was ON',13,10
DB 'Now is OFF...','$'

LEDOFF DB 'The LED was OFF',13,10
DB 'Now is ON...','$'


END

[/COLOR]

Posted on 2004-03-08 11:48:50 by JaiKMw