flat assembler
Message board for the users of flat assembler.

Index > DOS > Sending and receiving characters through serial port

Author
Thread Post new topic Reply to topic
sonicheart



Joined: 06 Apr 2006
Posts: 2
sonicheart
Hi, to all!

I'm learning assembly using FASM and decided to start with DOS.

I'm trying to make a program to send and receive characters throught the serial port using a null modem cable connected to another pc with the same program.

I've read the forum DOS faq but didn't help..

With what I have done so far I can send a char but I get error when receiving it.
I'm doing this using BIOS functions and manually polling the COM port just for testing purposes. I would like to do it with interrupt-driven I/O, but I don't know much about this.

Does anyone know a DOS working sample or something to start with?

I've attached what I've done so far.

Can someone please help me?


Description: my little non working attempt to send and receive char through the serial COM port
Download
Filename: serial_COM.zip
Filesize: 1.83 KB
Downloaded: 91 Time(s)

Post 07 Apr 2006, 16:27
View user's profile Send private message Reply with quote
Dex4u



Joined: 08 Feb 2005
Posts: 1601
Location: web
Dex4u
bubach site as good doc http://bos.asmhackers.net/docs/serial/docs/
I have written code to use IR on my OS (which is the same), i can post it, if you want it.
Post 07 Apr 2006, 17:50
View user's profile Send private message Reply with quote
sonicheart



Joined: 06 Apr 2006
Posts: 2
sonicheart
Thank you!
Post 07 Apr 2006, 19:38
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-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.

Website powered by rwasa.