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.
Example: Display firmware version on the LCD:
OBLCD_SetCur 0,0 ;Prepare LCD
OBLCD_Text "F/ware: " ;Show a title
SPxPoll2 0,!CPU ;Get f/ware rev
PushU 0 ;Major f/w
OBLCD_UDecDispXVW ;Display major
OBLCD_Text "." ;Show a point
PushU 1 ;Minor f/w
OBLCD_UDecDispXVW ;Display minor