Re: Identifying calc type in RPL Message #2 Posted by Raymond Del Tondo on 15 Mar 2005, 9:43 a.m., in response to message #1 by valentino ducati (switzerland)
On the 'G' or 'g' type calcs,
you can use the keyword VERSION.
If the version returned is higher than "HP48-J", it's a G type.
If VERSION returns something with "HP49" somewhere
in the string, it's a 'g' (small G) type,
or in other words, a 49g...
The 'S' type calcs don't have the VERSION keyword.
On the S types, there exists a suitable SYSEVAL address,
which I don't recall right now.
In most cases, I used the following code,
which returns TRUE if the current machine is a G type,
or FALSE if the code is running on an S type:
*NULLNAME GX?
CODE
addrVDISP EQU #1263A
GOSBVL =SAVPTR
D1=(5) (addrVDISP)+6
C=DAT1 A
?CBIT=1 3
GOYES isGX
isGX GOVLNG =GPPushT/FLp
ENDCODE
HTH
Raymond
|