Re: to make soft interrupt with AX registers in linux?



On Jul 17, 5:55 am, "google-rambo88" <ramb...@xxxxxxxxx> wrote:
Hi.

I'd like to know to send to printer port, I did like this on DOS...
I used to use int86 () function to make soft interrupt...

I'd like to know how to make soft interrupt with AX registers in linux?

But this kind of using is it possible in linux ?

sendcharToPrinter ( char ch )
{
union REGS printer;

printer.h.ah = 0;
printer.h.al = ch;
printer.x.dx = 0x378
int86( 0x17, &printer, &printer );
}

Thanks..

No, it doesn't work like that on any UNIX-like operating system.
Sorry.

DS

.



Relevant Pages

  • banging a printer port
    ... Any idea about the rate we could bit-bang write to a printer port ... I tried a PowerBasic loop on Windows and got a bit over 500 KHz, ... Under Linux, we'll be ...
    (sci.electronics.design)
  • Re: PIC/Linux
    ... I don't have a PIC development board. ... what it will cost, please let me know. ... it has to talk to my PC running RH 7.1 Linux? ... the printer port and small capacitors to ground as a filter on these ...
    (sci.electronics.misc)
  • to make soft interrupt with AX registers in linux?
    ... I'd like to know to send to printer port, I did like this on DOS... ... I used to use int86 function to make soft interrupt... ... I'd like to know how to make soft interrupt with AX registers in linux? ... union REGS printer; ...
    (comp.os.linux.development.system)