[comp.sys.ibm.pc] Turbo Basic Question

alu@erc3ba.UUCP (09/16/87)

I am writing a Turbo Basic  application that reads a couple of 
random-access files that are created by PC-File. The program 
gets the information fine the first time it's run, and every time
after it seems to start at the last record. I reset, cleared, and
used every other command I could find that would initialize pointers
and stuff. (My programming is admittedly rusty, and my TBasic is
still on a steep learning curve.) 

The standalone EXE file will also run fine the first time and 
not read at all the second time. Only if I invoke a new DOS
COMMAND.COM does it work.

In Interpretive BASIC (GWBASIC) everything seems to work OK.

Running on an AT&T 6300PLUS, 1 meg memory.

OK, net-gurus- what's up?

As always, thanks in advance.

			-Alan.

-- 
               		Alan Lustiger
    |_ ' |             	AT&T Engineering Research Center
     /   |( 		Princeton, NJ
			{AT&T Machines}!pruxc!alu

rxb@rayssdb.RAY.COM (Richard A. Brooks) (10/26/87)

I am using Turbo Basic to compile an Old
program I was using with GW BASIC. Everything
compiles fine except the following line.
It produces an "Undefined SUB procedure reference"
error.

Why is this? What is the difference between TB and
GW BASIC in reference to inline assembly routines?

(Scroll(1) is defined as &H8B55)

6080 SCROLL(27)=&H6B4:DEF SEG:ADDR=VARPTR(SCROLL(1))
6090 CALL ADDR(BROW,BCOL,EROW,ECOL,ATTR,NROW):GOSUB 7720:RETURN
     ^
     |
     Error occures here!!
-- 
Richard Brooks      {allegra, gatech, ihnp4, linus, raybed2}!rayssd!rayssdb!rxb
Raytheon Service Company              // When everyone is out to get you  //
Portsmouth, Rhode Island 	     // Paranoia is just good thinking ! //