Megalextoria
Retro computing and gaming, sci-fi books, tv and movies and other geeky stuff.

Home » Archive » net.micro.apple » Re: Pro-DOS calls? (No)
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: Pro-DOS calls? (No) [message #75844] Wed, 29 May 2013 20:00
eraps1 is currently offline  eraps1
Messages: 5
Registered: May 2013
Karma: 0
Junior Member
Message-ID: <12094@sri-arpa.UUCP>
Date: Mon, 17-Sep-84 10:24:16 EDT
Article-I.D.: sri-arpa.12094
Posted: Mon Sep 17 10:24:16 1984
Date-Received: Tue, 25-Sep-84 06:42:56 EDT
Lines: 37


Ron,

In response to your recent message :

 >   I've noticed a statement in some Applesoft BASIC
 >   programs running under Pro-DOS that I can't identify
 >   in any of the documentation that I have.  An example:
 >           & "GOTOYX",param1,param2      or
 > 	   & "JUSTIFY","string",param
 >   There are no files on the disk with names like "JUSTIFY" of
 >   "GOTOYX".  Could someone enlighten me please.
 > 
 > 			Ron Wolenty (AT&T Consumer Products)
 > 			Indianapolis, IN

   The "&" symbol is a special Applesoft feature, which enables you
to write your own applesoft commands.  When applesoft sees the & 
command, it transfers control to the assembly language code stored
at the & command vector (I don't have a manual in front of me, so consult
your Applesoft Reference Manual for the address of the vector).  Since
many applications find it useful to use more than one special command,
an & command processor is written.  This means that the code pointed
to by the & command vector studies the input line (what follows the
& symbol, ie "GOTOYX") and jumps to the appropriate piece of code.  

   There are a fair number of "&" utility packages available, if you
wish to use this technique and want to avoid writting the command parser,
alternatively, I believe nibble published an & command handler a while back.

   If you just want to find out what those commands do, locate the code,
by tracing the & command parser, and dissasemble it from the moniter.

   Note that you could indeed do a Pro-DOS call this way, but you would
have to write your own assembly level routine to do the actual work.

						- Rob Ginn
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Apple II+ hard disks???
Next Topic: PC Cad Systems
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Thu Apr 18 00:46:14 EDT 2024

Total time taken to generate the page: 0.02986 seconds