RE: LZ: Making fixed int progs


[Prev][Next][Index][Thread]

RE: LZ: Making fixed int progs



I couldn't get an int handler to run a prog using rst 10h and rst 20h. I know 
it was pointing to the right spot, but the program goes crazy (TIOS memory 
error, random chars on the top line of the screen). I had it load PROGRAM_ADDR 
with a new value, but it must need more. Any ideas?
I might have posted this already, but my crazy email program assures me that I 
haven't. I apologize if this was posted twice.
--MZB


----------
From: 	owner-list-zshell@lists.ticalc.org on behalf of Jimmy Mardell
Sent: 	Thursday, September 19, 1996 11:25 PM
To: 	list-zshell@lists.ticalc.org
Subject: 	Re: LZ: Making fixed int progs


Tony Lieuallen wrote:
>=20
> >The easiest way is to increase the ZShell string about 500-600 byte an=
d
> >then put the interrupt handler there. If the interrupt handler will be=
 a
> >big program, make two program: one in the ZShell string that will sear=
ch
> >and execute the "real" program which is the bigger one.
>=20
> This is the way your Game Wizard does it.  Does it really have to be an
> extra 600 bytes?


Well, first 257 bytes for the table at $9100-$9200 and then the interrupt
routine starts at $9292, and you can't change that. Then I've used
the "holes" ($90A?-$90FF and $9201-$9291) for variable storage. Some
variables are after the interrupt handler at $9292. The handler isn't
so big, it mostly checks if on+enter is pressed and then it uses rst10h
and rst20h to find Game Wizard and execute it. You can't make it so much
smaller, BUT you could make the GWiz program about 1k smaller, because
1k is just empty space where the screen is temporary stored. I've tried
to use the same routine to allocate 1k as in Robs grayscale, but for
some reason it didn't work! I don't have a clue why, and if someone can
tell me why it didn't, I will be happy :-) Maybe it has something to do
with that it's in an interrupt, or should that matter?


--=20
Real name: Jimmy M=E5rdell
Email....: mailto:mja@algonet.se
IRC-name.: Yarin
WWW......: http://www.algonet.se/~mja


"Strap me down with disillusion=20
  Tie me up in lifelines
   Nothing stops my thoughts from breeding
    Nothing's stopping my mind" - Leather Strip