Path: utzoo!attcan!uunet!husc6!mailrus!uwmcsd1!lakesys!jason From: jason@lakesys.UUCP (Jason) Newsgroups: comp.sys.apple Subject: Re: Misc Summary: There be Message-ID: <929@lakesys.UUCP> Date: 3 Aug 88 12:14:01 GMT References: <8808011402.aa04788@SMOKE.BRL.ARPA> Organization: Lake Systems, Milwaukee Wisconsin Lines: 40 In article <8808011402.aa04788@SMOKE.BRL.ARPA>, SEWALL@UCONNVM.BITNET (Murph Sewall) writes: > [Original post & program deleted - part of Mr. Sewall's post deleted as well] > > What Tom needs is an "input anything" routine for ProDOS (there are > numerous DOS 3.3 versions -- or perhaps just variants on a version) that > will INPUT a line into a single string variable regardless of colons, > semicolons, and commas that may be in the line. Such a criter would have > to be in machine code (either a routine to BLOAD or something that can be > POKEd from DATA statements). The input anything routine I have works under both DOS 3.3 and ProDOS. Unfortunately, it's from Call A.P.P.L.E.'s "All about Applesoft", and, it would seem, copywritten & un-put-here-able. > Isn't PEEKing the keyboard character buffer the equivalent of GET A$ (or > at least not noticeably quicker)? The GET A$ does a few more things: It goes through the ROM code until it hits the re-routing vector, which calls ProDOS' BI or DOS 3.3. In either case the OS checks to see if there's a file being used for input, in which case it goes to internal code. If there's no file open for input, the OS puts the original vectors back in, and calls them. If unchanged (by things like keyboard macro expanders and the like), the ROM gets called, which actually checks the keyboard. Then, back up through the levels until we return to Applesoft... All the peek has to do is translate the address of the number to be PEEKed, and encode the number returned (actually, there's some other overhead from FORMEVL, but it would seem that less time would be taken overall - quite possible I'm wrong on this one, tho'). As for the need for speed in getting characters in Applesoft, it really doesn't make all that much difference - I can't out-type GET's, and the PEEK method can't be used with disk files, which is generally where the speed is needed. Then again, Applesoft in general isn't the worlds quickest way to do things :) (At least as far as execution times go) > Murph Sewall Sewall@UCONNVM.BITNET -- Jason - Not your average iconoclast | UUCP: uwvax!uwmcsd1!lakesys!jason