🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: es.comp.os.linux.programacion
Article #8903

Re: Funciones de bajo nivel en kylix

#8903
From: Pedro Maicas
Date: Wed, 02 Oct 2002 16:39
45 lines
1878 bytes
On Mon, 30 Sep 2002 19:24:47 +0200, Rafa <rsd205@netscape.net> wrote:

>�Existen funciones similares en kilyx c++?

  Como veo que nadie contesta, me voy a atrever yo (y eso
que ni siquiera tengo muy claro qu� demonios es ese kilyx).

  Prueba esto:


int InputByte(short direccion)
{
  asm{
    mov dx, direccion
    in al, dx
    and eax, 0xFF
  }
  return _EAX;
}

void OutputByte(short direccion, char valor)
{
  asm{
    mov al, valor
    mov dx, direccion
    out  dx, al
  }
}

  Y dime si te funciona, y caso de que no funcione (cosa probable)
dime porqu�.

  En NT/W2000 esto fallar�a porque un programa de usuario no puede acceder
directamente al hardware, en w95/98 funcionar�a porque ese no es un SO serio.
He de suponer que en linux fallar� tambien, pero por si acaso ... ;-)
 

Saludos :-)           -Pedro-

  Maicrosoft LVP
  MOP Certified.

  http://www.maicas.net/ 

  e-mail en www.maicas.net
Technical Details
Message-ID: <176mpuc7tneng4ef43tiq4ebn1o6n1amgr@4ax.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!fu-berlin.de!uni-berlin.de!62-36-104-122.dialup.uni2.ES!not-for-mail
References: <ana1dn$aaj$1@julieta.escomposlinux.org>

Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII
X-Google-Thread: f86c8,67ef7ebdb8b23886
X-Google-Attributes: gidf86c8,public
X-Google-ArrivalTime: 2002-10-02 09:39:33 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!fu-berlin.de!uni-berlin.de!62-36-104-122.dialup.uni2.ES!not-for-mail
From: Pedro Maicas <esta_no_es@jet.es>
Newsgroups: es.comp.os.linux.programacion
Subject: Re: Funciones de bajo nivel en kylix
Date: Wed, 02 Oct 2002 18:39:30 +0200
Lines: 45
Message-ID: <176mpuc7tneng4ef43tiq4ebn1o6n1amgr@4ax.com>
References: <ana1dn$aaj$1@julieta.escomposlinux.org>
NNTP-Posting-Host: 62-36-104-122.dialup.uni2.es (62.36.104.122)
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: fu-berlin.de 1033576772 14328917 62.36.104.122 (16 [13709])
X-Newsreader: Forte Agent 1.8/32.553