Path: news.uiowa.edu!chi-news.cic.net!newsfeed.internetmci.com!in2.uu.net!news.u.washington.edu!news.uoregon.edu!cie-2.uoregon.edu!nparker
From: nparker@cie-2.uoregon.edu (Neil Parker)
Newsgroups: comp.sys.apple2.programmer
Subject: Re: BLOADing, How to find start address in assembler mode
Date: 19 Feb 1996 10:12:25 GMT
Organization: University of Oregon Campus Information Exchange
Lines: 37
Message-ID: <4g9ie9$obj@pith.uoregon.edu>
References: <31182f79.0@news.sisna.com> <4fjn5c$j4i@nnrp1.news.primenet.com> <4g7sjf$110@cloner4.netcom.com>
NNTP-Posting-Host: cie-2.uoregon.edu

In article <4g7sjf$110@cloner4.netcom.com> creiley@ix.netcom.com(Charles A
Reiley) writes:
>Hello, I am BLOADing a file, then I wish to enter the assembler
>(call-151), and find the starting address of the program. I have
>forgotten the command to use. Any ideas would be appreciated. Thanks
>much!  - Alan  (My system is an Apple ][+ , yes I still have one  :)  }

In DOS 3.3, the BLOAD address and length are in the following memory
locations (assuming a standard 48K DOS):

     $AA60 = BLOAD length, lo byte
     $AA61 = BLOAD length, hi byte
     $AA72 = BLOAD address, lo byte
     $AA73 = BLOAD address, hi byte

In ProDOS, the following locations are used instead:

     $BED7 = BLOAD address, lo byte
     $BED8 = BLOAD address, hi byte
     $BED9 = BLOAD length, lo byte
     $BEDA = BLOAD length, hi byte

Thus, to find out what address you just BLOADed a file into in DOS 3.3,
you would type this at the * prompt:

    AA72.AA73

The address will be printed as two bytes, low byte first.

               - Neil Parker

P.S.  Yep, I still use my Beagle Bros. Peeks, Pokes, and Pointers chart...
-- 
Neil Parker                       | No cute quote, no cute ASCII art, no cute
nparker@cie-2.uoregon.edu         | disclaimer, no deposit, no return....
nparker@cie.uoregon.edu           | (This space intentionally left blank:
http://cie-2.uoregon.edu/~nparker |                                           )
