Peter,
If you have MPEX from VESOFT then I suggest you read PROGMPE, PROGXL,
QA1 and QA2 in the EBOOK.VECSL group. There are quite a few examples of
SPL code there along with some very handy DEFINES that make generating
output a lot easier. Keep a lookout for SAY, TO'TERMINAL, CONCAT,
NO'CR'LF, ASCII'OF, DASCII'OF and FREE.
If you don't have MPEX then go to
www.gainsborough.com/software_documentation.htm and read 'Winning at
MPE', 'Sporadic dialogues #1' and 'Sporadic dialogues #2'.
regards,
Robert W.Mills
Systems Development Manager
Windsong Services
(020) 8309 3604
-----Original Message-----
From: HP-3000 Systems Discussion [mailto:[log in to unmask]] On
Behalf Of Peter Smithson
Sent: 25 April 2005 14:52
To: [log in to unmask]
Subject: Re: [HP3000-L] SPL Hello World! program
Thanks for the various replies. I now have the ultimate Hello World
program with the obvious bug in the first one where I didn't have the
text right!
(Using cut & paste from example code) Doh.
$CONTROL USLINIT
BEGIN
INTRINSIC PRINT;
BYTE ARRAY OUT(0:12);
PRINT(OUT, -MOVE OUT:="Hello World!", 0); END.
I don't get the warning on the PRINT now.
I don't understand why it expects a word array when the documentation -
http://docs.hp.com/en/32650-90821/ch04s177.html
says it's a "character array". Isn't that a byte array?
Cheers
Peter
* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
|