Multichoice1456.htm, Multichoice1456.class and Engine1456.class files.

William Overington

Copyright 2000 William Overington

Here are links to the files needed to run the Multichoice1456 1456 applet landscape together with a copy of the source code of the HTML file. The Multichoice1456 1456 applet landscape is a development of the Print1456 1456 applet landscape and has available the same colour toolbar facilities as Print1456.

In order to run your own 1456 object code programs using this 1456 applet landscape, please download to a directory of your computer the files Multichoice1456.htm, Multichoice1456.class and Engine1456.class. The Engine1456.class file is exactly the same file as used with the Softboard1456.class 1456 applet landscape, so if you downloaded it to local storage with the Softboard1456.class file and you are using the same local directory for the Multichoice1456 1456 applet landscape, there is no need to download it again. Make a copy of Multichoice1456.htm with a different name and then use a text editor, such as Notepad, to edit the source code of this newly created copy of the file Multichoice1456.htm and then view that file in a browser. Please note that Multichoice1456.htm on its own will just display a plain white background with five radio style buttons and a long button. This is because it is a blank landscape ready for 1456 programmers to add 1456 object code into a copy of it.

I have prepared two example files, customizing the system as demonstrations.

Multichoice1456.htm

Multichoice1456.class

Engine1456.class

demo8.htm

demo9.htm

The demo8.htm file shows a multichoice question and answer scenario with several demonstration questions. The user chooses an answer from amongst the choice provided and then clicks on the button.

The demo9.htm file shows the Multichoice1456 1456 applet landscape being used in a different manner. Here the mouse is used to place filled circles of various colours on the screen. The radio buttons are used to change the colour that is used to draw the filled circles. Clicking near the buttons has interesting effects.

For both of these demonstrations, analysing the source code of the HTML files may prove useful to people learning to use 1456 object code.

Please remember that all of the differences between demo8.htm and demo9.htm are produced by differences in the 1456 object code in the HTML files.

It is hoped that readers may wish to try producing their own demonstrations.

Here is the source code of the file Multichoice1456.htm.

<html>
<head>
</head>
<body bgcolor="#804000">
<p align=center>
<applet code="Multichoice1456.class" width=700 height=400>
<param name="BUTTON01" value="Please click to register your answer.">
<param name="SOFTWARE01" value="1:H">
<param name="SOFTWARE02" value="41:H">
<param name="SOFTWARE03" value="H">
<param name="SOFTWARE04" value="70:H">
<param name="SOFTWARE05" value="H">
<param name="SOFTWARE06" value="H">
<param name="SOFTWARE07" value="71:H  72:H  73:H  74:H">
<param name="SOFTWARE08" value="75:H  76:H  77:H">
<param name="SOFTWARE09" value="51:H 91:H 92:H 93:H 94:H 95:H">

In operation, Multichoice1456.class provides sixteen possible
entry points.
At the moment of start up there is one entry point
available.

1: is for start up.

After start up, at any time either seven entry points are
available or fourteen entry points are available, depending upon
whether the 1456 applet landscape Multichoice1456.class has
been instructed, using the software interrupt mechanism,
to use seven entry points or to use fourteen entry points.

After start up, six of these entry points are always available.

One of these is a button which activates the 51: entry point.

The other five are buttons of a checkbox group, popularly
known as radio buttons.

In order from top to bottom of the column of radio buttons on the
screen these activate the 91: 92: 93: 94: 95: entry points.

In addition each radio button will write its entry point number
into mi1456[1].

Thus the information given by the clicking of a radio button may
be utilised directly to execute 1456 software, or it may be
utilised by the setting of the value of mi1456[1] being used
by software at the 51: entry point when the button is clicked,
or both if so desired. 

After start up there are either one or eight mouse controlled
entry points available.

When there is one mouse controlled entry point, which is
the default situation at start up, or after a 12? software
interrupt. 

