CPU: Firmware revision
The instruction
SPxPoll2 0,!CPU
will return the board’s current Firmware revision in U0 and U1. U0 is the major revision and U1 is the minor revision. Both numbers should be interpreted as unsigned decimal numbers (each is a byte, 0 thru 255).
Examples
Display firmware version on the character LCD:
OBLCD_SetCur 0,0 ;Prepare LCD
OBLCD_Text "F/ware: " ;Show a title
SPxPoll2 0,!CPU ;Get f/ware rev
PushU 1 ;Minor f/w
PushU 0 ;Major f/w
OBLCD_UDecDispXVW ;Display major
OBLCD_Text "." ;Show a point
OBLCD_UDecDispXVW ;Display minor
Display the firmware version on the touch screen LCD:
SPxPoll2 0,!CPU ;Get f/ware rev
PushU 1 ;Minor f/w (into X)
PushU 0 ;Major f/w (into X, minor now in Y)
#HMI Print( "F/W V", b(=x), ".", b(=y) ) ;Display the version