|
| Re: HELP: C/C++ equivalent of dos,crt Pascal units |
 |
1 Sep 2006 09:41:00 -0700 |
Dhruba Bandopadhyay wrote in <44f84ea2$1@newsgroups.borland.com>:
> I am trying to port an old Pascal DOS game to DOS C/C++. I am
> wondering if anyone is familar with the dos & crt Pascal units and
> whether there are C/C++ equivalent libraries. Maybe dos.c & crt.c?
There is a dos.h header file, but it's worth noting that in 32 bit
windows you may well have to use something else
--
|
| Post Reply
|
| Re: HELP: C/C++ equivalent of dos,crt Pascal units |
 |
1 Sep 2006 09:41:00 -0700 |
Dhruba Bandopadhyay wrote in <44f84ea2$1@newsgroups.borland.com>:
> I am trying to port an old Pascal DOS game to DOS C/C++. I am
> wondering if anyone is familar with the dos & crt Pascal units and
> whether there are C/C++ equivalent libraries. Maybe dos.c & crt.c?
There is a dos.h header file, but it's worth noting that in 32 bit
windows you may well have to use something else
--
|
| Post Reply
|
| Re: C/C++ equivalent of dos,crt Pascal units |
 |
Fri, 1 Sep 2006 12:47:35 -0400 |
You have posted your message in all of these newsgroups:
borland.public.cpp.borlandcpp
borland.public.cpp.turbocpp
borland.public.cppbuilder.language.cpp
borland.public.turbopascal
Newsgroup guidelines dictate that you pick one group for your message and
post it there:
http://info.borland.com/newsgroups/guide.html
You do not identify which compiler you are using and the assortment of
newsgroups you elected to multi-post to covers all of them. Read the help
for the compiler you are using. If it is a compiler which can create DOS
programs then the help will tell you about most of the things about which
you are asking. The rest can be inferred either from the compiler's
accompanying examples or from the C language. For example addr translates
to &, blockread to fread and textcolor remains textcolor.
. Ed
> Dhruba Bandopadhyay wrote in message
> news:44f84ea2$1@newsgroups.borland.com...
>
>I am trying to port an old Pascal DOS game to DOS C/C++. I am wondering if
>anyone is familar with the dos & crt Pascal units and whether there are
>C/C++ equivalent libraries. Maybe dos.c & crt.c?
>
> Below lists names of variables, functions, types & weird interrupt
> procedures found in Pascal. Am wondering what can be done to get around
> them for use in C/C++.
>
> dos.pas
> crt.pas
>
> ---undefined identifiers---
> 'black'
> 'blue'
> 'clrscr'
> 'lightblue'
> 'lightcyan'
> 'lightgray'
> 'lightgreen'
> 'lightmagenta'
> 'lightred'
> 'mem'
> 'port'
> 'wherex'
> 'wherey'
> 'white'
> 'yellow'
>
>
> ---undefined functions---
> 'addr'
> 'blockread'
> 'delay'
> 'fillchar'
> 'fsearch'
> 'getintvec'
> 'gettime'
> 'gotoxy'
> 'hi'
> 'inline_'
> 'int_'
> 'intr'
> 'lo'
> 'ofs'
> 'seg'
> 'setintvec'
> 'settime'
> 'swap'
> 'textbackground'
> 'textcolor'
> 'window'
>
>
> ---unknown types---
> Single
> registers
>
>
> ---misc---
> Port[$3C8] := reg;
> l := port[$60];
> port[$20] := $20;
> Port[$43] := $B6;
> ch := mem[seg(tex) + (let div 16): ofs(tex) + (let mod 16)];
> procedure NewInt1C; Interrupt;
> procedure NewInt08; Interrupt;
|
| Post Reply
|
| Re: C/C++ equivalent of dos,crt Pascal units |
 |
