Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!caip!lll-crg!nike!ucbcad!ucbvax!kim.Berkeley.EDU!jchan From: jchan@kim.Berkeley.EDU (Jeffery Chan) Newsgroups: net.micro.apple Subject: The GETLN routines Message-ID: <15899@ucbvax.BERKELEY.EDU> Date: Fri, 3-Oct-86 00:08:20 EDT Article-I.D.: ucbvax.15899 Posted: Fri Oct 3 00:08:20 1986 Date-Received: Sat, 4-Oct-86 09:54:15 EDT Sender: usenet@ucbvax.BERKELEY.EDU Reply-To: jchan@kim.Berkeley.EDU.UUCP (Jeffery Chan) Organization: University of California, Berkeley Lines: 35 Keywords: Did I just discover a "feature"? ][ I'm trying to write a binary progarm that trys to make use of the GETLN routines (as described in the Apple reference manual). What happens is the when I call the routines and the input is "LOADER.OBJ0", the program trys to execute the input as a DOS command ("LOAD RE.OBJ0"). I get "FILE NOT FOUND" after a disk access and find myself back in basic. The reference manual, to refreash your memory, says the routine should return with the input in the "input buffer page" (page $02) and register X holding the number of characters read. Now I know I *can* get the GETLN routines to behave properly, because I have a binary program that calls GETLN1 (the one w/o any prompt), and doesn't do anything weird when the input resembles a DOS command. I could try to figure out how the program works but I don't think I would like to trace a machine language program. :-( My computer setup has a communications card in slot 2 and the single disk drive connected to slot 6. And, oh yeah, it's a IIe. If anybody has any ideas on this matter please reply by mail. There's no use in flooding the net with followups. When someone mails me a solution, I'll post it. Jeff Chan jchan@kim.Berkely.EDU Sign on Ringworld: "Speed limit: 5 miles/sec-- strictly enforced"