flat assembler
Message board for the users of flat assembler.

Index > DOS > programing without interrupts .. good or bad idea ?

Author
Thread Post new topic Reply to topic
Slai



Joined: 11 Jan 2006
Posts: 40
Location: NY/Bulgaria
Slai 29 Jan 2006, 06:42
Does anyone know where I can find information about all the useful ports that are used with the in and out instructions ? I even dont know how to Google it ..
for now I know only few ports, like 60h for the keyboard, 378h for LPT1, 3C7h/3C9h for the pallette, and 3DAh for the screan retrace ..

Is there a site where I can find information for the rest of the them ?
Post 29 Jan 2006, 06:42
View user's profile Send private message Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 8351
Location: Kraków, Poland
Tomasz Grysztar 29 Jan 2006, 09:44
If you get the Ralph Brown's Interrupt List (from http://www.cs.cmu.edu/afs/cs/user/ralf/pub/WWW/files.html), you can find also the list of ports there inside - I've been using when doing OS programming and it's really good.
Post 29 Jan 2006, 09:44
View user's profile Send private message Visit poster's website Reply with quote
f0dder



Joined: 19 Feb 2004
Posts: 3175
Location: Denmark
f0dder 30 Jan 2006, 10:59
It's generally a bad idea to go bashing ports unless you have a specific reason for it (ie, keyboard handler for a game, or drivers for an OS). If there's DOS or BIOS calls and they work, it's better to use them, as your code will be more likely to work everywhere (various DOS versions, v86 environments under various OSes, boch, dosbox, ...)
Post 30 Jan 2006, 10:59
View user's profile Send private message Visit poster's website Reply with quote
Slai



Joined: 11 Jan 2006
Posts: 40
Location: NY/Bulgaria
Slai 01 Feb 2006, 03:28
I had some troble finding it in all those files, but I finally found it in http://www.cs.cmu.edu/~ralf/interrupt-list/inter61d.zip Thanks Tomasz
yes f0dder I know, and it can be really dangerous coz I guess if used wrong, the in instruction can burn something in the computer .. Confused
Post 01 Feb 2006, 03:28
View user's profile Send private message Reply with quote
Matrix



Joined: 04 Sep 2004
Posts: 1166
Location: Overflow
Matrix 02 Feb 2006, 13:01
Slai wrote:
I had some troble finding it in all those files, but I finally found it in http://www.cs.cmu.edu/~ralf/interrupt-list/inter61d.zip Thanks Tomasz
yes f0dder I know, and it can be really dangerous coz I guess if used wrong, the in instruction can burn something in the computer .. Confused

i have not seen any burns, but, old monitors can be damaged by setting invalid video modes, refresh rates, and you can accidently format your hard disk, flash your bios, or set cmos password - this usually can be fixed.

and note that windows nt, xp systems does not let you handle ports directly without a system driver, if you whould like to run your program on windows too...
Post 02 Feb 2006, 13:01
View user's profile Send private message Visit poster's website Reply with quote
Borsuc



Joined: 29 Dec 2005
Posts: 2465
Location: Bucharest, Romania
Borsuc 04 Feb 2006, 12:24
Matrix wrote:
and note that windows nt, xp systems does not let you handle ports directly without a system driver, if you whould like to run your program on windows too...

There are some tricks around that. But I think he's trying to do this for DOS anyway...
Post 04 Feb 2006, 12:24
View user's profile Send private message Reply with quote
f0dder



Joined: 19 Feb 2004
Posts: 3175
Location: Denmark
f0dder 06 Feb 2006, 16:13
For direct port I/O on NT, forget the above link from The_Grey_Beast and have a look at this: Smile

http://win.asmcommunity.net/board/index.php?topic=18859.15

http://win.asmcommunity.net/board/index.php?topic=20093.0
Post 06 Feb 2006, 16:13
View user's profile Send private message Visit poster's website Reply with quote
Borsuc



Joined: 29 Dec 2005
Posts: 2465
Location: Bucharest, Romania
Borsuc 08 Feb 2006, 10:40
f0dder wrote:
For direct port I/O on NT, forget the above link from The_Grey_Beast and have a look at this: Smile


I am so blind Very Happy
Post 08 Feb 2006, 10:40
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.