linux-assembly.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: joy merwin monteiro <joy.merwin@gmail.com>
To: Jan Wagemakers <janw@easynet.be>
Cc: linux-assembly@vger.kernel.org
Subject: Re: Segfault on ioperm
Date: Mon, 24 Jan 2005 08:58:24 +0530	[thread overview]
Message-ID: <4b0d6e0d05012319285a3663f3@mail.gmail.com> (raw)
In-Reply-To: <20050123081722.GA2765@qwerty.be>

I got it.....
Thanks a lot for all the help.

regards,
Joy.M.Monteiro


On Sun, 23 Jan 2005 09:17:22 +0100, Jan Wagemakers <janw@easynet.be> wrote:
> joy merwin monteiro <joy.merwin@gmail.com> schreef:
> 
> >>>     mov dx,port
> >>>     mov al,0xff
> >>>     out 378h,al  <----- segfault here
> >> "out dx, al", as Jan suggests...
> > However, Jan's  musice speaker on the site above uses
> > "out 43h,al"
> 
> This is how OUT works :
> 
>  | OUT - Output Data to Port
>  |
>  |        Usage:  OUT     port,accum
>  |        Modifies flags: None
>  |
>  |        Transfers byte in AL,word in AX or dword in EAX to the specified
>  |        hardware port address.  If the port number is in the range of 0-255
>  |        it can be specified as an immediate.  If greater than 255 then the
>  |        port number must be specified in DX.  Since the PC only decodes 10
>  |        bits of the port address, values over 1023 can only be decoded by
>  |        third party vendor equipment and also map to the port range 0-1023.
> 
> So, if port > 255 then use dx ;-)
> 
> --
> Met vriendelijke groetjes         - Jan Wagemakers -
> 
>  - Debian GNU/Linux 3.1 - Up : 25 days
> -
> To unsubscribe from this list: send the line "unsubscribe linux-assembly" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 


-- 
people always turn away,
from the eyes of a stranger...
Afraid to know
what lies behind the stare.......
    --QueensRyche

      reply	other threads:[~2005-01-24  3:28 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-01-20 13:52 Segfault on ioperm joy merwin monteiro
2005-01-20 14:58 ` Richard Cooper
2005-01-20 15:26 ` Jan Wagemakers
2005-01-20 18:15   ` joy merwin monteiro
2005-01-20 18:40 ` Frank Kotler
2005-01-21 12:43   ` joy merwin monteiro
2005-01-21 14:29     ` Frank Kotler
2005-01-23  8:35       ` Jan Wagemakers
2005-01-23  8:17     ` Jan Wagemakers
2005-01-24  3:28       ` joy merwin monteiro [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4b0d6e0d05012319285a3663f3@mail.gmail.com \
    --to=joy.merwin@gmail.com \
    --cc=janw@easynet.be \
    --cc=joy_mm@ieee.org \
    --cc=linux-assembly@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).