to make soft interrupt with AX registers in linux?
- From: "google-rambo88" <rambo88@xxxxxxxxx>
- Date: Tue, 17 Jul 2007 21:55:45 +0900
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..
.
- Follow-Ups:
- Re: to make soft interrupt with AX registers in linux?
- From: Douglas Wells
- Re: to make soft interrupt with AX registers in linux?
- From: Yan Zheng
- Re: to make soft interrupt with AX registers in linux?
- From: David Schwartz
- Re: to make soft interrupt with AX registers in linux?
- From: Tim Roberts
- Re: to make soft interrupt with AX registers in linux?
- Prev by Date: Re: My program can't work on redhat enterprise AS 4
- Next by Date: Re: to make soft interrupt with AX registers in linux?
- Previous by thread: aggregate NFS export
- Next by thread: Re: to make soft interrupt with AX registers in linux?
- Index(es):
Relevant Pages
|