Newsgroups: comp.sys.sinclair
Path: ulke.hiMolde.no!trane.uninett.no!sunic!sunic.sunet.se!news.funet.fi!news.eunet.fi!EU.net!sun4nl!sci.kun.nl!reneuit
From: reneuit@sci.kun.nl (R.M. Uittenbogaard)
Subject: Re: Spectrum loading
Message-ID: <D9JoB8.1uy@sci.kun.nl>
Sender: news@sci.kun.nl (News owner)
Nntp-Posting-Host: studs.sci.kun.nl
Organization: University of Nijmegen, The Netherlands
X-Newsreader: NN version 6.4.19
References: <3qmq2v$i59@dunlop.cs.strath.ac.uk> <D9JMnu.Jr@sci.kun.nl>
Date: Fri, 2 Jun 1995 12:06:43 GMT
Lines: 33

In <D9JMnu.Jr@sci.kun.nl> reneuit@sci.kun.nl (R.M. Uittenbogaard) writes:

>In <3qmq2v$i59@dunlop.cs.strath.ac.uk> wnelson@cs.strath.ac.uk (Wul) writes:

>>	Does anyone know where the Spectrum ROM loads the first header
>>after LOAD "" is entered? It must load the 17 bytes somewhere in order to get
>>the information on the following block.

>Yes, the ROM makes 17 bytes of free space in the workspace for this purpose
>(the bottom of this memory area is  indicated by the system variable (WORKSP) )
>This is done by calling the RST #30 routine which returns the starting
>address of the 17 bytes in the DE or BC register pair (I think it was DE).

>So in effect there is no standard address from which the header is loaded.
>You can, however, write your own loading routine and load the header anywhere
>you want: (same principle as mentioned before):

>LD IX, starting addr
>LD DE, #11 
>XOR A                (A=0 flags header block)

And, of course, which I forgot, 
SCF                   (to set the carry flag: indicates loading instead of
                       verifying).

>CALL xxxx            (don't know the ROM loading address by heart :(

If someone wants to have the address of this routine or something I could look
it up and post it.

>Rene Uittenbogaard (reneuit@sci.kun.nl)

Nice chap :)
