# Intercom 1000DP test for PA-3 Plotter.
# Loads to channel 09. Run using a 690900 command.

50 0900 ts#     enter command-entry mode

42 0996 ts#     get scale factor
49 1764 ts#     store Sa
49 1768 ts#     store Sb

42 0998 ts#     load zero
49 1728 ts#     store a0 (not necessary at initialization)
49 1700 ts#     store b0 (ditto)

42 0994 ts#     load min a,b
49 1784 ts#     store a1=200 and leave in A as b1
08 1754 ts#     move to (200,200) [pen up]

42 0992 ts#     load max a
49 1784 ts#     store a1=400
42 0994 ts#     load min b into A as b1
08 1745 ts#     draw to (400,200) [pen down]

42 0992 ts#     load max a,b
49 1784 ts#     store a1=400 (necessary?) and leave in A as b1
08 1745 ts#     draw to (400,400)

42 0994 ts#     load min a
49 1784 ts#     store a1=200
42 0992 ts#     load max b and leave in A as b1
08 1745 ts#     draw to (200,400)

42 0994 ts#     load min a,b
49 1784 ts#     store a1=200 (necessary?) and leave in A as b1
08 1745 ts#     draw to (200,200)

42 0992 ts#     load max a,b
49 1784 ts#     store a1=400 and leave in A as b1
08 1745 ts#     draw diagonal to (400,400)

42 0994 ts#     load min a
49 1784 ts#     store a1=200
42 0992 ts#     load max b and leave in A as b1
08 1754 ts#     move to (200,400)

42 0992 ts#     load max a
49 1784 ts#     store a1=400
42 0994 ts#     load min b and leave in A as b1
08 1745 ts#     draw diagonal to (400,200)

42 0998 ts#     load zero
49 1784 ts#     store a1=0 and leave in A as b1
08 1754 ts#     move to (0,0)

67 0000 ts#     halt and switch to manual mode

# Constants

51 0992//ts#    enter fixed-point typein mode
400/0 ts#       0992 = max a, b
200/0 ts#       0994 = min a, b
1/0 ts#         0996 = scale factor, 100 units/inch (plotter steps)
0/0 ts#         0998 = zero

67 0000//ts#    enter manual mode
