[comp.sys.handhelds] hp-48sx grob in programs

mlong@oucsace.cs.OHIOU.EDU (Mark Long) (04/13/90)

In the second volume of the hp-48sx manual it gives an example program
called "WALK" which animates a small man walking across the screen.  This    
program uses a graphics object in the program code and stores it in a local
variable.  Except that the 48sx doesn't seem to know where the graphics
object ends and the program code begins again.  The program works if the
graphics object is created as a global variable and referenced from inside
the program.  Is this normal or am I just reading the program listing wrong
or what?

edp@jareth.enet.dec.com (Always mount a scratch monkey.) (04/13/90)

In article <1286@oucsace.cs.OHIOU.EDU>, mlong@oucsace.cs.OHIOU.EDU (Mark Long)
writes...

> Except that the 48sx doesn't seem to know where the graphics
>object ends and the program code begins again.

It sounds like you may be entering the graphics object incorrectly; I had no
problems.  Make sure it is entered in this format:

	GROB dim dim hex...

There should be a space between GROB and the first dimension, between the
first and second dimension, and between the second dimension and the hex
digits.  Once the hex digits start, there should be no spaces until the
end of the graphics object -- even though the manual shows the graphics object
on multiple lines (and with the first line not flush on the right with the
rest), ignore that and enter the digits with no spaces.


				-- edp (Eric Postpischil)
				"Always mount a scratch monkey."
				edp@jareth.enet.dec.com