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 <[EMAIL PROTECTED]> wrote:
> joy merwin monteiro <[EMAIL PROTECTED]> 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 [EMAIL PROTECTED]
> 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
-
To unsubscribe from this list: send the line "unsubscribe linux-assembly" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to