Previous in Forum: Facebook password cracking   Next in Forum: Memory Stick
Close
Close
Close
3 comments
Rate Comments: Nested
Guru
Popular Science - Biology - New Member Hobbies - Musician - New Member APIX Pilot Plant Design Project - Member - New Member Hobbies - CNC - New Member Fans of Old Computers - ZX-81 - New Member

Join Date: Jan 2007
Location: Centurion, South Africa
Posts: 3921
Good Answers: 97

How to translate Pascal to Delphi

11/18/2007 10:47 PM

In pascal I am using a Hercules card (along with the VGA) to track communication with an galil card. The data transfers are written to the Hercules.

It works fine but now I want to change over to 32 bit Delphi.

How do I change the address declaration of the var SKREEN ?

UNIT HERCUTIL;
INTERFACE

TYPE SPO = RECORD C:CHAR; A:BYTE; END;
SPR = ARRAY [1..80] OF SPO;
SPX = ARRAY [1..25] OF SPR;

VAR SKREEN : ARRAY[1..25,1..80] OF SPO ABSOLUTE $B000:$0000;
ROWS : SPX ABSOLUTE $B000:$0000;

procedure hclear (r,r1:byte);
PROCEDURE HDISP (ROW,COL,LONG : BYTE; S:STRING);
PROCEDURE HWRITELN (D:STRING);
PROCEDURE HSCROLLSKREEN;
PROCEDURE HSCROLLUP (R,R1:BYTE);
procedure hdsp (s:string);

procedure hwrite (d:string);
procedure htrace (d:string);

__________________
Never do today what you can put of until tomorrow - Student motto
Register to Reply
Interested in this topic? By joining CR4 you can "subscribe" to
this discussion and receive notification when new comments are added.
Guru
Popular Science - Cosmology - New Member United States - Member - New Member

Join Date: Apr 2007
Location: 33.49N, 84.19W
Posts: 1475
Good Answers: 3
#1

Re: How to translate Pascal to Delphi

11/21/2007 6:42 PM

Hi Hendrick,

Its been quite a few years since I played with Pascal in a college course elective.

Can't be much help to you I'm afraid.

-John

__________________
All worthwhile programmers know that constants always vary.
Register to Reply
Guru
Popular Science - Biology - New Member Hobbies - Musician - New Member APIX Pilot Plant Design Project - Member - New Member Hobbies - CNC - New Member Fans of Old Computers - ZX-81 - New Member

Join Date: Jan 2007
Location: Centurion, South Africa
Posts: 3921
Good Answers: 97
#2
In reply to #1

Re: How to translate Pascal to Delphi

11/22/2007 3:26 PM

Hi John

The advantage of being a DEY fanatic (Do Everything Yourself) is that you get exactly the functionality you need from the software. The disadvantage is that once the program is running you don't upgrade or keep aware of newer developments.

When you get a new machine you suddenly realize that you became a dinosaur.

I bought a 1080 page book on Delphi maybe I can solve my impossible dream.

I am almost convinced that DOS and pre dos is better than Windows.

__________________
Never do today what you can put of until tomorrow - Student motto
Register to Reply
Guru
Popular Science - Cosmology - New Member United States - Member - New Member

Join Date: Apr 2007
Location: 33.49N, 84.19W
Posts: 1475
Good Answers: 3
#3
In reply to #2

Re: How to translate Pascal to Delphi

11/22/2007 4:13 PM

Hi Hendrick,

Like you, I'm definitely a DEY! A few years ago, I wrote a program (in C) to manage my personal shop; inventory, billing, profit & loss, etc. At the time OS2 libraries were popular and like others around the lab where I worked I incorporated many OS2 functions in my code.

Everything worked fine for several years and I would fix an occasional bug or glitch but no major problems. However! I got careless and failed to back up my hard drive. Wouldn't you know it, that's when my HD crashed! (I had copied the OS2 libraries, include files, etc. on to the HD then lost or misplaced the floppies).

Anyway, I had backup copies of my source code but couldn't compile it without the OS2 libs. Couldn't even find them on the web. So I just started over and rewrote everything in C++.

"I am almost convinced that DOS and pre dos is better than Windows."

In my lab I worked with and supported Unix. The saying around our shop was "Real programmers don't use menus" (refering to Administrator menu functions). Harr Harr! Gimmie that command line prompt and I can do anything. When Windows first came out, many programmers ridiculed it, and rightly so. it was pretty flakey at best.

-John

__________________
All worthwhile programmers know that constants always vary.
Register to Reply
Register to Reply 3 comments

Previous in Forum: Facebook password cracking   Next in Forum: Memory Stick

Advertisement