Home » CEEFAX disks » telesoftware2.adl » ATS/T\ATS07

ATS/T\ATS07

This website contains an archive of files for the Acorn Electron, BBC Micro, Acorn Archimedes, Commodore 16 and Commodore 64 computers, which Dominic Ford has rescued from his private collection of floppy disks and cassettes.

Some of these files were originally commercial releases in the 1980s and 1990s, but they are now widely available online. I assume that copyright over them is no longer being asserted. If you own the copyright and would like files to be removed, please contact me.

Tape/disk: Home » CEEFAX disks » telesoftware2.adl
Filename: ATS/T\ATS07
Read OK:
File size: 2DB0 bytes
Load address: 0000
Exec address: 0000
File contents



Interactive programming                                  J.J.Brayshaw 1987




Module 7 in our 'interactive programming' series looks at the sub-page
coding system for teletext pages. This extension of the page-numbering
system makes differentiation between elements within a cycling page
sequence a simple matter. However, this was not the idea of sub-page
numbering when it was first conceived. Read on to find what it was first
designed for, and how we can make use of it now ...
__________________________________________________________________________


Teletext Interactive Programming:

Advanced Teletext System.  7

(c) J.J.Brayshaw 1987

Sub-Page coding:

In the early days of teletext, CEEFAX was broadcast using only two of the
spare television picture lines. This meant only a very small quantity of
pages could be made available before the access time became intollerably
slow.

The designers thought about the problem, and came up with the idea of
transmitting different pages using the same page number. This would keep
the overall cycle time (the maximum time taken to receive any transmitted
page number) to a minimum, yet allow an almost unlimited volume of
information to be broadcast. The theory went like this:

Viewers wanting the City share prices can call up page 140. The page
carrying this information will be transmitted every hour, at a
pre-determined time (say 5 minutes past the hour). Other viewers wanting
the Recipe of the day could also call up page 140. The page they would be
interested in would be broadcast every hour, this time at, for example, 15
minutes past the hour.

In order to ensure the City viewers do not inadvertantly study the day's
recipe and end up buying shares in Beef Stew, the two different pages
(shares and recipes) must have a differentiating feature that a decoder
can use to eliminate one yet display the other.

The concept, therefore, was to allow the viewer to select both a
particular page and a particular time of day. Only the page transmitted
with both features matching would be displayed. Anyone intersted in both
subjects could specify just the page number, and all frames broadcast on
that page number would be displayed as received.

It is easy now to see why this coding has been given its present limiting
format. Originally called the 'Time Sub-Code', it is now more aptly known




                                  Page 1








Interactive programming                                  J.J.Brayshaw 1987




as the page sub-code, or sub-page number.

As the sub-coding was designed to reflect the time of day, it was
allocated four hex digits to correspond directly to hours and minutes.
These had to range from 00:00 (midnight) to 23:59 (11.59 p.m.). If we
examine this structure closely, we can see the logic that now limits all
sub-page coding:

Digit 1 (tens of hours) need only ever be 0, 1, or 2. This means all
possibilities are covered using just two bits of a nybble (a nybble being
a four-bit binary number (0000 to 1111), or a single HEX digit (0 to F).
As transmission time and space is critical in teletext broadcasts, the
remaining 2 bits from this nybble could be used for other purposes. Using
two bits actually gives us more possibilites than are needed. The maximum
value for this digit was (and still is) 3 (represented by a binary 11).

Similar logic applied to the second digit (the units of hours) shows that
a range from 0 to 9 is needed. This requires all four bits of the nybble
to be used (the number nine being represented in binary as 1001). Once
again, this gives more possible combinations than are needed, and this
digit can actually represent any figure up to &F (15).

The first digit of the minutes must be able to range from zero to five.
Requiring only 3 of the 4 bits in the nybble, leaving the high bit for
other purposes, gives us a possible maximum in this digit of 7 (binary
111).

Finally, the units of minutes must range from zero to nine (again
requiring all four bits of a nybble). The maximum here, then, is &F (15).

The sub-page code can therefore be a maximum of &3F7F. This is the maximum
for each digit - not all the codes between 0 an &3F7F are possible! (For
example, a sub-page code of &0080 is not possible, as the third digit
cannot exceed 7).

So the sub-page coding is restricted due to this historical legacy. The
sub-page coding is still in use as a 'time-code' on the CEEFAX alarm page
(page 196). The TIME button on a teletext tv's handset will explicitly
select a specific sub-page code to be received. By requesting the alarm
at, for example, 11:25 a.m., you are requesting page 196 sub-page 1125,
which just happens to be broadcast at exactly 11:25 a.m.

The Alarm page is the only page that is being transmitted which uses the
sub-page coding as the original designers expected. Other cycling
sub-pages use this time-code as a simple method for decoders to
differentiate between consecutive pages in a rolling sequence. The fact
that CEEFAX is now broadcast on three times as many television picture
lines as the original transmissions used, means the original purpose for




                                  Page 2








Interactive programming                                  J.J.Brayshaw 1987




the time code is now largely obsolete.

As the sub-page numbering was a part of the original Teletext concept, it
is included in the first row of the page (row zero). This was the only
packet of the original transmission format that contained some
non-displayable bytes (other than row and magazine addresses). Packet 27
was introduced some years later!

Studying packet zero, we find, as with all other packets, there are 45
bytes. The first three bytes are clock run-in and framing codes which
allow the decoder to judge the exact speed of the incoming bits and to
tell the start and end position of each byte. The next two bytes are the
magazine number and row number. So far, all this is identical to all other
packets in the page. The next two bytes (bytes 5 and 6 counting fom zero)
are the page number in Hamming coded form. Packet zero is the only row to
contain the page number - all packets received after packet zero are
assumed to be in the same page, until a different packet zero is received.
Bytes 7, 8, 9 and 10 contain the sub-page coding in Hamming coded form.
This means each byte decodes to a four-bit nybble representing each digit
of the sub-page coding. Two control bytes follow (these will be explained
in future modules) and the packet is completed with 32 bytes of data.

When a page is requested using ATS, the Hamming-coded bytes are decoded
before being placed in computer memory. This makes our task of identifying
the sub-page code a very simple one. Packet zero takes on a different
format after being processed by the ATS. The clock run-in and framing
codes are not transferred. Each pair of eight-bit Hamming coded bytes have
been translated to two four-bit nybbles which have been concatenated to
form a single byte. This, of course, creates a few gaps in the row of
data! The ATS fills these with a zero to maintain packet length
compatibility with all the other received packets. The format of row zero,
then, after ATS decoding, is:

--------------------------------------------------------------/    /-----
| Byte:     0    1    2     3    4    5    6   7   8   9  10  /..../ 42 |
|-------------------------------------------------------------/    /----|
| Meaning: Mag  Row  Page  Sub-page   Control  0   0   0  data .... data|
|          No.  No.  No.   High Low   Bytes    Pad  chrs                |
--------------------------------------------------------------/    /-----

So, to find the sub-page code, we simply use the *TRANSFER command (or
*DATA if we also wish to perform a CRC to test the integrity of the
received page) then examine the appropriate bytes directly. All the
de-Hamming and exclusion of the unwanted bits have been carried out for
us! Furthermore, packet zero is the only one of the received packets whose
precise position in memory we already know. When a page is received, the
packets can be in any order with the exception of row zero. This row must
always be received first, as it is used to identify the start of the




                                  Page 3








Interactive programming                                  J.J.Brayshaw 1987




transmission of the page, and so it will always occupy the beginning of
our allocated page memory store.

So, after a *TRANSFER or *DATA to, for example, location &7000, packet
zero must start at location &7000. The sub-page data is in bytes 3 and
4, so a simple routine to read them is possible:

           sub_page%=((&7000?3)*256)+(&7000?4)

If we need to use this information to describe the page (or, for example,
to request the next sequential sub-page provided it is being transmitted)
we need to ensure the number is complete with all leading zeros. This can
be achieved easily by turning the sub-page number into a string, adding a
string of four zeros at the beginning, then taking the last four digits of
the result:

          sub_page$=RIGHT$("0000"+STR$~sub_page%,4)

This can then be added to the magazine and page numbers in string form to
create a suitable OSCLI command if required:

          pn$=STR$~(mag%)+RIGHT$("00"+STR$~(page%),2)+"s"+sub_page$
          PROCoscli("TRANSFER "+pn$)

In practice, however, not all the possible sub-code numbers in the
sequence are always used. It is normal to transmit pages with sub-page
coding from 1 to 9, then miss sub-pages &A to &F and start again at
sub-page &10. This makes the logical progression of rolling sub-pages in a
sequence appear to be numbered in decimal, from 1 to 9, then 10 to 19,
etc. However, it is possible to have sub-page sequences that include the
hex numbers also! There are times when sub-page numbering is quite
erratic, and it cannot be relied upon that sub-page numbers will always be
sequential in any given rolling sequence.

There are two special cases to sub-page coding:

When a sub-page code is given as zero, it signifies it is the only one on
that page number, and is therefore a 'static' page;

If the sub-page code is given as &3F7F, this also means it is a static
page and should be treated as sub-page 0.

It is not always reliable to depend on the displayed page numbering on a
set of rolling sub-pages (as given at the right-hand end of packet 1).
This is only added as an editorial feature, and may, from time to time, be
inaccurate, or in fact not be present at all. There is, unfortunately, no
100% reliable method for a program to determine how many sub-pages make up
a particular rolling sequence. This information is simply not transmitted!




                                  Page 4








Interactive programming                                  J.J.Brayshaw 1987




The best we can do is to rely on a combination of sub-page numbering and
the displayed page numbers in packet one.

__________________________________________________________________________

The program accompanying this module will receive a page from a rolling
sequence (actually from CEEFAX page 711, but this can easily be altered),
perform a CRC (cyclic redundancy check) on the page data, then decode its
sub-page number. The results of both checks are given on row 25 of the
display.

The telesoftware program "CEE/Vid" will receive a complete cycling
sequence of rolling sub-pages on any given page number, using some of the
methods described above, and store the sequence as a VidiEd magazine for
use with the VidiEd package recently broadcast.





































                                  Page 5




00000000  0d 0d 0d 0d 49 6e 74 65  72 61 63 74 69 76 65 20  |....Interactive |
00000010  70 72 6f 67 72 61 6d 6d  69 6e 67 20 20 20 20 20  |programming     |
00000020  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
00000030  20 20 20 20 20 20 20 20  20 20 20 20 20 4a 2e 4a  |             J.J|
00000040  2e 42 72 61 79 73 68 61  77 20 31 39 38 37 0d 0d  |.Brayshaw 1987..|
00000050  0d 0d 0d 4d 6f 64 75 6c  65 20 37 20 69 6e 20 6f  |...Module 7 in o|
00000060  75 72 20 27 69 6e 74 65  72 61 63 74 69 76 65 20  |ur 'interactive |
00000070  70 72 6f 67 72 61 6d 6d  69 6e 67 27 20 73 65 72  |programming' ser|
00000080  69 65 73 20 6c 6f 6f 6b  73 20 61 74 20 74 68 65  |ies looks at the|
00000090  20 73 75 62 2d 70 61 67  65 0d 63 6f 64 69 6e 67  | sub-page.coding|
000000a0  20 73 79 73 74 65 6d 20  66 6f 72 20 74 65 6c 65  | system for tele|
000000b0  74 65 78 74 20 70 61 67  65 73 2e 20 54 68 69 73  |text pages. This|
000000c0  20 65 78 74 65 6e 73 69  6f 6e 20 6f 66 20 74 68  | extension of th|
000000d0  65 20 70 61 67 65 2d 6e  75 6d 62 65 72 69 6e 67  |e page-numbering|
000000e0  0d 73 79 73 74 65 6d 20  6d 61 6b 65 73 20 64 69  |.system makes di|
000000f0  66 66 65 72 65 6e 74 69  61 74 69 6f 6e 20 62 65  |fferentiation be|
00000100  74 77 65 65 6e 20 65 6c  65 6d 65 6e 74 73 20 77  |tween elements w|
00000110  69 74 68 69 6e 20 61 20  63 79 63 6c 69 6e 67 20  |ithin a cycling |
00000120  70 61 67 65 0d 73 65 71  75 65 6e 63 65 20 61 20  |page.sequence a |
00000130  73 69 6d 70 6c 65 20 6d  61 74 74 65 72 2e 20 48  |simple matter. H|
00000140  6f 77 65 76 65 72 2c 20  74 68 69 73 20 77 61 73  |owever, this was|
00000150  20 6e 6f 74 20 74 68 65  20 69 64 65 61 20 6f 66  | not the idea of|
00000160  20 73 75 62 2d 70 61 67  65 0d 6e 75 6d 62 65 72  | sub-page.number|
00000170  69 6e 67 20 77 68 65 6e  20 69 74 20 77 61 73 20  |ing when it was |
00000180  66 69 72 73 74 20 63 6f  6e 63 65 69 76 65 64 2e  |first conceived.|
00000190  20 52 65 61 64 20 6f 6e  20 74 6f 20 66 69 6e 64  | Read on to find|
000001a0  20 77 68 61 74 20 69 74  20 77 61 73 20 66 69 72  | what it was fir|
000001b0  73 74 0d 64 65 73 69 67  6e 65 64 20 66 6f 72 2c  |st.designed for,|
000001c0  20 61 6e 64 20 68 6f 77  20 77 65 20 63 61 6e 20  | and how we can |
000001d0  6d 61 6b 65 20 75 73 65  20 6f 66 20 69 74 20 6e  |make use of it n|
000001e0  6f 77 20 2e 2e 2e 0d 5f  5f 5f 5f 5f 5f 5f 5f 5f  |ow ...._________|
000001f0  5f 5f 5f 5f 5f 5f 5f 5f  5f 5f 5f 5f 5f 5f 5f 5f  |________________|
*
00000230  5f 0d 0d 0d 54 65 6c 65  74 65 78 74 20 49 6e 74  |_...Teletext Int|
00000240  65 72 61 63 74 69 76 65  20 50 72 6f 67 72 61 6d  |eractive Program|
00000250  6d 69 6e 67 3a 0d 0d 41  64 76 61 6e 63 65 64 20  |ming:..Advanced |
00000260  54 65 6c 65 74 65 78 74  20 53 79 73 74 65 6d 2e  |Teletext System.|
00000270  20 20 37 0d 0d 28 63 29  20 4a 2e 4a 2e 42 72 61  |  7..(c) J.J.Bra|
00000280  79 73 68 61 77 20 31 39  38 37 0d 0d 53 75 62 2d  |yshaw 1987..Sub-|
00000290  50 61 67 65 20 63 6f 64  69 6e 67 3a 0d 0d 49 6e  |Page coding:..In|
000002a0  20 74 68 65 20 65 61 72  6c 79 20 64 61 79 73 20  | the early days |
000002b0  6f 66 20 74 65 6c 65 74  65 78 74 2c 20 43 45 45  |of teletext, CEE|
000002c0  46 41 58 20 77 61 73 20  62 72 6f 61 64 63 61 73  |FAX was broadcas|
000002d0  74 20 75 73 69 6e 67 20  6f 6e 6c 79 20 74 77 6f  |t using only two|
000002e0  20 6f 66 20 74 68 65 0d  73 70 61 72 65 20 74 65  | of the.spare te|
000002f0  6c 65 76 69 73 69 6f 6e  20 70 69 63 74 75 72 65  |levision picture|
00000300  20 6c 69 6e 65 73 2e 20  54 68 69 73 20 6d 65 61  | lines. This mea|
00000310  6e 74 20 6f 6e 6c 79 20  61 20 76 65 72 79 20 73  |nt only a very s|
00000320  6d 61 6c 6c 20 71 75 61  6e 74 69 74 79 20 6f 66  |mall quantity of|
00000330  0d 70 61 67 65 73 20 63  6f 75 6c 64 20 62 65 20  |.pages could be |
00000340  6d 61 64 65 20 61 76 61  69 6c 61 62 6c 65 20 62  |made available b|
00000350  65 66 6f 72 65 20 74 68  65 20 61 63 63 65 73 73  |efore the access|
00000360  20 74 69 6d 65 20 62 65  63 61 6d 65 20 69 6e 74  | time became int|
00000370  6f 6c 6c 65 72 61 62 6c  79 0d 73 6c 6f 77 2e 0d  |ollerably.slow..|
00000380  0d 54 68 65 20 64 65 73  69 67 6e 65 72 73 20 74  |.The designers t|
00000390  68 6f 75 67 68 74 20 61  62 6f 75 74 20 74 68 65  |hought about the|
000003a0  20 70 72 6f 62 6c 65 6d  2c 20 61 6e 64 20 63 61  | problem, and ca|
000003b0  6d 65 20 75 70 20 77 69  74 68 20 74 68 65 20 69  |me up with the i|
000003c0  64 65 61 20 6f 66 0d 74  72 61 6e 73 6d 69 74 74  |dea of.transmitt|
000003d0  69 6e 67 20 64 69 66 66  65 72 65 6e 74 20 70 61  |ing different pa|
000003e0  67 65 73 20 75 73 69 6e  67 20 74 68 65 20 73 61  |ges using the sa|
000003f0  6d 65 20 70 61 67 65 20  6e 75 6d 62 65 72 2e 20  |me page number. |
00000400  54 68 69 73 20 77 6f 75  6c 64 20 6b 65 65 70 0d  |This would keep.|
00000410  74 68 65 20 6f 76 65 72  61 6c 6c 20 63 79 63 6c  |the overall cycl|
00000420  65 20 74 69 6d 65 20 28  74 68 65 20 6d 61 78 69  |e time (the maxi|
00000430  6d 75 6d 20 74 69 6d 65  20 74 61 6b 65 6e 20 74  |mum time taken t|
00000440  6f 20 72 65 63 65 69 76  65 20 61 6e 79 20 74 72  |o receive any tr|
00000450  61 6e 73 6d 69 74 74 65  64 0d 70 61 67 65 20 6e  |ansmitted.page n|
00000460  75 6d 62 65 72 29 20 74  6f 20 61 20 6d 69 6e 69  |umber) to a mini|
00000470  6d 75 6d 2c 20 79 65 74  20 61 6c 6c 6f 77 20 61  |mum, yet allow a|
00000480  6e 20 61 6c 6d 6f 73 74  20 75 6e 6c 69 6d 69 74  |n almost unlimit|
00000490  65 64 20 76 6f 6c 75 6d  65 20 6f 66 0d 69 6e 66  |ed volume of.inf|
000004a0  6f 72 6d 61 74 69 6f 6e  20 74 6f 20 62 65 20 62  |ormation to be b|
000004b0  72 6f 61 64 63 61 73 74  2e 20 54 68 65 20 74 68  |roadcast. The th|
000004c0  65 6f 72 79 20 77 65 6e  74 20 6c 69 6b 65 20 74  |eory went like t|
000004d0  68 69 73 3a 0d 0d 56 69  65 77 65 72 73 20 77 61  |his:..Viewers wa|
000004e0  6e 74 69 6e 67 20 74 68  65 20 43 69 74 79 20 73  |nting the City s|
000004f0  68 61 72 65 20 70 72 69  63 65 73 20 63 61 6e 20  |hare prices can |
00000500  63 61 6c 6c 20 75 70 20  70 61 67 65 20 31 34 30  |call up page 140|
00000510  2e 20 54 68 65 20 70 61  67 65 0d 63 61 72 72 79  |. The page.carry|
00000520  69 6e 67 20 74 68 69 73  20 69 6e 66 6f 72 6d 61  |ing this informa|
00000530  74 69 6f 6e 20 77 69 6c  6c 20 62 65 20 74 72 61  |tion will be tra|
00000540  6e 73 6d 69 74 74 65 64  20 65 76 65 72 79 20 68  |nsmitted every h|
00000550  6f 75 72 2c 20 61 74 20  61 0d 70 72 65 2d 64 65  |our, at a.pre-de|
00000560  74 65 72 6d 69 6e 65 64  20 74 69 6d 65 20 28 73  |termined time (s|
00000570  61 79 20 35 20 6d 69 6e  75 74 65 73 20 70 61 73  |ay 5 minutes pas|
00000580  74 20 74 68 65 20 68 6f  75 72 29 2e 20 4f 74 68  |t the hour). Oth|
00000590  65 72 20 76 69 65 77 65  72 73 20 77 61 6e 74 69  |er viewers wanti|
000005a0  6e 67 0d 74 68 65 20 52  65 63 69 70 65 20 6f 66  |ng.the Recipe of|
000005b0  20 74 68 65 20 64 61 79  20 63 6f 75 6c 64 20 61  | the day could a|
000005c0  6c 73 6f 20 63 61 6c 6c  20 75 70 20 70 61 67 65  |lso call up page|
000005d0  20 31 34 30 2e 20 54 68  65 20 70 61 67 65 20 74  | 140. The page t|
000005e0  68 65 79 20 77 6f 75 6c  64 20 62 65 0d 69 6e 74  |hey would be.int|
000005f0  65 72 65 73 74 65 64 20  69 6e 20 77 6f 75 6c 64  |erested in would|
00000600  20 62 65 20 62 72 6f 61  64 63 61 73 74 20 65 76  | be broadcast ev|
00000610  65 72 79 20 68 6f 75 72  2c 20 74 68 69 73 20 74  |ery hour, this t|
00000620  69 6d 65 20 61 74 2c 20  66 6f 72 20 65 78 61 6d  |ime at, for exam|
00000630  70 6c 65 2c 20 31 35 0d  6d 69 6e 75 74 65 73 20  |ple, 15.minutes |
00000640  70 61 73 74 20 74 68 65  20 68 6f 75 72 2e 0d 0d  |past the hour...|
00000650  49 6e 20 6f 72 64 65 72  20 74 6f 20 65 6e 73 75  |In order to ensu|
00000660  72 65 20 74 68 65 20 43  69 74 79 20 76 69 65 77  |re the City view|
00000670  65 72 73 20 64 6f 20 6e  6f 74 20 69 6e 61 64 76  |ers do not inadv|
00000680  65 72 74 61 6e 74 6c 79  20 73 74 75 64 79 20 74  |ertantly study t|
00000690  68 65 20 64 61 79 27 73  0d 72 65 63 69 70 65 20  |he day's.recipe |
000006a0  61 6e 64 20 65 6e 64 20  75 70 20 62 75 79 69 6e  |and end up buyin|
000006b0  67 20 73 68 61 72 65 73  20 69 6e 20 42 65 65 66  |g shares in Beef|
000006c0  20 53 74 65 77 2c 20 74  68 65 20 74 77 6f 20 64  | Stew, the two d|
000006d0  69 66 66 65 72 65 6e 74  20 70 61 67 65 73 0d 28  |ifferent pages.(|
000006e0  73 68 61 72 65 73 20 61  6e 64 20 72 65 63 69 70  |shares and recip|
000006f0  65 73 29 20 6d 75 73 74  20 68 61 76 65 20 61 20  |es) must have a |
00000700  64 69 66 66 65 72 65 6e  74 69 61 74 69 6e 67 20  |differentiating |
00000710  66 65 61 74 75 72 65 20  74 68 61 74 20 61 20 64  |feature that a d|
00000720  65 63 6f 64 65 72 0d 63  61 6e 20 75 73 65 20 74  |ecoder.can use t|
00000730  6f 20 65 6c 69 6d 69 6e  61 74 65 20 6f 6e 65 20  |o eliminate one |
00000740  79 65 74 20 64 69 73 70  6c 61 79 20 74 68 65 20  |yet display the |
00000750  6f 74 68 65 72 2e 0d 0d  54 68 65 20 63 6f 6e 63  |other...The conc|
00000760  65 70 74 2c 20 74 68 65  72 65 66 6f 72 65 2c 20  |ept, therefore, |
00000770  77 61 73 20 74 6f 20 61  6c 6c 6f 77 20 74 68 65  |was to allow the|
00000780  20 76 69 65 77 65 72 20  74 6f 20 73 65 6c 65 63  | viewer to selec|
00000790  74 20 62 6f 74 68 20 61  0d 70 61 72 74 69 63 75  |t both a.particu|
000007a0  6c 61 72 20 70 61 67 65  20 61 6e 64 20 61 20 70  |lar page and a p|
000007b0  61 72 74 69 63 75 6c 61  72 20 74 69 6d 65 20 6f  |articular time o|
000007c0  66 20 64 61 79 2e 20 4f  6e 6c 79 20 74 68 65 20  |f day. Only the |
000007d0  70 61 67 65 20 74 72 61  6e 73 6d 69 74 74 65 64  |page transmitted|
000007e0  0d 77 69 74 68 20 62 6f  74 68 20 66 65 61 74 75  |.with both featu|
000007f0  72 65 73 20 6d 61 74 63  68 69 6e 67 20 77 6f 75  |res matching wou|
00000800  6c 64 20 62 65 20 64 69  73 70 6c 61 79 65 64 2e  |ld be displayed.|
00000810  20 41 6e 79 6f 6e 65 20  69 6e 74 65 72 73 74 65  | Anyone interste|
00000820  64 20 69 6e 20 62 6f 74  68 0d 73 75 62 6a 65 63  |d in both.subjec|
00000830  74 73 20 63 6f 75 6c 64  20 73 70 65 63 69 66 79  |ts could specify|
00000840  20 6a 75 73 74 20 74 68  65 20 70 61 67 65 20 6e  | just the page n|
00000850  75 6d 62 65 72 2c 20 61  6e 64 20 61 6c 6c 20 66  |umber, and all f|
00000860  72 61 6d 65 73 20 62 72  6f 61 64 63 61 73 74 20  |rames broadcast |
00000870  6f 6e 0d 74 68 61 74 20  70 61 67 65 20 6e 75 6d  |on.that page num|
00000880  62 65 72 20 77 6f 75 6c  64 20 62 65 20 64 69 73  |ber would be dis|
00000890  70 6c 61 79 65 64 20 61  73 20 72 65 63 65 69 76  |played as receiv|
000008a0  65 64 2e 0d 0d 49 74 20  69 73 20 65 61 73 79 20  |ed...It is easy |
000008b0  6e 6f 77 20 74 6f 20 73  65 65 20 77 68 79 20 74  |now to see why t|
000008c0  68 69 73 20 63 6f 64 69  6e 67 20 68 61 73 20 62  |his coding has b|
000008d0  65 65 6e 20 67 69 76 65  6e 20 69 74 73 20 70 72  |een given its pr|
000008e0  65 73 65 6e 74 20 6c 69  6d 69 74 69 6e 67 0d 66  |esent limiting.f|
000008f0  6f 72 6d 61 74 2e 20 4f  72 69 67 69 6e 61 6c 6c  |ormat. Originall|
00000900  79 20 63 61 6c 6c 65 64  20 74 68 65 20 27 54 69  |y called the 'Ti|
00000910  6d 65 20 53 75 62 2d 43  6f 64 65 27 2c 20 69 74  |me Sub-Code', it|
00000920  20 69 73 20 6e 6f 77 20  6d 6f 72 65 20 61 70 74  | is now more apt|
00000930  6c 79 20 6b 6e 6f 77 6e  0d 0d 0d 0d 0d 20 20 20  |ly known.....   |
00000940  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
00000950  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 50  |               P|
00000960  61 67 65 20 31 0d 0d 0d  0d 0d 0d 0d 0d 0d 49 6e  |age 1.........In|
00000970  74 65 72 61 63 74 69 76  65 20 70 72 6f 67 72 61  |teractive progra|
00000980  6d 6d 69 6e 67 20 20 20  20 20 20 20 20 20 20 20  |mming           |
00000990  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
000009a0  20 20 20 20 20 20 20 4a  2e 4a 2e 42 72 61 79 73  |       J.J.Brays|
000009b0  68 61 77 20 31 39 38 37  0d 0d 0d 0d 0d 61 73 20  |haw 1987.....as |
000009c0  74 68 65 20 70 61 67 65  20 73 75 62 2d 63 6f 64  |the page sub-cod|
000009d0  65 2c 20 6f 72 20 73 75  62 2d 70 61 67 65 20 6e  |e, or sub-page n|
000009e0  75 6d 62 65 72 2e 0d 0d  41 73 20 74 68 65 20 73  |umber...As the s|
000009f0  75 62 2d 63 6f 64 69 6e  67 20 77 61 73 20 64 65  |ub-coding was de|
00000a00  73 69 67 6e 65 64 20 74  6f 20 72 65 66 6c 65 63  |signed to reflec|
00000a10  74 20 74 68 65 20 74 69  6d 65 20 6f 66 20 64 61  |t the time of da|
00000a20  79 2c 20 69 74 20 77 61  73 0d 61 6c 6c 6f 63 61  |y, it was.alloca|
00000a30  74 65 64 20 66 6f 75 72  20 68 65 78 20 64 69 67  |ted four hex dig|
00000a40  69 74 73 20 74 6f 20 63  6f 72 72 65 73 70 6f 6e  |its to correspon|
00000a50  64 20 64 69 72 65 63 74  6c 79 20 74 6f 20 68 6f  |d directly to ho|
00000a60  75 72 73 20 61 6e 64 20  6d 69 6e 75 74 65 73 2e  |urs and minutes.|
00000a70  0d 54 68 65 73 65 20 68  61 64 20 74 6f 20 72 61  |.These had to ra|
00000a80  6e 67 65 20 66 72 6f 6d  20 30 30 3a 30 30 20 28  |nge from 00:00 (|
00000a90  6d 69 64 6e 69 67 68 74  29 20 74 6f 20 32 33 3a  |midnight) to 23:|
00000aa0  35 39 20 28 31 31 2e 35  39 20 70 2e 6d 2e 29 2e  |59 (11.59 p.m.).|
00000ab0  20 49 66 20 77 65 0d 65  78 61 6d 69 6e 65 20 74  | If we.examine t|
00000ac0  68 69 73 20 73 74 72 75  63 74 75 72 65 20 63 6c  |his structure cl|
00000ad0  6f 73 65 6c 79 2c 20 77  65 20 63 61 6e 20 73 65  |osely, we can se|
00000ae0  65 20 74 68 65 20 6c 6f  67 69 63 20 74 68 61 74  |e the logic that|
00000af0  20 6e 6f 77 20 6c 69 6d  69 74 73 20 61 6c 6c 0d  | now limits all.|
00000b00  73 75 62 2d 70 61 67 65  20 63 6f 64 69 6e 67 3a  |sub-page coding:|
00000b10  0d 0d 44 69 67 69 74 20  31 20 28 74 65 6e 73 20  |..Digit 1 (tens |
00000b20  6f 66 20 68 6f 75 72 73  29 20 6e 65 65 64 20 6f  |of hours) need o|
00000b30  6e 6c 79 20 65 76 65 72  20 62 65 20 30 2c 20 31  |nly ever be 0, 1|
00000b40  2c 20 6f 72 20 32 2e 20  54 68 69 73 20 6d 65 61  |, or 2. This mea|
00000b50  6e 73 20 61 6c 6c 0d 70  6f 73 73 69 62 69 6c 69  |ns all.possibili|
00000b60  74 69 65 73 20 61 72 65  20 63 6f 76 65 72 65 64  |ties are covered|
00000b70  20 75 73 69 6e 67 20 6a  75 73 74 20 74 77 6f 20  | using just two |
00000b80  62 69 74 73 20 6f 66 20  61 20 6e 79 62 62 6c 65  |bits of a nybble|
00000b90  20 28 61 20 6e 79 62 62  6c 65 20 62 65 69 6e 67  | (a nybble being|
00000ba0  0d 61 20 66 6f 75 72 2d  62 69 74 20 62 69 6e 61  |.a four-bit bina|
00000bb0  72 79 20 6e 75 6d 62 65  72 20 28 30 30 30 30 20  |ry number (0000 |
00000bc0  74 6f 20 31 31 31 31 29  2c 20 6f 72 20 61 20 73  |to 1111), or a s|
00000bd0  69 6e 67 6c 65 20 48 45  58 20 64 69 67 69 74 20  |ingle HEX digit |
00000be0  28 30 20 74 6f 20 46 29  2e 0d 41 73 20 74 72 61  |(0 to F)..As tra|
00000bf0  6e 73 6d 69 73 73 69 6f  6e 20 74 69 6d 65 20 61  |nsmission time a|
00000c00  6e 64 20 73 70 61 63 65  20 69 73 20 63 72 69 74  |nd space is crit|
00000c10  69 63 61 6c 20 69 6e 20  74 65 6c 65 74 65 78 74  |ical in teletext|
00000c20  20 62 72 6f 61 64 63 61  73 74 73 2c 20 74 68 65  | broadcasts, the|
00000c30  0d 72 65 6d 61 69 6e 69  6e 67 20 32 20 62 69 74  |.remaining 2 bit|
00000c40  73 20 66 72 6f 6d 20 74  68 69 73 20 6e 79 62 62  |s from this nybb|
00000c50  6c 65 20 63 6f 75 6c 64  20 62 65 20 75 73 65 64  |le could be used|
00000c60  20 66 6f 72 20 6f 74 68  65 72 20 70 75 72 70 6f  | for other purpo|
00000c70  73 65 73 2e 20 55 73 69  6e 67 0d 74 77 6f 20 62  |ses. Using.two b|
00000c80  69 74 73 20 61 63 74 75  61 6c 6c 79 20 67 69 76  |its actually giv|
00000c90  65 73 20 75 73 20 6d 6f  72 65 20 70 6f 73 73 69  |es us more possi|
00000ca0  62 69 6c 69 74 65 73 20  74 68 61 6e 20 61 72 65  |bilites than are|
00000cb0  20 6e 65 65 64 65 64 2e  20 54 68 65 20 6d 61 78  | needed. The max|
00000cc0  69 6d 75 6d 0d 76 61 6c  75 65 20 66 6f 72 20 74  |imum.value for t|
00000cd0  68 69 73 20 64 69 67 69  74 20 77 61 73 20 28 61  |his digit was (a|
00000ce0  6e 64 20 73 74 69 6c 6c  20 69 73 29 20 33 20 28  |nd still is) 3 (|
00000cf0  72 65 70 72 65 73 65 6e  74 65 64 20 62 79 20 61  |represented by a|
00000d00  20 62 69 6e 61 72 79 20  31 31 29 2e 0d 0d 53 69  | binary 11)...Si|
00000d10  6d 69 6c 61 72 20 6c 6f  67 69 63 20 61 70 70 6c  |milar logic appl|
00000d20  69 65 64 20 74 6f 20 74  68 65 20 73 65 63 6f 6e  |ied to the secon|
00000d30  64 20 64 69 67 69 74 20  28 74 68 65 20 75 6e 69  |d digit (the uni|
00000d40  74 73 20 6f 66 20 68 6f  75 72 73 29 20 73 68 6f  |ts of hours) sho|
00000d50  77 73 20 74 68 61 74 0d  61 20 72 61 6e 67 65 20  |ws that.a range |
00000d60  66 72 6f 6d 20 30 20 74  6f 20 39 20 69 73 20 6e  |from 0 to 9 is n|
00000d70  65 65 64 65 64 2e 20 54  68 69 73 20 72 65 71 75  |eeded. This requ|
00000d80  69 72 65 73 20 61 6c 6c  20 66 6f 75 72 20 62 69  |ires all four bi|
00000d90  74 73 20 6f 66 20 74 68  65 20 6e 79 62 62 6c 65  |ts of the nybble|
00000da0  0d 74 6f 20 62 65 20 75  73 65 64 20 28 74 68 65  |.to be used (the|
00000db0  20 6e 75 6d 62 65 72 20  6e 69 6e 65 20 62 65 69  | number nine bei|
00000dc0  6e 67 20 72 65 70 72 65  73 65 6e 74 65 64 20 69  |ng represented i|
00000dd0  6e 20 62 69 6e 61 72 79  20 61 73 20 31 30 30 31  |n binary as 1001|
00000de0  29 2e 20 4f 6e 63 65 0d  61 67 61 69 6e 2c 20 74  |). Once.again, t|
00000df0  68 69 73 20 67 69 76 65  73 20 6d 6f 72 65 20 70  |his gives more p|
00000e00  6f 73 73 69 62 6c 65 20  63 6f 6d 62 69 6e 61 74  |ossible combinat|
00000e10  69 6f 6e 73 20 74 68 61  6e 20 61 72 65 20 6e 65  |ions than are ne|
00000e20  65 64 65 64 2c 20 61 6e  64 20 74 68 69 73 0d 64  |eded, and this.d|
00000e30  69 67 69 74 20 63 61 6e  20 61 63 74 75 61 6c 6c  |igit can actuall|
00000e40  79 20 72 65 70 72 65 73  65 6e 74 20 61 6e 79 20  |y represent any |
00000e50  66 69 67 75 72 65 20 75  70 20 74 6f 20 26 46 20  |figure up to &F |
00000e60  28 31 35 29 2e 0d 0d 54  68 65 20 66 69 72 73 74  |(15)...The first|
00000e70  20 64 69 67 69 74 20 6f  66 20 74 68 65 20 6d 69  | digit of the mi|
00000e80  6e 75 74 65 73 20 6d 75  73 74 20 62 65 20 61 62  |nutes must be ab|
00000e90  6c 65 20 74 6f 20 72 61  6e 67 65 20 66 72 6f 6d  |le to range from|
00000ea0  20 7a 65 72 6f 20 74 6f  20 66 69 76 65 2e 0d 52  | zero to five..R|
00000eb0  65 71 75 69 72 69 6e 67  20 6f 6e 6c 79 20 33 20  |equiring only 3 |
00000ec0  6f 66 20 74 68 65 20 34  20 62 69 74 73 20 69 6e  |of the 4 bits in|
00000ed0  20 74 68 65 20 6e 79 62  62 6c 65 2c 20 6c 65 61  | the nybble, lea|
00000ee0  76 69 6e 67 20 74 68 65  20 68 69 67 68 20 62 69  |ving the high bi|
00000ef0  74 20 66 6f 72 0d 6f 74  68 65 72 20 70 75 72 70  |t for.other purp|
00000f00  6f 73 65 73 2c 20 67 69  76 65 73 20 75 73 20 61  |oses, gives us a|
00000f10  20 70 6f 73 73 69 62 6c  65 20 6d 61 78 69 6d 75  | possible maximu|
00000f20  6d 20 69 6e 20 74 68 69  73 20 64 69 67 69 74 20  |m in this digit |
00000f30  6f 66 20 37 20 28 62 69  6e 61 72 79 0d 31 31 31  |of 7 (binary.111|
00000f40  29 2e 0d 0d 46 69 6e 61  6c 6c 79 2c 20 74 68 65  |)...Finally, the|
00000f50  20 75 6e 69 74 73 20 6f  66 20 6d 69 6e 75 74 65  | units of minute|
00000f60  73 20 6d 75 73 74 20 72  61 6e 67 65 20 66 72 6f  |s must range fro|
00000f70  6d 20 7a 65 72 6f 20 74  6f 20 6e 69 6e 65 20 28  |m zero to nine (|
00000f80  61 67 61 69 6e 0d 72 65  71 75 69 72 69 6e 67 20  |again.requiring |
00000f90  61 6c 6c 20 66 6f 75 72  20 62 69 74 73 20 6f 66  |all four bits of|
00000fa0  20 61 20 6e 79 62 62 6c  65 29 2e 20 54 68 65 20  | a nybble). The |
00000fb0  6d 61 78 69 6d 75 6d 20  68 65 72 65 2c 20 74 68  |maximum here, th|
00000fc0  65 6e 2c 20 69 73 20 26  46 20 28 31 35 29 2e 0d  |en, is &F (15)..|
00000fd0  0d 54 68 65 20 73 75 62  2d 70 61 67 65 20 63 6f  |.The sub-page co|
00000fe0  64 65 20 63 61 6e 20 74  68 65 72 65 66 6f 72 65  |de can therefore|
00000ff0  20 62 65 20 61 20 6d 61  78 69 6d 75 6d 20 6f 66  | be a maximum of|
00001000  20 26 33 46 37 46 2e 20  54 68 69 73 20 69 73 20  | &3F7F. This is |
00001010  74 68 65 20 6d 61 78 69  6d 75 6d 0d 66 6f 72 20  |the maximum.for |
00001020  65 61 63 68 20 64 69 67  69 74 20 2d 20 6e 6f 74  |each digit - not|
00001030  20 61 6c 6c 20 74 68 65  20 63 6f 64 65 73 20 62  | all the codes b|
00001040  65 74 77 65 65 6e 20 30  20 61 6e 20 26 33 46 37  |etween 0 an &3F7|
00001050  46 20 61 72 65 20 70 6f  73 73 69 62 6c 65 21 20  |F are possible! |
00001060  28 46 6f 72 0d 65 78 61  6d 70 6c 65 2c 20 61 20  |(For.example, a |
00001070  73 75 62 2d 70 61 67 65  20 63 6f 64 65 20 6f 66  |sub-page code of|
00001080  20 26 30 30 38 30 20 69  73 20 6e 6f 74 20 70 6f  | &0080 is not po|
00001090  73 73 69 62 6c 65 2c 20  61 73 20 74 68 65 20 74  |ssible, as the t|
000010a0  68 69 72 64 20 64 69 67  69 74 0d 63 61 6e 6e 6f  |hird digit.canno|
000010b0  74 20 65 78 63 65 65 64  20 37 29 2e 0d 0d 53 6f  |t exceed 7)...So|
000010c0  20 74 68 65 20 73 75 62  2d 70 61 67 65 20 63 6f  | the sub-page co|
000010d0  64 69 6e 67 20 69 73 20  72 65 73 74 72 69 63 74  |ding is restrict|
000010e0  65 64 20 64 75 65 20 74  6f 20 74 68 69 73 20 68  |ed due to this h|
000010f0  69 73 74 6f 72 69 63 61  6c 20 6c 65 67 61 63 79  |istorical legacy|
00001100  2e 20 54 68 65 0d 73 75  62 2d 70 61 67 65 20 63  |. The.sub-page c|
00001110  6f 64 69 6e 67 20 69 73  20 73 74 69 6c 6c 20 69  |oding is still i|
00001120  6e 20 75 73 65 20 61 73  20 61 20 27 74 69 6d 65  |n use as a 'time|
00001130  2d 63 6f 64 65 27 20 6f  6e 20 74 68 65 20 43 45  |-code' on the CE|
00001140  45 46 41 58 20 61 6c 61  72 6d 20 70 61 67 65 0d  |EFAX alarm page.|
00001150  28 70 61 67 65 20 31 39  36 29 2e 20 54 68 65 20  |(page 196). The |
00001160  54 49 4d 45 20 62 75 74  74 6f 6e 20 6f 6e 20 61  |TIME button on a|
00001170  20 74 65 6c 65 74 65 78  74 20 74 76 27 73 20 68  | teletext tv's h|
00001180  61 6e 64 73 65 74 20 77  69 6c 6c 20 65 78 70 6c  |andset will expl|
00001190  69 63 69 74 6c 79 0d 73  65 6c 65 63 74 20 61 20  |icitly.select a |
000011a0  73 70 65 63 69 66 69 63  20 73 75 62 2d 70 61 67  |specific sub-pag|
000011b0  65 20 63 6f 64 65 20 74  6f 20 62 65 20 72 65 63  |e code to be rec|
000011c0  65 69 76 65 64 2e 20 42  79 20 72 65 71 75 65 73  |eived. By reques|
000011d0  74 69 6e 67 20 74 68 65  20 61 6c 61 72 6d 0d 61  |ting the alarm.a|
000011e0  74 2c 20 66 6f 72 20 65  78 61 6d 70 6c 65 2c 20  |t, for example, |
000011f0  31 31 3a 32 35 20 61 2e  6d 2e 2c 20 79 6f 75 20  |11:25 a.m., you |
00001200  61 72 65 20 72 65 71 75  65 73 74 69 6e 67 20 70  |are requesting p|
00001210  61 67 65 20 31 39 36 20  73 75 62 2d 70 61 67 65  |age 196 sub-page|
00001220  20 31 31 32 35 2c 0d 77  68 69 63 68 20 6a 75 73  | 1125,.which jus|
00001230  74 20 68 61 70 70 65 6e  73 20 74 6f 20 62 65 20  |t happens to be |
00001240  62 72 6f 61 64 63 61 73  74 20 61 74 20 65 78 61  |broadcast at exa|
00001250  63 74 6c 79 20 31 31 3a  32 35 20 61 2e 6d 2e 0d  |ctly 11:25 a.m..|
00001260  0d 54 68 65 20 41 6c 61  72 6d 20 70 61 67 65 20  |.The Alarm page |
00001270  69 73 20 74 68 65 20 6f  6e 6c 79 20 70 61 67 65  |is the only page|
00001280  20 74 68 61 74 20 69 73  20 62 65 69 6e 67 20 74  | that is being t|
00001290  72 61 6e 73 6d 69 74 74  65 64 20 77 68 69 63 68  |ransmitted which|
000012a0  20 75 73 65 73 20 74 68  65 0d 73 75 62 2d 70 61  | uses the.sub-pa|
000012b0  67 65 20 63 6f 64 69 6e  67 20 61 73 20 74 68 65  |ge coding as the|
000012c0  20 6f 72 69 67 69 6e 61  6c 20 64 65 73 69 67 6e  | original design|
000012d0  65 72 73 20 65 78 70 65  63 74 65 64 2e 20 4f 74  |ers expected. Ot|
000012e0  68 65 72 20 63 79 63 6c  69 6e 67 0d 73 75 62 2d  |her cycling.sub-|
000012f0  70 61 67 65 73 20 75 73  65 20 74 68 69 73 20 74  |pages use this t|
00001300  69 6d 65 2d 63 6f 64 65  20 61 73 20 61 20 73 69  |ime-code as a si|
00001310  6d 70 6c 65 20 6d 65 74  68 6f 64 20 66 6f 72 20  |mple method for |
00001320  64 65 63 6f 64 65 72 73  20 74 6f 0d 64 69 66 66  |decoders to.diff|
00001330  65 72 65 6e 74 69 61 74  65 20 62 65 74 77 65 65  |erentiate betwee|
00001340  6e 20 63 6f 6e 73 65 63  75 74 69 76 65 20 70 61  |n consecutive pa|
00001350  67 65 73 20 69 6e 20 61  20 72 6f 6c 6c 69 6e 67  |ges in a rolling|
00001360  20 73 65 71 75 65 6e 63  65 2e 20 54 68 65 20 66  | sequence. The f|
00001370  61 63 74 0d 74 68 61 74  20 43 45 45 46 41 58 20  |act.that CEEFAX |
00001380  69 73 20 6e 6f 77 20 62  72 6f 61 64 63 61 73 74  |is now broadcast|
00001390  20 6f 6e 20 74 68 72 65  65 20 74 69 6d 65 73 20  | on three times |
000013a0  61 73 20 6d 61 6e 79 20  74 65 6c 65 76 69 73 69  |as many televisi|
000013b0  6f 6e 20 70 69 63 74 75  72 65 0d 6c 69 6e 65 73  |on picture.lines|
000013c0  20 61 73 20 74 68 65 20  6f 72 69 67 69 6e 61 6c  | as the original|
000013d0  20 74 72 61 6e 73 6d 69  73 73 69 6f 6e 73 20 75  | transmissions u|
000013e0  73 65 64 2c 20 6d 65 61  6e 73 20 74 68 65 20 6f  |sed, means the o|
000013f0  72 69 67 69 6e 61 6c 20  70 75 72 70 6f 73 65 20  |riginal purpose |
00001400  66 6f 72 0d 0d 0d 0d 0d  20 20 20 20 20 20 20 20  |for.....        |
00001410  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
00001420  20 20 20 20 20 20 20 20  20 20 50 61 67 65 20 32  |          Page 2|
00001430  0d 0d 0d 0d 0d 0d 0d 0d  0d 49 6e 74 65 72 61 63  |.........Interac|
00001440  74 69 76 65 20 70 72 6f  67 72 61 6d 6d 69 6e 67  |tive programming|
00001450  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
*
00001470  20 20 4a 2e 4a 2e 42 72  61 79 73 68 61 77 20 31  |  J.J.Brayshaw 1|
00001480  39 38 37 0d 0d 0d 0d 0d  74 68 65 20 74 69 6d 65  |987.....the time|
00001490  20 63 6f 64 65 20 69 73  20 6e 6f 77 20 6c 61 72  | code is now lar|
000014a0  67 65 6c 79 20 6f 62 73  6f 6c 65 74 65 2e 0d 0d  |gely obsolete...|
000014b0  41 73 20 74 68 65 20 73  75 62 2d 70 61 67 65 20  |As the sub-page |
000014c0  6e 75 6d 62 65 72 69 6e  67 20 77 61 73 20 61 20  |numbering was a |
000014d0  70 61 72 74 20 6f 66 20  74 68 65 20 6f 72 69 67  |part of the orig|
000014e0  69 6e 61 6c 20 54 65 6c  65 74 65 78 74 20 63 6f  |inal Teletext co|
000014f0  6e 63 65 70 74 2c 20 69  74 0d 69 73 20 69 6e 63  |ncept, it.is inc|
00001500  6c 75 64 65 64 20 69 6e  20 74 68 65 20 66 69 72  |luded in the fir|
00001510  73 74 20 72 6f 77 20 6f  66 20 74 68 65 20 70 61  |st row of the pa|
00001520  67 65 20 28 72 6f 77 20  7a 65 72 6f 29 2e 20 54  |ge (row zero). T|
00001530  68 69 73 20 77 61 73 20  74 68 65 20 6f 6e 6c 79  |his was the only|
00001540  0d 70 61 63 6b 65 74 20  6f 66 20 74 68 65 20 6f  |.packet of the o|
00001550  72 69 67 69 6e 61 6c 20  74 72 61 6e 73 6d 69 73  |riginal transmis|
00001560  73 69 6f 6e 20 66 6f 72  6d 61 74 20 74 68 61 74  |sion format that|
00001570  20 63 6f 6e 74 61 69 6e  65 64 20 73 6f 6d 65 0d  | contained some.|
00001580  6e 6f 6e 2d 64 69 73 70  6c 61 79 61 62 6c 65 20  |non-displayable |
00001590  62 79 74 65 73 20 28 6f  74 68 65 72 20 74 68 61  |bytes (other tha|
000015a0  6e 20 72 6f 77 20 61 6e  64 20 6d 61 67 61 7a 69  |n row and magazi|
000015b0  6e 65 20 61 64 64 72 65  73 73 65 73 29 2e 20 50  |ne addresses). P|
000015c0  61 63 6b 65 74 20 32 37  0d 77 61 73 20 69 6e 74  |acket 27.was int|
000015d0  72 6f 64 75 63 65 64 20  73 6f 6d 65 20 79 65 61  |roduced some yea|
000015e0  72 73 20 6c 61 74 65 72  21 0d 0d 53 74 75 64 79  |rs later!..Study|
000015f0  69 6e 67 20 70 61 63 6b  65 74 20 7a 65 72 6f 2c  |ing packet zero,|
00001600  20 77 65 20 66 69 6e 64  2c 20 61 73 20 77 69 74  | we find, as wit|
00001610  68 20 61 6c 6c 20 6f 74  68 65 72 20 70 61 63 6b  |h all other pack|
00001620  65 74 73 2c 20 74 68 65  72 65 20 61 72 65 20 34  |ets, there are 4|
00001630  35 0d 62 79 74 65 73 2e  20 54 68 65 20 66 69 72  |5.bytes. The fir|
00001640  73 74 20 74 68 72 65 65  20 62 79 74 65 73 20 61  |st three bytes a|
00001650  72 65 20 63 6c 6f 63 6b  20 72 75 6e 2d 69 6e 20  |re clock run-in |
00001660  61 6e 64 20 66 72 61 6d  69 6e 67 20 63 6f 64 65  |and framing code|
00001670  73 20 77 68 69 63 68 0d  61 6c 6c 6f 77 20 74 68  |s which.allow th|
00001680  65 20 64 65 63 6f 64 65  72 20 74 6f 20 6a 75 64  |e decoder to jud|
00001690  67 65 20 74 68 65 20 65  78 61 63 74 20 73 70 65  |ge the exact spe|
000016a0  65 64 20 6f 66 20 74 68  65 20 69 6e 63 6f 6d 69  |ed of the incomi|
000016b0  6e 67 20 62 69 74 73 20  61 6e 64 20 74 6f 0d 74  |ng bits and to.t|
000016c0  65 6c 6c 20 74 68 65 20  73 74 61 72 74 20 61 6e  |ell the start an|
000016d0  64 20 65 6e 64 20 70 6f  73 69 74 69 6f 6e 20 6f  |d end position o|
000016e0  66 20 65 61 63 68 20 62  79 74 65 2e 20 54 68 65  |f each byte. The|
000016f0  20 6e 65 78 74 20 74 77  6f 20 62 79 74 65 73 20  | next two bytes |
00001700  61 72 65 20 74 68 65 0d  6d 61 67 61 7a 69 6e 65  |are the.magazine|
00001710  20 6e 75 6d 62 65 72 20  61 6e 64 20 72 6f 77 20  | number and row |
00001720  6e 75 6d 62 65 72 2e 20  53 6f 20 66 61 72 2c 20  |number. So far, |
00001730  61 6c 6c 20 74 68 69 73  20 69 73 20 69 64 65 6e  |all this is iden|
00001740  74 69 63 61 6c 20 74 6f  20 61 6c 6c 20 6f 74 68  |tical to all oth|
00001750  65 72 0d 70 61 63 6b 65  74 73 20 69 6e 20 74 68  |er.packets in th|
00001760  65 20 70 61 67 65 2e 20  54 68 65 20 6e 65 78 74  |e page. The next|
00001770  20 74 77 6f 20 62 79 74  65 73 20 28 62 79 74 65  | two bytes (byte|
00001780  73 20 35 20 61 6e 64 20  36 20 63 6f 75 6e 74 69  |s 5 and 6 counti|
00001790  6e 67 20 66 6f 6d 20 7a  65 72 6f 29 0d 61 72 65  |ng fom zero).are|
000017a0  20 74 68 65 20 70 61 67  65 20 6e 75 6d 62 65 72  | the page number|
000017b0  20 69 6e 20 48 61 6d 6d  69 6e 67 20 63 6f 64 65  | in Hamming code|
000017c0  64 20 66 6f 72 6d 2e 20  50 61 63 6b 65 74 20 7a  |d form. Packet z|
000017d0  65 72 6f 20 69 73 20 74  68 65 20 6f 6e 6c 79 20  |ero is the only |
000017e0  72 6f 77 20 74 6f 0d 63  6f 6e 74 61 69 6e 20 74  |row to.contain t|
000017f0  68 65 20 70 61 67 65 20  6e 75 6d 62 65 72 20 2d  |he page number -|
00001800  20 61 6c 6c 20 70 61 63  6b 65 74 73 20 72 65 63  | all packets rec|
00001810  65 69 76 65 64 20 61 66  74 65 72 20 70 61 63 6b  |eived after pack|
00001820  65 74 20 7a 65 72 6f 20  61 72 65 0d 61 73 73 75  |et zero are.assu|
00001830  6d 65 64 20 74 6f 20 62  65 20 69 6e 20 74 68 65  |med to be in the|
00001840  20 73 61 6d 65 20 70 61  67 65 2c 20 75 6e 74 69  | same page, unti|
00001850  6c 20 61 20 64 69 66 66  65 72 65 6e 74 20 70 61  |l a different pa|
00001860  63 6b 65 74 20 7a 65 72  6f 20 69 73 20 72 65 63  |cket zero is rec|
00001870  65 69 76 65 64 2e 0d 42  79 74 65 73 20 37 2c 20  |eived..Bytes 7, |
00001880  38 2c 20 39 20 61 6e 64  20 31 30 20 63 6f 6e 74  |8, 9 and 10 cont|
00001890  61 69 6e 20 74 68 65 20  73 75 62 2d 70 61 67 65  |ain the sub-page|
000018a0  20 63 6f 64 69 6e 67 20  69 6e 20 48 61 6d 6d 69  | coding in Hammi|
000018b0  6e 67 20 63 6f 64 65 64  20 66 6f 72 6d 2e 0d 54  |ng coded form..T|
000018c0  68 69 73 20 6d 65 61 6e  73 20 65 61 63 68 20 62  |his means each b|
000018d0  79 74 65 20 64 65 63 6f  64 65 73 20 74 6f 20 61  |yte decodes to a|
000018e0  20 66 6f 75 72 2d 62 69  74 20 6e 79 62 62 6c 65  | four-bit nybble|
000018f0  20 72 65 70 72 65 73 65  6e 74 69 6e 67 20 65 61  | representing ea|
00001900  63 68 20 64 69 67 69 74  0d 6f 66 20 74 68 65 20  |ch digit.of the |
00001910  73 75 62 2d 70 61 67 65  20 63 6f 64 69 6e 67 2e  |sub-page coding.|
00001920  20 54 77 6f 20 63 6f 6e  74 72 6f 6c 20 62 79 74  | Two control byt|
00001930  65 73 20 66 6f 6c 6c 6f  77 20 28 74 68 65 73 65  |es follow (these|
00001940  20 77 69 6c 6c 20 62 65  20 65 78 70 6c 61 69 6e  | will be explain|
00001950  65 64 0d 69 6e 20 66 75  74 75 72 65 20 6d 6f 64  |ed.in future mod|
00001960  75 6c 65 73 29 20 61 6e  64 20 74 68 65 20 70 61  |ules) and the pa|
00001970  63 6b 65 74 20 69 73 20  63 6f 6d 70 6c 65 74 65  |cket is complete|
00001980  64 20 77 69 74 68 20 33  32 20 62 79 74 65 73 20  |d with 32 bytes |
00001990  6f 66 20 64 61 74 61 2e  0d 0d 57 68 65 6e 20 61  |of data...When a|
000019a0  20 70 61 67 65 20 69 73  20 72 65 71 75 65 73 74  | page is request|
000019b0  65 64 20 75 73 69 6e 67  20 41 54 53 2c 20 74 68  |ed using ATS, th|
000019c0  65 20 48 61 6d 6d 69 6e  67 2d 63 6f 64 65 64 20  |e Hamming-coded |
000019d0  62 79 74 65 73 20 61 72  65 20 64 65 63 6f 64 65  |bytes are decode|
000019e0  64 0d 62 65 66 6f 72 65  20 62 65 69 6e 67 20 70  |d.before being p|
000019f0  6c 61 63 65 64 20 69 6e  20 63 6f 6d 70 75 74 65  |laced in compute|
00001a00  72 20 6d 65 6d 6f 72 79  2e 20 54 68 69 73 20 6d  |r memory. This m|
00001a10  61 6b 65 73 20 6f 75 72  20 74 61 73 6b 20 6f 66  |akes our task of|
00001a20  20 69 64 65 6e 74 69 66  79 69 6e 67 0d 74 68 65  | identifying.the|
00001a30  20 73 75 62 2d 70 61 67  65 20 63 6f 64 65 20 61  | sub-page code a|
00001a40  20 76 65 72 79 20 73 69  6d 70 6c 65 20 6f 6e 65  | very simple one|
00001a50  2e 20 50 61 63 6b 65 74  20 7a 65 72 6f 20 74 61  |. Packet zero ta|
00001a60  6b 65 73 20 6f 6e 20 61  20 64 69 66 66 65 72 65  |kes on a differe|
00001a70  6e 74 0d 66 6f 72 6d 61  74 20 61 66 74 65 72 20  |nt.format after |
00001a80  62 65 69 6e 67 20 70 72  6f 63 65 73 73 65 64 20  |being processed |
00001a90  62 79 20 74 68 65 20 41  54 53 2e 20 54 68 65 20  |by the ATS. The |
00001aa0  63 6c 6f 63 6b 20 72 75  6e 2d 69 6e 20 61 6e 64  |clock run-in and|
00001ab0  20 66 72 61 6d 69 6e 67  0d 63 6f 64 65 73 20 61  | framing.codes a|
00001ac0  72 65 20 6e 6f 74 20 74  72 61 6e 73 66 65 72 72  |re not transferr|
00001ad0  65 64 2e 20 45 61 63 68  20 70 61 69 72 20 6f 66  |ed. Each pair of|
00001ae0  20 65 69 67 68 74 2d 62  69 74 20 48 61 6d 6d 69  | eight-bit Hammi|
00001af0  6e 67 20 63 6f 64 65 64  20 62 79 74 65 73 20 68  |ng coded bytes h|
00001b00  61 76 65 0d 62 65 65 6e  20 74 72 61 6e 73 6c 61  |ave.been transla|
00001b10  74 65 64 20 74 6f 20 74  77 6f 20 66 6f 75 72 2d  |ted to two four-|
00001b20  62 69 74 20 6e 79 62 62  6c 65 73 20 77 68 69 63  |bit nybbles whic|
00001b30  68 20 68 61 76 65 20 62  65 65 6e 20 63 6f 6e 63  |h have been conc|
00001b40  61 74 65 6e 61 74 65 64  20 74 6f 0d 66 6f 72 6d  |atenated to.form|
00001b50  20 61 20 73 69 6e 67 6c  65 20 62 79 74 65 2e 20  | a single byte. |
00001b60  54 68 69 73 2c 20 6f 66  20 63 6f 75 72 73 65 2c  |This, of course,|
00001b70  20 63 72 65 61 74 65 73  20 61 20 66 65 77 20 67  | creates a few g|
00001b80  61 70 73 20 69 6e 20 74  68 65 20 72 6f 77 20 6f  |aps in the row o|
00001b90  66 0d 64 61 74 61 21 20  54 68 65 20 41 54 53 20  |f.data! The ATS |
00001ba0  66 69 6c 6c 73 20 74 68  65 73 65 20 77 69 74 68  |fills these with|
00001bb0  20 61 20 7a 65 72 6f 20  74 6f 20 6d 61 69 6e 74  | a zero to maint|
00001bc0  61 69 6e 20 70 61 63 6b  65 74 20 6c 65 6e 67 74  |ain packet lengt|
00001bd0  68 0d 63 6f 6d 70 61 74  69 62 69 6c 69 74 79 20  |h.compatibility |
00001be0  77 69 74 68 20 61 6c 6c  20 74 68 65 20 6f 74 68  |with all the oth|
00001bf0  65 72 20 72 65 63 65 69  76 65 64 20 70 61 63 6b  |er received pack|
00001c00  65 74 73 2e 20 54 68 65  20 66 6f 72 6d 61 74 20  |ets. The format |
00001c10  6f 66 20 72 6f 77 20 7a  65 72 6f 2c 0d 74 68 65  |of row zero,.the|
00001c20  6e 2c 20 61 66 74 65 72  20 41 54 53 20 64 65 63  |n, after ATS dec|
00001c30  6f 64 69 6e 67 2c 20 69  73 3a 0d 0d 2d 2d 2d 2d  |oding, is:..----|
00001c40  2d 2d 2d 2d 2d 2d 2d 2d  2d 2d 2d 2d 2d 2d 2d 2d  |----------------|
*
00001c70  2d 2d 2d 2d 2d 2d 2d 2d  2d 2d 2f 20 20 20 20 2f  |----------/    /|
00001c80  2d 2d 2d 2d 2d 0d 7c 20  42 79 74 65 3a 20 20 20  |-----.| Byte:   |
00001c90  20 20 30 20 20 20 20 31  20 20 20 20 32 20 20 20  |  0    1    2   |
00001ca0  20 20 33 20 20 20 20 34  20 20 20 20 35 20 20 20  |  3    4    5   |
00001cb0  20 36 20 20 20 37 20 20  20 38 20 20 20 39 20 20  | 6   7   8   9  |
00001cc0  31 30 20 20 2f 2e 2e 2e  2e 2f 20 34 32 20 7c 0d  |10  /..../ 42 |.|
00001cd0  7c 2d 2d 2d 2d 2d 2d 2d  2d 2d 2d 2d 2d 2d 2d 2d  ||---------------|
00001ce0  2d 2d 2d 2d 2d 2d 2d 2d  2d 2d 2d 2d 2d 2d 2d 2d  |----------------|
*
00001d00  2d 2d 2d 2d 2d 2d 2d 2d  2d 2d 2d 2d 2d 2d 2f 20  |--------------/ |
00001d10  20 20 20 2f 2d 2d 2d 2d  7c 0d 7c 20 4d 65 61 6e  |   /----|.| Mean|
00001d20  69 6e 67 3a 20 4d 61 67  20 20 52 6f 77 20 20 50  |ing: Mag  Row  P|
00001d30  61 67 65 20 20 53 75 62  2d 70 61 67 65 20 20 20  |age  Sub-page   |
00001d40  43 6f 6e 74 72 6f 6c 20  20 30 20 20 20 30 20 20  |Control  0   0  |
00001d50  20 30 20 20 64 61 74 61  20 2e 2e 2e 2e 20 64 61  | 0  data .... da|
00001d60  74 61 7c 0d 7c 20 20 20  20 20 20 20 20 20 20 4e  |ta|.|          N|
00001d70  6f 2e 20 20 4e 6f 2e 20  20 4e 6f 2e 20 20 20 48  |o.  No.  No.   H|
00001d80  69 67 68 20 4c 6f 77 20  20 20 42 79 74 65 73 20  |igh Low   Bytes |
00001d90  20 20 20 50 61 64 20 20  63 68 72 73 20 20 20 20  |   Pad  chrs    |
00001da0  20 20 20 20 20 20 20 20  20 20 20 20 7c 0d 2d 2d  |            |.--|
00001db0  2d 2d 2d 2d 2d 2d 2d 2d  2d 2d 2d 2d 2d 2d 2d 2d  |----------------|
*
00001de0  2d 2d 2d 2d 2d 2d 2d 2d  2d 2d 2d 2d 2f 20 20 20  |------------/   |
00001df0  20 2f 2d 2d 2d 2d 2d 0d  0d 53 6f 2c 20 74 6f 20  | /-----..So, to |
00001e00  66 69 6e 64 20 74 68 65  20 73 75 62 2d 70 61 67  |find the sub-pag|
00001e10  65 20 63 6f 64 65 2c 20  77 65 20 73 69 6d 70 6c  |e code, we simpl|
00001e20  79 20 75 73 65 20 74 68  65 20 2a 54 52 41 4e 53  |y use the *TRANS|
00001e30  46 45 52 20 63 6f 6d 6d  61 6e 64 20 28 6f 72 0d  |FER command (or.|
00001e40  2a 44 41 54 41 20 69 66  20 77 65 20 61 6c 73 6f  |*DATA if we also|
00001e50  20 77 69 73 68 20 74 6f  20 70 65 72 66 6f 72 6d  | wish to perform|
00001e60  20 61 20 43 52 43 20 74  6f 20 74 65 73 74 20 74  | a CRC to test t|
00001e70  68 65 20 69 6e 74 65 67  72 69 74 79 20 6f 66 20  |he integrity of |
00001e80  74 68 65 0d 72 65 63 65  69 76 65 64 20 70 61 67  |the.received pag|
00001e90  65 29 20 74 68 65 6e 20  65 78 61 6d 69 6e 65 20  |e) then examine |
00001ea0  74 68 65 20 61 70 70 72  6f 70 72 69 61 74 65 20  |the appropriate |
00001eb0  62 79 74 65 73 20 64 69  72 65 63 74 6c 79 2e 20  |bytes directly. |
00001ec0  41 6c 6c 20 74 68 65 0d  64 65 2d 48 61 6d 6d 69  |All the.de-Hammi|
00001ed0  6e 67 20 61 6e 64 20 65  78 63 6c 75 73 69 6f 6e  |ng and exclusion|
00001ee0  20 6f 66 20 74 68 65 20  75 6e 77 61 6e 74 65 64  | of the unwanted|
00001ef0  20 62 69 74 73 20 68 61  76 65 20 62 65 65 6e 20  | bits have been |
00001f00  63 61 72 72 69 65 64 20  6f 75 74 20 66 6f 72 0d  |carried out for.|
00001f10  75 73 21 20 46 75 72 74  68 65 72 6d 6f 72 65 2c  |us! Furthermore,|
00001f20  20 70 61 63 6b 65 74 20  7a 65 72 6f 20 69 73 20  | packet zero is |
00001f30  74 68 65 20 6f 6e 6c 79  20 6f 6e 65 20 6f 66 20  |the only one of |
00001f40  74 68 65 20 72 65 63 65  69 76 65 64 20 70 61 63  |the received pac|
00001f50  6b 65 74 73 20 77 68 6f  73 65 0d 70 72 65 63 69  |kets whose.preci|
00001f60  73 65 20 70 6f 73 69 74  69 6f 6e 20 69 6e 20 6d  |se position in m|
00001f70  65 6d 6f 72 79 20 77 65  20 61 6c 72 65 61 64 79  |emory we already|
00001f80  20 6b 6e 6f 77 2e 20 57  68 65 6e 20 61 20 70 61  | know. When a pa|
00001f90  67 65 20 69 73 20 72 65  63 65 69 76 65 64 2c 20  |ge is received, |
00001fa0  74 68 65 0d 70 61 63 6b  65 74 73 20 63 61 6e 20  |the.packets can |
00001fb0  62 65 20 69 6e 20 61 6e  79 20 6f 72 64 65 72 20  |be in any order |
00001fc0  77 69 74 68 20 74 68 65  20 65 78 63 65 70 74 69  |with the excepti|
00001fd0  6f 6e 20 6f 66 20 72 6f  77 20 7a 65 72 6f 2e 20  |on of row zero. |
00001fe0  54 68 69 73 20 72 6f 77  20 6d 75 73 74 0d 61 6c  |This row must.al|
00001ff0  77 61 79 73 20 62 65 20  72 65 63 65 69 76 65 64  |ways be received|
00002000  20 66 69 72 73 74 2c 20  61 73 20 69 74 20 69 73  | first, as it is|
00002010  20 75 73 65 64 20 74 6f  20 69 64 65 6e 74 69 66  | used to identif|
00002020  79 20 74 68 65 20 73 74  61 72 74 20 6f 66 20 74  |y the start of t|
00002030  68 65 0d 0d 0d 0d 0d 20  20 20 20 20 20 20 20 20  |he.....         |
00002040  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
00002050  20 20 20 20 20 20 20 20  20 50 61 67 65 20 33 0d  |         Page 3.|
00002060  0d 0d 0d 0d 0d 0d 0d 0d  49 6e 74 65 72 61 63 74  |........Interact|
00002070  69 76 65 20 70 72 6f 67  72 61 6d 6d 69 6e 67 20  |ive programming |
00002080  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
*
000020a0  20 4a 2e 4a 2e 42 72 61  79 73 68 61 77 20 31 39  | J.J.Brayshaw 19|
000020b0  38 37 0d 0d 0d 0d 0d 74  72 61 6e 73 6d 69 73 73  |87.....transmiss|
000020c0  69 6f 6e 20 6f 66 20 74  68 65 20 70 61 67 65 2c  |ion of the page,|
000020d0  20 61 6e 64 20 73 6f 20  69 74 20 77 69 6c 6c 20  | and so it will |
000020e0  61 6c 77 61 79 73 20 6f  63 63 75 70 79 20 74 68  |always occupy th|
000020f0  65 20 62 65 67 69 6e 6e  69 6e 67 20 6f 66 0d 6f  |e beginning of.o|
00002100  75 72 20 61 6c 6c 6f 63  61 74 65 64 20 70 61 67  |ur allocated pag|
00002110  65 20 6d 65 6d 6f 72 79  20 73 74 6f 72 65 2e 0d  |e memory store..|
00002120  0d 53 6f 2c 20 61 66 74  65 72 20 61 20 2a 54 52  |.So, after a *TR|
00002130  41 4e 53 46 45 52 20 6f  72 20 2a 44 41 54 41 20  |ANSFER or *DATA |
00002140  74 6f 2c 20 66 6f 72 20  65 78 61 6d 70 6c 65 2c  |to, for example,|
00002150  20 6c 6f 63 61 74 69 6f  6e 20 26 37 30 30 30 2c  | location &7000,|
00002160  20 70 61 63 6b 65 74 0d  7a 65 72 6f 20 6d 75 73  | packet.zero mus|
00002170  74 20 73 74 61 72 74 20  61 74 20 6c 6f 63 61 74  |t start at locat|
00002180  69 6f 6e 20 26 37 30 30  30 2e 20 54 68 65 20 73  |ion &7000. The s|
00002190  75 62 2d 70 61 67 65 20  64 61 74 61 20 69 73 20  |ub-page data is |
000021a0  69 6e 20 62 79 74 65 73  20 33 20 61 6e 64 0d 34  |in bytes 3 and.4|
000021b0  2c 20 73 6f 20 61 20 73  69 6d 70 6c 65 20 72 6f  |, so a simple ro|
000021c0  75 74 69 6e 65 20 74 6f  20 72 65 61 64 20 74 68  |utine to read th|
000021d0  65 6d 20 69 73 20 70 6f  73 73 69 62 6c 65 3a 0d  |em is possible:.|
000021e0  0d 20 20 20 20 20 20 20  20 20 20 20 73 75 62 5f  |.           sub_|
000021f0  70 61 67 65 25 3d 28 28  26 37 30 30 30 3f 33 29  |page%=((&7000?3)|
00002200  2a 32 35 36 29 2b 28 26  37 30 30 30 3f 34 29 0d  |*256)+(&7000?4).|
00002210  0d 49 66 20 77 65 20 6e  65 65 64 20 74 6f 20 75  |.If we need to u|
00002220  73 65 20 74 68 69 73 20  69 6e 66 6f 72 6d 61 74  |se this informat|
00002230  69 6f 6e 20 74 6f 20 64  65 73 63 72 69 62 65 20  |ion to describe |
00002240  74 68 65 20 70 61 67 65  20 28 6f 72 2c 20 66 6f  |the page (or, fo|
00002250  72 20 65 78 61 6d 70 6c  65 2c 0d 74 6f 20 72 65  |r example,.to re|
00002260  71 75 65 73 74 20 74 68  65 20 6e 65 78 74 20 73  |quest the next s|
00002270  65 71 75 65 6e 74 69 61  6c 20 73 75 62 2d 70 61  |equential sub-pa|
00002280  67 65 20 70 72 6f 76 69  64 65 64 20 69 74 20 69  |ge provided it i|
00002290  73 20 62 65 69 6e 67 20  74 72 61 6e 73 6d 69 74  |s being transmit|
000022a0  74 65 64 29 0d 77 65 20  6e 65 65 64 20 74 6f 20  |ted).we need to |
000022b0  65 6e 73 75 72 65 20 74  68 65 20 6e 75 6d 62 65  |ensure the numbe|
000022c0  72 20 69 73 20 63 6f 6d  70 6c 65 74 65 20 77 69  |r is complete wi|
000022d0  74 68 20 61 6c 6c 20 6c  65 61 64 69 6e 67 20 7a  |th all leading z|
000022e0  65 72 6f 73 2e 20 54 68  69 73 20 63 61 6e 0d 62  |eros. This can.b|
000022f0  65 20 61 63 68 69 65 76  65 64 20 65 61 73 69 6c  |e achieved easil|
00002300  79 20 62 79 20 74 75 72  6e 69 6e 67 20 74 68 65  |y by turning the|
00002310  20 73 75 62 2d 70 61 67  65 20 6e 75 6d 62 65 72  | sub-page number|
00002320  20 69 6e 74 6f 20 61 20  73 74 72 69 6e 67 2c 20  | into a string, |
00002330  61 64 64 69 6e 67 20 61  0d 73 74 72 69 6e 67 20  |adding a.string |
00002340  6f 66 20 66 6f 75 72 20  7a 65 72 6f 73 20 61 74  |of four zeros at|
00002350  20 74 68 65 20 62 65 67  69 6e 6e 69 6e 67 2c 20  | the beginning, |
00002360  74 68 65 6e 20 74 61 6b  69 6e 67 20 74 68 65 20  |then taking the |
00002370  6c 61 73 74 20 66 6f 75  72 20 64 69 67 69 74 73  |last four digits|
00002380  20 6f 66 0d 74 68 65 20  72 65 73 75 6c 74 3a 0d  | of.the result:.|
00002390  0d 20 20 20 20 20 20 20  20 20 20 73 75 62 5f 70  |.          sub_p|
000023a0  61 67 65 24 3d 52 49 47  48 54 24 28 22 30 30 30  |age$=RIGHT$("000|
000023b0  30 22 2b 53 54 52 24 7e  73 75 62 5f 70 61 67 65  |0"+STR$~sub_page|
000023c0  25 2c 34 29 0d 0d 54 68  69 73 20 63 61 6e 20 74  |%,4)..This can t|
000023d0  68 65 6e 20 62 65 20 61  64 64 65 64 20 74 6f 20  |hen be added to |
000023e0  74 68 65 20 6d 61 67 61  7a 69 6e 65 20 61 6e 64  |the magazine and|
000023f0  20 70 61 67 65 20 6e 75  6d 62 65 72 73 20 69 6e  | page numbers in|
00002400  20 73 74 72 69 6e 67 20  66 6f 72 6d 20 74 6f 0d  | string form to.|
00002410  63 72 65 61 74 65 20 61  20 73 75 69 74 61 62 6c  |create a suitabl|
00002420  65 20 4f 53 43 4c 49 20  63 6f 6d 6d 61 6e 64 20  |e OSCLI command |
00002430  69 66 20 72 65 71 75 69  72 65 64 3a 0d 0d 20 20  |if required:..  |
00002440  20 20 20 20 20 20 20 20  70 6e 24 3d 53 54 52 24  |        pn$=STR$|
00002450  7e 28 6d 61 67 25 29 2b  52 49 47 48 54 24 28 22  |~(mag%)+RIGHT$("|
00002460  30 30 22 2b 53 54 52 24  7e 28 70 61 67 65 25 29  |00"+STR$~(page%)|
00002470  2c 32 29 2b 22 73 22 2b  73 75 62 5f 70 61 67 65  |,2)+"s"+sub_page|
00002480  24 0d 20 20 20 20 20 20  20 20 20 20 50 52 4f 43  |$.          PROC|
00002490  6f 73 63 6c 69 28 22 54  52 41 4e 53 46 45 52 20  |oscli("TRANSFER |
000024a0  22 2b 70 6e 24 29 0d 0d  49 6e 20 70 72 61 63 74  |"+pn$)..In pract|
000024b0  69 63 65 2c 20 68 6f 77  65 76 65 72 2c 20 6e 6f  |ice, however, no|
000024c0  74 20 61 6c 6c 20 74 68  65 20 70 6f 73 73 69 62  |t all the possib|
000024d0  6c 65 20 73 75 62 2d 63  6f 64 65 20 6e 75 6d 62  |le sub-code numb|
000024e0  65 72 73 20 69 6e 20 74  68 65 0d 73 65 71 75 65  |ers in the.seque|
000024f0  6e 63 65 20 61 72 65 20  61 6c 77 61 79 73 20 75  |nce are always u|
00002500  73 65 64 2e 20 49 74 20  69 73 20 6e 6f 72 6d 61  |sed. It is norma|
00002510  6c 20 74 6f 20 74 72 61  6e 73 6d 69 74 20 70 61  |l to transmit pa|
00002520  67 65 73 20 77 69 74 68  20 73 75 62 2d 70 61 67  |ges with sub-pag|
00002530  65 0d 63 6f 64 69 6e 67  20 66 72 6f 6d 20 31 20  |e.coding from 1 |
00002540  74 6f 20 39 2c 20 74 68  65 6e 20 6d 69 73 73 20  |to 9, then miss |
00002550  73 75 62 2d 70 61 67 65  73 20 26 41 20 74 6f 20  |sub-pages &A to |
00002560  26 46 20 61 6e 64 20 73  74 61 72 74 20 61 67 61  |&F and start aga|
00002570  69 6e 20 61 74 0d 73 75  62 2d 70 61 67 65 20 26  |in at.sub-page &|
00002580  31 30 2e 20 54 68 69 73  20 6d 61 6b 65 73 20 74  |10. This makes t|
00002590  68 65 20 6c 6f 67 69 63  61 6c 20 70 72 6f 67 72  |he logical progr|
000025a0  65 73 73 69 6f 6e 20 6f  66 20 72 6f 6c 6c 69 6e  |ession of rollin|
000025b0  67 20 73 75 62 2d 70 61  67 65 73 20 69 6e 20 61  |g sub-pages in a|
000025c0  0d 73 65 71 75 65 6e 63  65 20 61 70 70 65 61 72  |.sequence appear|
000025d0  20 74 6f 20 62 65 20 6e  75 6d 62 65 72 65 64 20  | to be numbered |
000025e0  69 6e 20 64 65 63 69 6d  61 6c 2c 20 66 72 6f 6d  |in decimal, from|
000025f0  20 31 20 74 6f 20 39 2c  20 74 68 65 6e 20 31 30  | 1 to 9, then 10|
00002600  20 74 6f 20 31 39 2c 0d  65 74 63 2e 20 48 6f 77  | to 19,.etc. How|
00002610  65 76 65 72 2c 20 69 74  20 69 73 20 70 6f 73 73  |ever, it is poss|
00002620  69 62 6c 65 20 74 6f 20  68 61 76 65 20 73 75 62  |ible to have sub|
00002630  2d 70 61 67 65 20 73 65  71 75 65 6e 63 65 73 20  |-page sequences |
00002640  74 68 61 74 20 69 6e 63  6c 75 64 65 20 74 68 65  |that include the|
00002650  0d 68 65 78 20 6e 75 6d  62 65 72 73 20 61 6c 73  |.hex numbers als|
00002660  6f 21 20 54 68 65 72 65  20 61 72 65 20 74 69 6d  |o! There are tim|
00002670  65 73 20 77 68 65 6e 20  73 75 62 2d 70 61 67 65  |es when sub-page|
00002680  20 6e 75 6d 62 65 72 69  6e 67 20 69 73 20 71 75  | numbering is qu|
00002690  69 74 65 0d 65 72 72 61  74 69 63 2c 20 61 6e 64  |ite.erratic, and|
000026a0  20 69 74 20 63 61 6e 6e  6f 74 20 62 65 20 72 65  | it cannot be re|
000026b0  6c 69 65 64 20 75 70 6f  6e 20 74 68 61 74 20 73  |lied upon that s|
000026c0  75 62 2d 70 61 67 65 20  6e 75 6d 62 65 72 73 20  |ub-page numbers |
000026d0  77 69 6c 6c 20 61 6c 77  61 79 73 20 62 65 0d 73  |will always be.s|
000026e0  65 71 75 65 6e 74 69 61  6c 20 69 6e 20 61 6e 79  |equential in any|
000026f0  20 67 69 76 65 6e 20 72  6f 6c 6c 69 6e 67 20 73  | given rolling s|
00002700  65 71 75 65 6e 63 65 2e  0d 0d 54 68 65 72 65 20  |equence...There |
00002710  61 72 65 20 74 77 6f 20  73 70 65 63 69 61 6c 20  |are two special |
00002720  63 61 73 65 73 20 74 6f  20 73 75 62 2d 70 61 67  |cases to sub-pag|
00002730  65 20 63 6f 64 69 6e 67  3a 0d 0d 57 68 65 6e 20  |e coding:..When |
00002740  61 20 73 75 62 2d 70 61  67 65 20 63 6f 64 65 20  |a sub-page code |
00002750  69 73 20 67 69 76 65 6e  20 61 73 20 7a 65 72 6f  |is given as zero|
00002760  2c 20 69 74 20 73 69 67  6e 69 66 69 65 73 20 69  |, it signifies i|
00002770  74 20 69 73 20 74 68 65  20 6f 6e 6c 79 20 6f 6e  |t is the only on|
00002780  65 20 6f 6e 0d 74 68 61  74 20 70 61 67 65 20 6e  |e on.that page n|
00002790  75 6d 62 65 72 2c 20 61  6e 64 20 69 73 20 74 68  |umber, and is th|
000027a0  65 72 65 66 6f 72 65 20  61 20 27 73 74 61 74 69  |erefore a 'stati|
000027b0  63 27 20 70 61 67 65 3b  0d 0d 49 66 20 74 68 65  |c' page;..If the|
000027c0  20 73 75 62 2d 70 61 67  65 20 63 6f 64 65 20 69  | sub-page code i|
000027d0  73 20 67 69 76 65 6e 20  61 73 20 26 33 46 37 46  |s given as &3F7F|
000027e0  2c 20 74 68 69 73 20 61  6c 73 6f 20 6d 65 61 6e  |, this also mean|
000027f0  73 20 69 74 20 69 73 20  61 20 73 74 61 74 69 63  |s it is a static|
00002800  0d 70 61 67 65 20 61 6e  64 20 73 68 6f 75 6c 64  |.page and should|
00002810  20 62 65 20 74 72 65 61  74 65 64 20 61 73 20 73  | be treated as s|
00002820  75 62 2d 70 61 67 65 20  30 2e 0d 0d 49 74 20 69  |ub-page 0...It i|
00002830  73 20 6e 6f 74 20 61 6c  77 61 79 73 20 72 65 6c  |s not always rel|
00002840  69 61 62 6c 65 20 74 6f  20 64 65 70 65 6e 64 20  |iable to depend |
00002850  6f 6e 20 74 68 65 20 64  69 73 70 6c 61 79 65 64  |on the displayed|
00002860  20 70 61 67 65 20 6e 75  6d 62 65 72 69 6e 67 20  | page numbering |
00002870  6f 6e 20 61 0d 73 65 74  20 6f 66 20 72 6f 6c 6c  |on a.set of roll|
00002880  69 6e 67 20 73 75 62 2d  70 61 67 65 73 20 28 61  |ing sub-pages (a|
00002890  73 20 67 69 76 65 6e 20  61 74 20 74 68 65 20 72  |s given at the r|
000028a0  69 67 68 74 2d 68 61 6e  64 20 65 6e 64 20 6f 66  |ight-hand end of|
000028b0  20 70 61 63 6b 65 74 20  31 29 2e 0d 54 68 69 73  | packet 1)..This|
000028c0  20 69 73 20 6f 6e 6c 79  20 61 64 64 65 64 20 61  | is only added a|
000028d0  73 20 61 6e 20 65 64 69  74 6f 72 69 61 6c 20 66  |s an editorial f|
000028e0  65 61 74 75 72 65 2c 20  61 6e 64 20 6d 61 79 2c  |eature, and may,|
000028f0  20 66 72 6f 6d 20 74 69  6d 65 20 74 6f 20 74 69  | from time to ti|
00002900  6d 65 2c 20 62 65 0d 69  6e 61 63 63 75 72 61 74  |me, be.inaccurat|
00002910  65 2c 20 6f 72 20 69 6e  20 66 61 63 74 20 6e 6f  |e, or in fact no|
00002920  74 20 62 65 20 70 72 65  73 65 6e 74 20 61 74 20  |t be present at |
00002930  61 6c 6c 2e 20 54 68 65  72 65 20 69 73 2c 20 75  |all. There is, u|
00002940  6e 66 6f 72 74 75 6e 61  74 65 6c 79 2c 20 6e 6f  |nfortunately, no|
00002950  0d 31 30 30 25 20 72 65  6c 69 61 62 6c 65 20 6d  |.100% reliable m|
00002960  65 74 68 6f 64 20 66 6f  72 20 61 20 70 72 6f 67  |ethod for a prog|
00002970  72 61 6d 20 74 6f 20 64  65 74 65 72 6d 69 6e 65  |ram to determine|
00002980  20 68 6f 77 20 6d 61 6e  79 20 73 75 62 2d 70 61  | how many sub-pa|
00002990  67 65 73 20 6d 61 6b 65  20 75 70 0d 61 20 70 61  |ges make up.a pa|
000029a0  72 74 69 63 75 6c 61 72  20 72 6f 6c 6c 69 6e 67  |rticular rolling|
000029b0  20 73 65 71 75 65 6e 63  65 2e 20 54 68 69 73 20  | sequence. This |
000029c0  69 6e 66 6f 72 6d 61 74  69 6f 6e 20 69 73 20 73  |information is s|
000029d0  69 6d 70 6c 79 20 6e 6f  74 20 74 72 61 6e 73 6d  |imply not transm|
000029e0  69 74 74 65 64 21 0d 0d  0d 0d 0d 20 20 20 20 20  |itted!.....     |
000029f0  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
00002a00  20 20 20 20 20 20 20 20  20 20 20 20 20 50 61 67  |             Pag|
00002a10  65 20 34 0d 0d 0d 0d 0d  0d 0d 0d 0d 49 6e 74 65  |e 4.........Inte|
00002a20  72 61 63 74 69 76 65 20  70 72 6f 67 72 61 6d 6d  |ractive programm|
00002a30  69 6e 67 20 20 20 20 20  20 20 20 20 20 20 20 20  |ing             |
00002a40  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
00002a50  20 20 20 20 20 4a 2e 4a  2e 42 72 61 79 73 68 61  |     J.J.Braysha|
00002a60  77 20 31 39 38 37 0d 0d  0d 0d 0d 54 68 65 20 62  |w 1987.....The b|
00002a70  65 73 74 20 77 65 20 63  61 6e 20 64 6f 20 69 73  |est we can do is|
00002a80  20 74 6f 20 72 65 6c 79  20 6f 6e 20 61 20 63 6f  | to rely on a co|
00002a90  6d 62 69 6e 61 74 69 6f  6e 20 6f 66 20 73 75 62  |mbination of sub|
00002aa0  2d 70 61 67 65 20 6e 75  6d 62 65 72 69 6e 67 20  |-page numbering |
00002ab0  61 6e 64 0d 74 68 65 20  64 69 73 70 6c 61 79 65  |and.the displaye|
00002ac0  64 20 70 61 67 65 20 6e  75 6d 62 65 72 73 20 69  |d page numbers i|
00002ad0  6e 20 70 61 63 6b 65 74  20 6f 6e 65 2e 0d 0d 5f  |n packet one..._|
00002ae0  5f 5f 5f 5f 5f 5f 5f 5f  5f 5f 5f 5f 5f 5f 5f 5f  |________________|
*
00002b20  5f 5f 5f 5f 5f 5f 5f 5f  5f 0d 0d 54 68 65 20 70  |_________..The p|
00002b30  72 6f 67 72 61 6d 20 61  63 63 6f 6d 70 61 6e 79  |rogram accompany|
00002b40  69 6e 67 20 74 68 69 73  20 6d 6f 64 75 6c 65 20  |ing this module |
00002b50  77 69 6c 6c 20 72 65 63  65 69 76 65 20 61 20 70  |will receive a p|
00002b60  61 67 65 20 66 72 6f 6d  20 61 20 72 6f 6c 6c 69  |age from a rolli|
00002b70  6e 67 0d 73 65 71 75 65  6e 63 65 20 28 61 63 74  |ng.sequence (act|
00002b80  75 61 6c 6c 79 20 66 72  6f 6d 20 43 45 45 46 41  |ually from CEEFA|
00002b90  58 20 70 61 67 65 20 37  31 31 2c 20 62 75 74 20  |X page 711, but |
00002ba0  74 68 69 73 20 63 61 6e  20 65 61 73 69 6c 79 20  |this can easily |
00002bb0  62 65 20 61 6c 74 65 72  65 64 29 2c 0d 70 65 72  |be altered),.per|
00002bc0  66 6f 72 6d 20 61 20 43  52 43 20 28 63 79 63 6c  |form a CRC (cycl|
00002bd0  69 63 20 72 65 64 75 6e  64 61 6e 63 79 20 63 68  |ic redundancy ch|
00002be0  65 63 6b 29 20 6f 6e 20  74 68 65 20 70 61 67 65  |eck) on the page|
00002bf0  20 64 61 74 61 2c 20 74  68 65 6e 20 64 65 63 6f  | data, then deco|
00002c00  64 65 20 69 74 73 0d 73  75 62 2d 70 61 67 65 20  |de its.sub-page |
00002c10  6e 75 6d 62 65 72 2e 20  54 68 65 20 72 65 73 75  |number. The resu|
00002c20  6c 74 73 20 6f 66 20 62  6f 74 68 20 63 68 65 63  |lts of both chec|
00002c30  6b 73 20 61 72 65 20 67  69 76 65 6e 20 6f 6e 20  |ks are given on |
00002c40  72 6f 77 20 32 35 20 6f  66 20 74 68 65 0d 64 69  |row 25 of the.di|
00002c50  73 70 6c 61 79 2e 0d 0d  54 68 65 20 74 65 6c 65  |splay...The tele|
00002c60  73 6f 66 74 77 61 72 65  20 70 72 6f 67 72 61 6d  |software program|
00002c70  20 22 43 45 45 2f 56 69  64 22 20 77 69 6c 6c 20  | "CEE/Vid" will |
00002c80  72 65 63 65 69 76 65 20  61 20 63 6f 6d 70 6c 65  |receive a comple|
00002c90  74 65 20 63 79 63 6c 69  6e 67 0d 73 65 71 75 65  |te cycling.seque|
00002ca0  6e 63 65 20 6f 66 20 72  6f 6c 6c 69 6e 67 20 73  |nce of rolling s|
00002cb0  75 62 2d 70 61 67 65 73  20 6f 6e 20 61 6e 79 20  |ub-pages on any |
00002cc0  67 69 76 65 6e 20 70 61  67 65 20 6e 75 6d 62 65  |given page numbe|
00002cd0  72 2c 20 75 73 69 6e 67  20 73 6f 6d 65 20 6f 66  |r, using some of|
00002ce0  20 74 68 65 0d 6d 65 74  68 6f 64 73 20 64 65 73  | the.methods des|
00002cf0  63 72 69 62 65 64 20 61  62 6f 76 65 2c 20 61 6e  |cribed above, an|
00002d00  64 20 73 74 6f 72 65 20  74 68 65 20 73 65 71 75  |d store the sequ|
00002d10  65 6e 63 65 20 61 73 20  61 20 56 69 64 69 45 64  |ence as a VidiEd|
00002d20  20 6d 61 67 61 7a 69 6e  65 20 66 6f 72 0d 75 73  | magazine for.us|
00002d30  65 20 77 69 74 68 20 74  68 65 20 56 69 64 69 45  |e with the VidiE|
00002d40  64 20 70 61 63 6b 61 67  65 20 72 65 63 65 6e 74  |d package recent|
00002d50  6c 79 20 62 72 6f 61 64  63 61 73 74 2e 0d 0d 0d  |ly broadcast....|
00002d60  0d 0d 0d 0d 0d 0d 0d 0d  0d 0d 0d 0d 0d 0d 0d 0d  |................|
*
00002d80  0d 0d 0d 20 20 20 20 20  20 20 20 20 20 20 20 20  |...             |
00002d90  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
00002da0  20 20 20 20 20 50 61 67  65 20 35 0d 0d 0d 0d 0d  |     Page 5.....|
00002db0
ATS/T\ATS07.m0
ATS/T\ATS07.m1
ATS/T\ATS07.m2
ATS/T\ATS07.m4
ATS/T\ATS07.m5