Re: insert asm code



does anyone know how can i insert the below asm code in my C program?
    mov    dx, port
    outp    al,dx
where "port" is a memory address and "al" is a data.

BTW, this code will not work in NT or 2000.  I am not sure how strict
95, 98, or ME is however.
There are DLLs designed to talk to ports that may work under NT.  I know
there is one such DLL
designed for VB.  I am not sure what it is called, but it gives you
access to registers, ports and other
such things.  If you do use assembler put it in its own DLL if you can
help it.  This will make porting
easier later to other OSes such as NT.

Good luck,
Frank





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]