Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

dannyxyz23

Writing to Parallel port (or serial) under Win2k

This topic is 5673 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Advertisement
Yes, it is possible. I had to do it awhile back for college and some can up with WinIO. It''s a good usefull lib that''s easy to use and easy to understand.

Sand Hawk

----------------

(Inspired by Pouya)

Share this post


Link to post
Share on other sites
I made a project a couple of months ago (for Win98) that used a library called DLPORTIO to access the parallel port during a DX app. I don´t have the exact URL, but a fast search at google will help you.

Share this post


Link to post
Share on other sites
This might work, not 100% sure tho'':

Serial Output:

__asm {
mov ah,40h;
mov bx,3;
mov cx,bufferSizeinBytes;
mov dx,offset buffer;
int 21h;
}

For parallel it''s the same thing except mov bx,4 instead of mov bx,3

Serial Input:

__asm {
mov ah,3fh;
mov bx,3;
mov cx,maxBufferSizeinBytes;
mov dx,offset buffer;
int 21h;
}

Again, parallel changes 3 to 4.

-- Exitus Acta Probat --

Share this post


Link to post
Share on other sites
I think W2K will barf on that int21 instruction. Follow Sand_Hawk''s advice.



"It is always a simple matter to drag the people along, whether it is a democracy, or a fascist dictatorship, or a parliament, or a communist dictatorship. Voice or no voice, the people can always be brought to the bidding of their leaders. That is easy. All you have to tell them is that they are being attacked and denounce the peacemakers for lack of patriotism and exposing the country to danger. It works the same in any country."
Hermann Goering

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!