Here is a snipper from a program I found around that refers to the OS
Version number:
<snippet>
proc PilotMain(cmd.w, cmdPBP.l, launchFlags.w)
local ver.l
local blen.w
BEGINPROC
; Filter only CmdSystemReset and NormalLaunch messages
                cmp.w   #sysAppLaunchCmdSystemReset,cmd(a6)
                beq     GoOn
                cmp.w   #sysAppLaunchCmdNormalLaunch,cmd(a6)
                bne     CommonEnd
GoOn:
; System version check
                systrap FtrGet(#sysSystem.l, #sysFtrNumROMVersion.w,
&ver(a6).l)
                cmp.w   #0,d0
                bne     CantRun
                and.l   #$0f000000,ver(a6)      ; get the major version
number
                cmp.l   #$03000000,ver(a6)      ; is it 3?
                bne     CantRun
.
.
.
</snippet>
Below is the best answer I can recall of about processor model:

<paste>
In general, you shouldn't ever say "Am I on a Palm V device" or whatever.
You should be asking the question "does this have a software contrast
control button".  That way you're not limiting yourself to only working
correctly on current products.

That said, I don't know how the official way to detect if you've got
software contrast control or not.  I'll have the docs folks check into this.

If you want to know what kind of processor is there, use the
sysFtrNumProcessorID feature.  From the 3.1 includes, and apologies for the
word wrapping:

#define sysFtrNumProcessorID   2 // 0xMMMMRRRR, where MMMM is the processor
model and RRRR is the revision.
#define sysFtrNumProcessorMask   0xFFFF0000  // Mask to obtain processor
model
#define sysFtrNumProcessor328   0x00010000  // Motorola 68328  (Dragonball)
#define sysFtrNumProcessorEZ   0x00020000  // Motorola 68EZ328  (Dragonball
EZ)
#define sysFtrNumProductID sysFtrNumProcessorID  // old (obsolete) define

-David Fedor
Palm Developer Support

</paste>

BGK
-----Original Message-----
From: Julian Scott <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: 22 L`pr 1999 c. 17:12
Subject: OS Version recognition?


>I am doing the following to try to get the OS version number, but all I
seem
>to get is 0
>Can anyone throw some light on the matter?
>
>AppType equ 'TEST'
> lea OSVersion(a5),a4
> systrap FtrGet(#AppType.l, #sysFtrNumROMVersion.l, a4.l)
>
>Alternatively, how can I test for a certain Dragonball type?
>
>Julian Scott
>[EMAIL PROTECTED]
>
>

Reply via email to