Recent

Author Topic: Serial comms under DOS  (Read 5230 times)

kms

  • Newbie
  • Posts: 1
Serial comms under DOS
« on: July 31, 2015, 03:25:47 pm »
I am new to Free Pascal, coming from Turbo Pascal.

Currently I want to move an application running under FreeDOS from TP to FPC.

After a long afternoon of searching I still do not find a solution for serial communications (RS-232) for FPC under DOS.

Has anybody an idea?

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 11383
  • FPC developer.
Re: Serial comms under DOS
« Reply #1 on: July 31, 2015, 03:30:04 pm »
I guess it is the same as under TP, manually fiddling the registers ?

Afaik the port/portw arrays still work?

tr_escape

  • Sr. Member
  • ****
  • Posts: 432
  • sector name toys | respect to spectre
    • Github:
Re: Serial comms under DOS
« Reply #2 on: July 31, 2015, 05:16:20 pm »
Hello,

You should search like as in google:

serial port open in dos pascal

I hope results can help you...

The results:

https://en.wikibooks.org/wiki/Serial_Programming/DOS_Programming

http://stackoverflow.com/questions/21499907/how-to-convert-the-i-o-port-access-of-turbo-pascal-for-win32-to-c-net

http://pascal.sources.ru/comm/tpasync.htm


Code: [Select]
(*****************************************************************************

  Turbo PASCAL Async Manager        version 2.01

 ......

All codes deleted for copyrights.

You may found in the site
« Last Edit: July 31, 2015, 06:58:16 pm by tr_escape »

Bart

  • Hero Member
  • *****
  • Posts: 5275
    • Bart en Mariska's Webstek
Re: Serial comms under DOS
« Reply #3 on: July 31, 2015, 06:22:55 pm »
Quote
Copyright 1986-1990 by Kaleb Axon. All Rights Reserved.

Not sure you are allowed to publish this code on this forum?

Bart

tr_escape

  • Sr. Member
  • ****
  • Posts: 432
  • sector name toys | respect to spectre
    • Github:
Re: Serial comms under DOS
« Reply #4 on: July 31, 2015, 06:59:00 pm »
Quote
Copyright 1986-1990 by Kaleb Axon. All Rights Reserved.

Not sure you are allowed to publish this code on this forum?

Bart


It is ok I deleted it for rights.

Thanks for warning.

 

TinyPortal © 2005-2018