x> 
> > 
> > Hi MSX-Friends....
> > 
> > After reading the mail about the Disk I/O ports I got an idea:
> > Ok, it IS (strictly) illegal to write directly to I/O ports, and it has
to go 
> > via BIOS, to make it work on ANY MSX... But isn't it possible to read
the 
> > proper I/O port from the BIOS, and THEN write directly to them? Then,
you 
> > always have the right port, and you only have to use the BIOS once.....

Yeah right. One problem: only the bios SAP's and interface is a standart.
(SAP=service access point). So here that means that the BIOS adress and
registers/memory variables is to be known. Furthermore the outcome of
a BIOS function is to be known (of course). What isn't in the standart
(thus illegal) is the place where the used port is. Also the right way
to handle the port isn't to be known.

Moral: if you do it this way you are as much being illegal as writing
directly to the port, and since the port number maybe anywhere in the
BIOS, you are as likely to fail as that. So if you wan't your programs
to be quick, be illegal, but beware of the consequenses...

Warper.

> > 
> > I don't know if this can be done, because I don't REALLY know much
about this 
> > stuff... But I'm looking forward for reactions...
> You want a reaction, here it is.
> 
> O.k. It is illegal to write directly to the ports. So what ? Illegal
things
> are to be done, i see no problem.

Incompatible hardware? If you like to program for one machine only (like:
yours) I can see no problem either.

> > 
> > -- 
> > Grtjs, Manuel
> > 
> > PS: MSX 4 EVER!
> > PPS: Take a look at my homepage:
> > 
> > http://studs.sci.kun.nl:8011/users/manuelbi/
> > 
Done.

> > 
> 



Reply via email to