Fri, 1 Sep 2006 12:47:35 -0400 |
You have posted your message in all of these newsgroups:
borland.public.cpp.borlandcpp
borland.public.cpp.turbocpp
borland.public.cppbuilder.language.cpp
borland.public.turbopascal
Newsgroup guidelines dictate that you pick one group for your message and
post it there:
http://info.borland.com/newsgroups/guide.html
You do not identify which compiler you are using and the assortment of
newsgroups you elected to multi-post to covers all of them. Read the help
for the compiler you are using. If it is a compiler which can create DOS
programs then the help will tell you about most of the things about which
you are asking. The rest can be inferred either from the compiler's
accompanying examples or from the C language. For example addr translates
to &, blockread to fread and textcolor remains textcolor.
. Ed
> Dhruba Bandopadhyay wrote in message
> news:44f84ea2$1@newsgroups.borland.com...
>
>I am trying to port an old Pascal DOS game to DOS C/C++. I am wondering if
>anyone is familar with the dos & crt Pascal units and whether there are
>C/C++ equivalent libraries. Maybe dos.c & crt.c?
>
> Below lists names of variables, functions, types & weird interrupt
> procedures found in Pascal. Am wondering what can be done to get around
> them for use in C/C++.
>
> dos.pas
> crt.pas
>
> ---undefined identifiers---
> 'black'
> 'blue'
> 'clrscr'
> 'lightblue'
> 'lightcyan'
> 'lightgray'
> 'lightgreen'
> 'lightmagenta'
> 'lightred'
> 'mem'
> 'port'
> 'wherex'
> 'wherey'
> 'white'
> 'yellow'
>
>
> ---undefined functions---
> 'addr'
> 'blockread'
> 'delay'
> 'fillchar'
> 'fsearch'
> 'getintvec'
> 'gettime'
> 'gotoxy'
> 'hi'
> 'inline_'
> 'int_'
> 'intr'
> 'lo'
> 'ofs'
> 'seg'
> 'setintvec'
> 'settime'
> 'swap'
> 'textbackground'
> 'textcolor'
> 'window'
>
>
> ---unknown types---
> Single
> registers
>
>
> ---misc---
> Port[$3C8] := reg;
> l := port[$60];
> port[$20] := $20;
> Port[$43] := $B6;
> ch := mem[seg(tex) + (let div 16): ofs(tex) + (let mod 16)];
> procedure NewInt1C; Interrupt;
> procedure NewInt08; Interrupt;
|
| Post Reply
|
| HELP: C/C++ equivalent of dos,crt Pascal units |
 |
Fri, 1 Sep 2006 16:13:03 +0100 |
I am trying to port an old Pascal DOS game to DOS C/C++. I am wondering if
anyone is familar with the dos & crt Pascal units and whether there are
C/C++ equivalent libraries. Maybe dos.c & crt.c?
Below lists names of variables, functions, types & weird interrupt
procedures found in Pascal. Am wondering what can be done to get around them
for use in C/C++.
dos.pas
crt.pas
---undefined identifiers---
'black'
'blue'
'clrscr'
'lightblue'
'lightcyan'
'lightgray'
'lightgreen'
'lightmagenta'
'lightred'
'mem'
'port'
'wherex'
'wherey'
'white'
'yellow'
---undefined functions---
'addr'
'blockread'
'delay'
'fillchar'
'fsearch'
'getintvec'
'gettime'
'gotoxy'
'hi'
'inline_'
'int_'
'intr'
'lo'
'ofs'
'seg'
'setintvec'
'settime'
'swap'
'textbackground'
'textcolor'
'window'
---unknown types---
Single
registers
---misc---
Port[$3C8] := reg;
l := port[$60];
port[$20] := $20;
Port[$43] := $B6;
ch := mem[seg(tex) + (let div 16): ofs(tex) + (let mod 16)];
procedure NewInt1C; Interrupt;
procedure NewInt08; Interrupt;
|
| Post Reply
|
|
|
|
|
|
|
|
|
|