Popular Electronics
MARCH 1977
[63] [64] [65] [66] [67]
[Part 1] [Part 2] [Part 3] [Part 4]


   PROGRAM III
  MAIN PROGRAM                  7B                7B                7B
                                D3                D4                D3
INITIALIZE    F8     THIRD DOT  F8                F8                F8
 POINTERS     65 *              65 *              79 *              65 *
              A3                A3    THIRD DASH  A4     FIFTH DOT  A3
              F8                7A                A4                7A
              79 *              D3                7A                D3
              A4                F8                D3                F8
              F8                65 *              F8                65 *
              8D *              A3                65 *              A3
              A5                                  A3
                                7B                                  7B
              7B                D4                7B                D3
FIRST DOT     D3    FIRST DASH  F8                D3                F8
              F8                79 *              F8                65 *
              65 *              A4    FOURTH DOT  65 *   SIXTH DOT, A3
              A3                7A                A3     PAUSE AND  7A
              7A                D3                7A     RETURN TO  D5
              D3                F8                D3     START      F8
              F8                65 *              F8                8D *
              65 *              A3                65 *              A5
              A3                                  A3                30
                                7B                                  00
              7B                D4
              D3                F8        * If a different number of
              F8                79 *        code elements is used,
SECOND DOT    65 *  SECOND DASH A4          change the starting address
              A3                7A          of each sub routine, or
              7A                D3          move to the end of memory
              D3                F8          page if flexibility is
              F8                65 *        desired.
              65 *              A3
              A3



                             PROGRAM III
              SUB ROUTINES (Must be loaded in order indicated
                            after main program is loaded.)

                          ½-Sec Loop        1-Sec Loop           3-Sec Loop
                                              All instructions same as
                                              ½-Sec Loop except where
                                              indicated
PUT 256 IN REG #1             F8                .                    .
                              FF                .                    .
                              A1                .                    .
PUT VARIABLE INTO             F8                .                    .
REG #2                        08 *              0F *                 30 *
                              A2                .                    .
                              C4                .                    .
                              C4                .                    .
DECREMENT AND LOOP THRU       C4                .                    .
R1 UNTIL ZERO.  THEN          C4                .                    .
OUTPUT TO DECREMENT           C4                .                    .
REG #2                        21                .                    .
                              81                .                    .
                              3A                .                    .
                              6B **             7F **                93 **
LOOP BACK TO START            22                .                    .
R #1 CYCLE UNTIL              82                .                    .
TOTAL TIME IS USED UP         3A                .                    .
                              6B **             7F **                93 **
RETURN TO MAIN PROGRAM        D0                .                    .

                 *  Sets Time
                 ** If a different number of code
                    elements is used, change this
                    instruction to starting
                    address of each subroutine
                    wait loop (first C4)

[63] [64] [65] [66] [67]
[Part 1] [Part 2] [Part 3] [Part 4]
67 MARCH 1977