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: <D9JMnu.Jr@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>
Date: Fri, 2 Jun 1995 11:31:06 GMT
Lines: 23

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)
CALL xxxx            (don't know the ROM loading address by heart :(

Rene Uittenbogaard (reneuit@sci.kun.nl)


