Wimp_Poll Mask Application
by Mike Whiteman

This is a helpful application for finding the mask to be placed at R0 in the SYS "Wimp_Poll" (SWI &400C7) call.

Running the application installs an icon on the icon bar. Clicking Menu on this icon brings up two options:

Info:Leads to an info box

Quit:Quits the application

Clicking with Select on the icon bar icon opens a window. Each possible reason code returned by "Wimp_Poll" is listed by both name and number. At the end of each is an icon which, when selected, turns red. Clicking on these icons toggles the mask state for that reason code; the current mask is displayed at the bottom of the window as both a hexadecimal and  binary number. It is this number that should be placed in R0. As each reason code is toggled the number is updated.

Clicking Menu over the PollMask window brings up a menu containing 4 options:

Info:As above

Enter mask:This leads to a submenu where either a hexadecimal or binary mask number may be entered. Clicking on 'OK' then updates the window to show which codes are masked out.

Save mask:This option allows you to save the current mask value shown at the bottom of the window to a text file. This allows you to enter the value directly into an editor such as Edit or DeskEdit, where you may be developing a program.

Clear mask:This just resets all the icons to the unset position to enable you to start from scratch.

Closing the window does not lose the current settings; clicking Select on the icon bar icon displays the window as it was left.

 RISC User 1992
