[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: DRAW & XDRAW... How to use
In article <appletalk-F0637F.00544706012000@news.planet.nl>, Pim Blokland
<appletalk@at.at> wrote:
> In article
> <jonINTERNETrelayCHAT-0501001503200001@nn-157-22-180-5.napanet.net>,
> jonINTERNETrelayCHAT@napaVALLEYnet.CLARInet (Jon Bettencourt) wrote:
>
> > The problem is, Applesoft will only let me draw the first shape. If I try
> > to draw the second, third, or fourth, I get an Illegal Quantity Error.
>
> That's strange. It's supposed to work like you think. Are you sure you
> have defined this table in a location where it can't be overwritten by
> something else? (input buffer, hgr screen, string space etc) And that
> E8~E9 points to it?
I started the shape table at 31490 ($7B02) and it is 63 bytes long, which
makes it end at 31552 ($7B40). According to Inside the Apple //e, this is
in the free space area between HiRes page 2 and Applesoft's string data.
I have a menu program at startup. Since I have a lot of programs (I'm
using my own HDV hard disk image), I have to go through four menu screens
before I get into the program I use the shape table in. Each menu screen
has 20 menu items, except the last one which has 19. The program I'm using
the shape table in prints a few strings before you finally draw with it
(it's a color hires painting program I'm making). When exactly does
Applesoft add stuff to the string storage area? The strings could be
overwriting the shape table. Could I try H = FRE(0) or moving the shape
table into HiRes page 2 (I'm not using that area)?
I may have to double check that, and make sure I'm reading every DATA
value (I have every byte of the shape table in a DATA statement).
Yes, E8~E9 points to it. As I said, I _can_ draw the first shape.
> > And is Applesoft supposed to let you XDRAW 0 AT 100,100?
>
> I don't think so. Shapes are numbered from 1 to the number of shapes.
> But I've tried it out and XDRAW 0 doesn't give me an error. Hm.
>
> > Is that command like an XPLOT, if there was one?
>
> No, there is no XPLOT. Some books mention XPLOT as "a reserved word that
> does not correspond to an Applesoft token" or something, but never mind
> that. Forget XPLOT.
I _know_ there's no XPLOT. But pretend one moment that there _was_ an
XPLOT command. Now would XDRAW 0 AT 100,100 act like it? As soon as you
can answer that, stop pretending.
--
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/
jonrelay@napanet.net jrelay.cjb.net
An Apple II fanatic since 1998! S0.5 LIS+++! Suzy+++! M1987
"I can't stand to see you so miserable, Lis. Unless it's from
a rubber spider down your dress. Hmm... that gives me an idea.
(Pulls out tape recorder) Note for later: put rubber spider down
Lisa's dress. He he he he he."
*_ Syntax Error: an error on a criminal's tax record.
| Bad Subscript: a criminal reading a book on a subway.
--- Unimplemented Trap: when a bear trap isn't set up
|' ,| properly and thus does not work.
--- Overflow: too many ice cubes. <Can't Restart>
Please remove capital letters from my e-mail address to respond.