[ql-users] program version # - setting and reading back in SBASIC

2004-10-14 Thread James Hunkins
Can anyone advise on how to set the program (or file?) version number 
in either C68 or assembler?

And then, how does one read it back in SBASIC?
Thanks,
jim
___
QL-Users Mailing List
http://www.quanta.org.uk/mailing.htm


Re: [ql-users] program version # - setting and reading back in SBASIC

2004-10-14 Thread RWAPSoftware
In an email dated 14/10/2004 10:57:02 am GMT Daylight time, James Hunkins [EMAIL 
PROTECTED] writes:

Can anyone advise on how to set the program (or file?) version number 
in either C68 or assembler?

And then, how does one read it back in SBASIC?


SET_FVERS in the level 2 drivers sets it in SBASIC.
You can also use IOF.VERS (Trap #3, D0=$4E) on Level 2 device drivers - alas this 
clashes with another trap call on the THOR XVI - hmm - the standards were dropping 
there
IOF.SHDR (trap #3 D0=$46) does not appear to be able to do it as it can only write the 
first 14 bytes of the header.  Is this still valid??

FVERS reads it: PRINT FVERS(\ram1_test)

However, these commands are not present on non level-2 drivers.
There are plenty of PD BASIC extensions to read the 64 byte file header - the version 
is stored at offset 5758.

BTW - you might also want to look at the details for the file access key (byte 5) 
which was used by Toolkit III and the System Toolkit to say if a file was hidden (bit 
6) / read-only (bit 7), or even the number of a specific user (0 to 63 in bits 0 to 
5).  If a value of 0 was used, anyone could access the file.  Otherwise you had to 
have the same user number to see or use the file.  User 63 was used for password 
protected files.
___
QL-Users Mailing List
http://www.quanta.org.uk/mailing.htm