41: is for the mouse being pressed.

When there are 8 mouse controlled entry points,
achieved after a 11? software interrupt.
The 11? could be in the 1: routine or the 41: routine as
desired.
Once the entry points are split in this way the 41: entry
point is not available unless a 12? software interrupt
is used.

70: is when y is less than 350.

71: is when y is 350 or greater and x is less than 100.
72: is when y is 350 or greater and x is 100 or greater and
                                              less than 200.
73: is when y is 350 or greater and x is 200 or greater and
                                              less than 300.
74: is when y is 350 or greater and x is 300 or greater and
                                              less than 400.
75: is when y is 350 or greater and x is 400 or greater and
                                              less than 500.
76: is when y is 350 or greater and x is 500 or greater and
                                              less than 600.
77: is when y is 350 or greater and x is 600 or greater and
                                              less than 700.

Please know that a 21? software interrupt will turn on the
colour toolbar, which aligns with these selected regions.

A 22? software interrupt will replace the colour toolbar
and anything drawn on it with a white background. 

Please know that the colour toolbar and the splitting of
the entry points are independent of each other.
It may well be that typical usage will be to use both
together, yet the 1456 programmer may, if he or she so
chooses, split the entry points and not use the colour
toolbar, perhaps writing a text character within each area.
Also, the colour toolbar is simply filled rectangles
drawn on the display screen by the 1456 applet landscape.
An identical display could be produced by drawing
filled rectangles using 1456 object code.

The 1456 programmer may, if he or she so chooses, produce
his or her own active areas on the screen using eutodraw
graphics commands and by using the values of the
coordinates of the mouse button press with condition tests
and conditional jump instructions just using entry points
1: and 41: if so desired.
Another possibility is to use 11? at start up and to use
the split entry points and also have other active areas
identified using 1456 object code starting at the 70:
entry label.

Regardless of whether one entry point or entry points are
being used, the position coordinates of the mouse at a
mouse press are placed in integers 5 and 6, x and y
respectively.

The shift key being down at the mouse press causes
a 1 to be placed in integer 7.
The shift key being up at the mouse press causes
a 0 to be placed in integer 7.

The control key being down at the mouse press causes
a 1 to be placed in integer 8.
The control key being up at the mouse press causes
a 0 to be placed in integer 8.

The alt key being down at the mouse press causes
a 1 to be placed in integer 9.
The alt key being up at the mouse press causes
a 0 to be placed in integer 9.

There are various features provided in the software
interrupt service routine.

The command 1? will, for this particular 1456
applet landscape, place the string
"The 1456 engine in action."
into ms1456[19].

11? will split the entry points.
12? will unsplit the entry points.

21? will turn on the colour toolbar.
22? will turn off the colour toolbar.

91? will set the top button on.
92? will set the top but one button on.
93? will set the middle button on.
94? will set the bottom but one button on.
95? will set the bottom button on.
The value of mi1456[1] is not affected.

The lettering that is drawn by eutodraw commands
may have its size and style changed as follows.

1120? SansSerif PLAIN  12 point
1122? SansSerif ITALIC 12 point
1180? SansSerif PLAIN  18 point
1182? SansSerif ITALIC 18 point
1240? SansSerif PLAIN  24 point
1242? SansSerif ITALIC 24 point
1360? SansSerif PLAIN  36 point
1362? SansSerif ITALIC 36 point
1480? SansSerif PLAIN  48 point
1482? SansSerif ITALIC 48 point
1600? SansSerif PLAIN  60 point
1602? SansSerif ITALIC 60 point
1720? SansSerif PLAIN  72 point
1722? SansSerif ITALIC 72 point

</applet>
<br>
</body>

Readers are invited to send feedback by email. Please email the author to send details of usage, stating which type of computer is being used. In particular, I have only tried this on two PCs and would appreciate knowing how the system works on other platforms.

1456 object code

Copyright 2000 William Overington