Home » Archimedes archive » Acorn User » AU 1995-02.adf » !Dark_DarkHorse » !DarkHorse/WorkHorses/Example/BASICflash

!DarkHorse/WorkHorses/Example/BASICflash

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 » Archimedes archive » Acorn User » AU 1995-02.adf » !Dark_DarkHorse
Filename: !DarkHorse/WorkHorses/Example/BASICflash
Read OK:
File size: 0ACC bytes
Load address: 0000
Exec address: 0000
File contents
   10REM > BASICflash
   20
   30REM * Most of this file is just comments. The actual program
   40REM * is very small. The comments explain what exactly each
   50REM * section of code does. The file 'Quickflash' is just this
   60REM * with the comments removed.
   70
   80  ON ERROR PRINT ERL;" ";REPORT$:END
   90
  100  MODE 12
  110
  120  currcol% = 1 : REM * used by my BASIC SetCol procedure.
  130
  140  myxord% = 0  : REM * theses variables are used internally by
  150  myyord% = 0  : REM * the saver, so need space allocated in
  160  nocols% = 0  : REM * the assembly as 3 words, ie using EQUD.
  170
  180  radius% = 50 : REM * this value is a user argument.
  190
  200  A%=1280  : REM * screen width.
  210  B%=1024  : REM * screen height.
  220  C%=16    : REM * number of colours.
  230  D%=0     : REM * screen base. But I don't need it here.
  240  E%=0     : REM * screen size. But I don't need it here.
  250
  260  PROCinit(A%,B%,C%,D%,E%)  : REM * Call Initialisation Code.
  270
  280REM * To test our polling :
  290
  300  FOR n%=1 TO 1000
  310
  320    A%=RND(1280)              : REM * random of screen width.
  330    B%=RND(1024)              : REM * random of screen height.
  340    currcol%+=1               : REM * increment colour gcol
  350    IF currcol%=16 currcol%=1 : REM * check colour number
  360    C%=currcol%               : REM * set current colour
  370    D%=0                      : REM * tint unused
  380    PROCpoll(A%,B%,C%,D%)     : REM * Call Polling Code.
  390
  400  NEXT n%
  410  
  420  PROCshutdown
  430
  440END
  450
  460DEFPROCpoll(A%,B%,C%,D%)
  470
  480REM *            At this moment A% = random int 0-scr.width
  490REM *                           B% = random int 0-scr.height
  500REM *                           C% = gcol number to set
  510REM *                           D% = tint number to set
  520
  530REM * Set GCOL to next in sequence. The values are those passed
  531REM * in as C%,D% (regs r2,r3)
  540
  541  GCOL 0,C% TINT D%
  560
  570REM * Now draw a circle of radius taken from user argument plot
  580REM * at the random values passed in A%,B% (regs r0,r1).
  590
  610  CIRCLE FILL A%, B%, radius%
  630
  680REM * Set GCOL to black, and draw a circle of radius read from
  700REM * user argument, to plot at co-ordinates read from internal
  710REM * saver variables.
  720
  730  GCOL 0,0 TINT 0
  740  CIRCLE FILL myxord%, myyord%, radius%
  750
  760REM * Now store the new random values, currently in A% and
  770REM * B% to the saver internal variables myxord%, myyord%.
  780
  790  myxord% = A%
  800  myyord% = B%
  801  
  930ENDPROC
  940
  950
  960DEFPROCinit(A%,B%,C%,D%,E%)
  970
  980REM *               At this moment A% = screen width
  990REM *                              B% = screen height
 1000REM *                              C% = number of colours
 1010REM *                              D% = screen base address
 1020REM *                              E% = screensize in bytes
 1030
 1060ENDPROC
 1070
 1080DEFPROCshutdown
 1090
 1100REM * Doesn't need to do anything in this case.
 1110
 1120ENDPROC
 1130

� > BASICflash

>� * Most of this file is just comments. The actual program
(=� * is very small. The comments explain what exactly each
2@� * section of code does. The file 'Quickflash' is just this
<"� * with the comments removed.
F
P  � � � �;" ";�$:�
Z
d
  � 12
n
x;  currcol% = 1 : � * used by my BASIC SetCol procedure.
�
�@  myxord% = 0  : � * theses variables are used internally by
�>  myyord% = 0  : � * the saver, so need space allocated in
�@  nocols% = 0  : � * the assembly as 3 words, ie using EQUD.
�
�7  radius% = 50 : � * this value is a user argument.
�
�"  A%=1280  : � * screen width.
�#  B%=1024  : � * screen height.
�'  C%=16    : � * number of colours.
�;  D%=0     : � * screen base. But I don't need it here.
�;  E%=0     : � * screen size. But I don't need it here.
�
<  �init(A%,B%,C%,D%,E%)  : � * Call Initialisation Code.

� * To test our polling :
"
,  � n%=1 � 1000
6
@=    A%=�(1280)              : � * random of screen width.
J>    B%=�(1024)              : � * random of screen height.
T=    currcol%+=1               : � * increment colour gcol
^:    � currcol%=16 currcol%=1 : � * check colour number
h:    C%=currcol%               : � * set current colour
r3    D%=0                      : � * tint unused
|7    �poll(A%,B%,C%,D%)     : � * Call Polling Code.
�
�
  � n%
�  
�  �shutdown
�
��
�
���poll(A%,B%,C%,D%)
�
�=� *            At this moment A% = random int 0-scr.width
�>� *                           B% = random int 0-scr.height
�9� *                           C% = gcol number to set
�9� *                           D% = tint number to set

A� * Set GCOL to next in sequence. The values are those passed
 � * in as C%,D% (regs r2,r3)

  � 0,C% Ȝ D%
0
:A� * Now draw a circle of radius taken from user argument plot
D:� * at the random values passed in A%,B% (regs r0,r1).
N
b  ȏ Ȑ A%, B%, radius%
v
�@� * Set GCOL to black, and draw a circle of radius read from
�A� * user argument, to plot at co-ordinates read from internal
�� * saver variables.
�
�  � 0,0 Ȝ 0
�%  ȏ Ȑ myxord%, myyord%, radius%
�
�<� * Now store the new random values, currently in A% and
<� * B% to the saver internal variables myxord%, myyord%.

  myxord% = A%
   myyord% = B%
!  
��
�
�
���init(A%,B%,C%,D%,E%)
�
�6� *               At this moment A% = screen width
�7� *                              B% = screen height
�;� *                              C% = number of colours
�=� *                              D% = screen base address
�=� *                              E% = screensize in bytes

$�
.
8��shutdown
B
L1� * Doesn't need to do anything in this case.
V
`�
j
�
00000000  0d 00 0a 12 f4 20 3e 20  42 41 53 49 43 66 6c 61  |..... > BASICfla|
00000010  73 68 0d 00 14 04 0d 00  1e 3e f4 20 2a 20 4d 6f  |sh.......>. * Mo|
00000020  73 74 20 6f 66 20 74 68  69 73 20 66 69 6c 65 20  |st of this file |
00000030  69 73 20 6a 75 73 74 20  63 6f 6d 6d 65 6e 74 73  |is just comments|
00000040  2e 20 54 68 65 20 61 63  74 75 61 6c 20 70 72 6f  |. The actual pro|
00000050  67 72 61 6d 0d 00 28 3d  f4 20 2a 20 69 73 20 76  |gram..(=. * is v|
00000060  65 72 79 20 73 6d 61 6c  6c 2e 20 54 68 65 20 63  |ery small. The c|
00000070  6f 6d 6d 65 6e 74 73 20  65 78 70 6c 61 69 6e 20  |omments explain |
00000080  77 68 61 74 20 65 78 61  63 74 6c 79 20 65 61 63  |what exactly eac|
00000090  68 0d 00 32 40 f4 20 2a  20 73 65 63 74 69 6f 6e  |h..2@. * section|
000000a0  20 6f 66 20 63 6f 64 65  20 64 6f 65 73 2e 20 54  | of code does. T|
000000b0  68 65 20 66 69 6c 65 20  27 51 75 69 63 6b 66 6c  |he file 'Quickfl|
000000c0  61 73 68 27 20 69 73 20  6a 75 73 74 20 74 68 69  |ash' is just thi|
000000d0  73 0d 00 3c 22 f4 20 2a  20 77 69 74 68 20 74 68  |s..<". * with th|
000000e0  65 20 63 6f 6d 6d 65 6e  74 73 20 72 65 6d 6f 76  |e comments remov|
000000f0  65 64 2e 0d 00 46 04 0d  00 50 16 20 20 ee 20 85  |ed...F...P.  . .|
00000100  20 f1 20 9e 3b 22 20 22  3b f6 24 3a e0 0d 00 5a  | . .;" ";.$:...Z|
00000110  04 0d 00 64 0a 20 20 eb  20 31 32 0d 00 6e 04 0d  |...d.  . 12..n..|
00000120  00 78 3b 20 20 63 75 72  72 63 6f 6c 25 20 3d 20  |.x;  currcol% = |
00000130  31 20 3a 20 f4 20 2a 20  75 73 65 64 20 62 79 20  |1 : . * used by |
00000140  6d 79 20 42 41 53 49 43  20 53 65 74 43 6f 6c 20  |my BASIC SetCol |
00000150  70 72 6f 63 65 64 75 72  65 2e 0d 00 82 04 0d 00  |procedure.......|
00000160  8c 40 20 20 6d 79 78 6f  72 64 25 20 3d 20 30 20  |.@  myxord% = 0 |
00000170  20 3a 20 f4 20 2a 20 74  68 65 73 65 73 20 76 61  | : . * theses va|
00000180  72 69 61 62 6c 65 73 20  61 72 65 20 75 73 65 64  |riables are used|
00000190  20 69 6e 74 65 72 6e 61  6c 6c 79 20 62 79 0d 00  | internally by..|
000001a0  96 3e 20 20 6d 79 79 6f  72 64 25 20 3d 20 30 20  |.>  myyord% = 0 |
000001b0  20 3a 20 f4 20 2a 20 74  68 65 20 73 61 76 65 72  | : . * the saver|
000001c0  2c 20 73 6f 20 6e 65 65  64 20 73 70 61 63 65 20  |, so need space |
000001d0  61 6c 6c 6f 63 61 74 65  64 20 69 6e 0d 00 a0 40  |allocated in...@|
000001e0  20 20 6e 6f 63 6f 6c 73  25 20 3d 20 30 20 20 3a  |  nocols% = 0  :|
000001f0  20 f4 20 2a 20 74 68 65  20 61 73 73 65 6d 62 6c  | . * the assembl|
00000200  79 20 61 73 20 33 20 77  6f 72 64 73 2c 20 69 65  |y as 3 words, ie|
00000210  20 75 73 69 6e 67 20 45  51 55 44 2e 0d 00 aa 04  | using EQUD.....|
00000220  0d 00 b4 37 20 20 72 61  64 69 75 73 25 20 3d 20  |...7  radius% = |
00000230  35 30 20 3a 20 f4 20 2a  20 74 68 69 73 20 76 61  |50 : . * this va|
00000240  6c 75 65 20 69 73 20 61  20 75 73 65 72 20 61 72  |lue is a user ar|
00000250  67 75 6d 65 6e 74 2e 0d  00 be 04 0d 00 c8 22 20  |gument........" |
00000260  20 41 25 3d 31 32 38 30  20 20 3a 20 f4 20 2a 20  | A%=1280  : . * |
00000270  73 63 72 65 65 6e 20 77  69 64 74 68 2e 0d 00 d2  |screen width....|
00000280  23 20 20 42 25 3d 31 30  32 34 20 20 3a 20 f4 20  |#  B%=1024  : . |
00000290  2a 20 73 63 72 65 65 6e  20 68 65 69 67 68 74 2e  |* screen height.|
000002a0  0d 00 dc 27 20 20 43 25  3d 31 36 20 20 20 20 3a  |...'  C%=16    :|
000002b0  20 f4 20 2a 20 6e 75 6d  62 65 72 20 6f 66 20 63  | . * number of c|
000002c0  6f 6c 6f 75 72 73 2e 0d  00 e6 3b 20 20 44 25 3d  |olours....;  D%=|
000002d0  30 20 20 20 20 20 3a 20  f4 20 2a 20 73 63 72 65  |0     : . * scre|
000002e0  65 6e 20 62 61 73 65 2e  20 42 75 74 20 49 20 64  |en base. But I d|
000002f0  6f 6e 27 74 20 6e 65 65  64 20 69 74 20 68 65 72  |on't need it her|
00000300  65 2e 0d 00 f0 3b 20 20  45 25 3d 30 20 20 20 20  |e....;  E%=0    |
00000310  20 3a 20 f4 20 2a 20 73  63 72 65 65 6e 20 73 69  | : . * screen si|
00000320  7a 65 2e 20 42 75 74 20  49 20 64 6f 6e 27 74 20  |ze. But I don't |
00000330  6e 65 65 64 20 69 74 20  68 65 72 65 2e 0d 00 fa  |need it here....|
00000340  04 0d 01 04 3c 20 20 f2  69 6e 69 74 28 41 25 2c  |....<  .init(A%,|
00000350  42 25 2c 43 25 2c 44 25  2c 45 25 29 20 20 3a 20  |B%,C%,D%,E%)  : |
00000360  f4 20 2a 20 43 61 6c 6c  20 49 6e 69 74 69 61 6c  |. * Call Initial|
00000370  69 73 61 74 69 6f 6e 20  43 6f 64 65 2e 0d 01 0e  |isation Code....|
00000380  04 0d 01 18 1d f4 20 2a  20 54 6f 20 74 65 73 74  |...... * To test|
00000390  20 6f 75 72 20 70 6f 6c  6c 69 6e 67 20 3a 0d 01  | our polling :..|
000003a0  22 04 0d 01 2c 13 20 20  e3 20 6e 25 3d 31 20 b8  |"...,.  . n%=1 .|
000003b0  20 31 30 30 30 0d 01 36  04 0d 01 40 3d 20 20 20  | 1000..6...@=   |
000003c0  20 41 25 3d b3 28 31 32  38 30 29 20 20 20 20 20  | A%=.(1280)     |
000003d0  20 20 20 20 20 20 20 20  20 3a 20 f4 20 2a 20 72  |         : . * r|
000003e0  61 6e 64 6f 6d 20 6f 66  20 73 63 72 65 65 6e 20  |andom of screen |
000003f0  77 69 64 74 68 2e 0d 01  4a 3e 20 20 20 20 42 25  |width...J>    B%|
00000400  3d b3 28 31 30 32 34 29  20 20 20 20 20 20 20 20  |=.(1024)        |
00000410  20 20 20 20 20 20 3a 20  f4 20 2a 20 72 61 6e 64  |      : . * rand|
00000420  6f 6d 20 6f 66 20 73 63  72 65 65 6e 20 68 65 69  |om of screen hei|
00000430  67 68 74 2e 0d 01 54 3d  20 20 20 20 63 75 72 72  |ght...T=    curr|
00000440  63 6f 6c 25 2b 3d 31 20  20 20 20 20 20 20 20 20  |col%+=1         |
00000450  20 20 20 20 20 20 3a 20  f4 20 2a 20 69 6e 63 72  |      : . * incr|
00000460  65 6d 65 6e 74 20 63 6f  6c 6f 75 72 20 67 63 6f  |ement colour gco|
00000470  6c 0d 01 5e 3a 20 20 20  20 e7 20 63 75 72 72 63  |l..^:    . currc|
00000480  6f 6c 25 3d 31 36 20 63  75 72 72 63 6f 6c 25 3d  |ol%=16 currcol%=|
00000490  31 20 3a 20 f4 20 2a 20  63 68 65 63 6b 20 63 6f  |1 : . * check co|
000004a0  6c 6f 75 72 20 6e 75 6d  62 65 72 0d 01 68 3a 20  |lour number..h: |
000004b0  20 20 20 43 25 3d 63 75  72 72 63 6f 6c 25 20 20  |   C%=currcol%  |
000004c0  20 20 20 20 20 20 20 20  20 20 20 20 20 3a 20 f4  |             : .|
000004d0  20 2a 20 73 65 74 20 63  75 72 72 65 6e 74 20 63  | * set current c|
000004e0  6f 6c 6f 75 72 0d 01 72  33 20 20 20 20 44 25 3d  |olour..r3    D%=|
000004f0  30 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |0               |
00000500  20 20 20 20 20 20 20 3a  20 f4 20 2a 20 74 69 6e  |       : . * tin|
00000510  74 20 75 6e 75 73 65 64  0d 01 7c 37 20 20 20 20  |t unused..|7    |
00000520  f2 70 6f 6c 6c 28 41 25  2c 42 25 2c 43 25 2c 44  |.poll(A%,B%,C%,D|
00000530  25 29 20 20 20 20 20 3a  20 f4 20 2a 20 43 61 6c  |%)     : . * Cal|
00000540  6c 20 50 6f 6c 6c 69 6e  67 20 43 6f 64 65 2e 0d  |l Polling Code..|
00000550  01 86 04 0d 01 90 0a 20  20 ed 20 6e 25 0d 01 9a  |.......  . n%...|
00000560  06 20 20 0d 01 a4 0f 20  20 f2 73 68 75 74 64 6f  |.  ....  .shutdo|
00000570  77 6e 0d 01 ae 04 0d 01  b8 05 e0 0d 01 c2 04 0d  |wn..............|
00000580  01 cc 17 dd f2 70 6f 6c  6c 28 41 25 2c 42 25 2c  |.....poll(A%,B%,|
00000590  43 25 2c 44 25 29 0d 01  d6 04 0d 01 e0 3d f4 20  |C%,D%).......=. |
000005a0  2a 20 20 20 20 20 20 20  20 20 20 20 20 41 74 20  |*            At |
000005b0  74 68 69 73 20 6d 6f 6d  65 6e 74 20 41 25 20 3d  |this moment A% =|
000005c0  20 72 61 6e 64 6f 6d 20  69 6e 74 20 30 2d 73 63  | random int 0-sc|
000005d0  72 2e 77 69 64 74 68 0d  01 ea 3e f4 20 2a 20 20  |r.width...>. *  |
000005e0  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
000005f0  20 20 20 20 20 20 20 20  20 42 25 20 3d 20 72 61  |         B% = ra|
00000600  6e 64 6f 6d 20 69 6e 74  20 30 2d 73 63 72 2e 68  |ndom int 0-scr.h|
00000610  65 69 67 68 74 0d 01 f4  39 f4 20 2a 20 20 20 20  |eight...9. *    |
00000620  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
00000630  20 20 20 20 20 20 20 43  25 20 3d 20 67 63 6f 6c  |       C% = gcol|
00000640  20 6e 75 6d 62 65 72 20  74 6f 20 73 65 74 0d 01  | number to set..|
00000650  fe 39 f4 20 2a 20 20 20  20 20 20 20 20 20 20 20  |.9. *           |
00000660  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
00000670  44 25 20 3d 20 74 69 6e  74 20 6e 75 6d 62 65 72  |D% = tint number|
00000680  20 74 6f 20 73 65 74 0d  02 08 04 0d 02 12 41 f4  | to set.......A.|
00000690  20 2a 20 53 65 74 20 47  43 4f 4c 20 74 6f 20 6e  | * Set GCOL to n|
000006a0  65 78 74 20 69 6e 20 73  65 71 75 65 6e 63 65 2e  |ext in sequence.|
000006b0  20 54 68 65 20 76 61 6c  75 65 73 20 61 72 65 20  | The values are |
000006c0  74 68 6f 73 65 20 70 61  73 73 65 64 0d 02 13 20  |those passed... |
000006d0  f4 20 2a 20 69 6e 20 61  73 20 43 25 2c 44 25 20  |. * in as C%,D% |
000006e0  28 72 65 67 73 20 72 32  2c 72 33 29 0d 02 1c 04  |(regs r2,r3)....|
000006f0  0d 02 1d 12 20 20 e6 20  30 2c 43 25 20 c8 9c 20  |....  . 0,C% .. |
00000700  44 25 0d 02 30 04 0d 02  3a 41 f4 20 2a 20 4e 6f  |D%..0...:A. * No|
00000710  77 20 64 72 61 77 20 61  20 63 69 72 63 6c 65 20  |w draw a circle |
00000720  6f 66 20 72 61 64 69 75  73 20 74 61 6b 65 6e 20  |of radius taken |
00000730  66 72 6f 6d 20 75 73 65  72 20 61 72 67 75 6d 65  |from user argume|
00000740  6e 74 20 70 6c 6f 74 0d  02 44 3a f4 20 2a 20 61  |nt plot..D:. * a|
00000750  74 20 74 68 65 20 72 61  6e 64 6f 6d 20 76 61 6c  |t the random val|
00000760  75 65 73 20 70 61 73 73  65 64 20 69 6e 20 41 25  |ues passed in A%|
00000770  2c 42 25 20 28 72 65 67  73 20 72 30 2c 72 31 29  |,B% (regs r0,r1)|
00000780  2e 0d 02 4e 04 0d 02 62  1b 20 20 c8 8f 20 c8 90  |...N...b.  .. ..|
00000790  20 41 25 2c 20 42 25 2c  20 72 61 64 69 75 73 25  | A%, B%, radius%|
000007a0  0d 02 76 04 0d 02 a8 40  f4 20 2a 20 53 65 74 20  |..v....@. * Set |
000007b0  47 43 4f 4c 20 74 6f 20  62 6c 61 63 6b 2c 20 61  |GCOL to black, a|
000007c0  6e 64 20 64 72 61 77 20  61 20 63 69 72 63 6c 65  |nd draw a circle|
000007d0  20 6f 66 20 72 61 64 69  75 73 20 72 65 61 64 20  | of radius read |
000007e0  66 72 6f 6d 0d 02 bc 41  f4 20 2a 20 75 73 65 72  |from...A. * user|
000007f0  20 61 72 67 75 6d 65 6e  74 2c 20 74 6f 20 70 6c  | argument, to pl|
00000800  6f 74 20 61 74 20 63 6f  2d 6f 72 64 69 6e 61 74  |ot at co-ordinat|
00000810  65 73 20 72 65 61 64 20  66 72 6f 6d 20 69 6e 74  |es read from int|
00000820  65 72 6e 61 6c 0d 02 c6  18 f4 20 2a 20 73 61 76  |ernal..... * sav|
00000830  65 72 20 76 61 72 69 61  62 6c 65 73 2e 0d 02 d0  |er variables....|
00000840  04 0d 02 da 10 20 20 e6  20 30 2c 30 20 c8 9c 20  |.....  . 0,0 .. |
00000850  30 0d 02 e4 25 20 20 c8  8f 20 c8 90 20 6d 79 78  |0...%  .. .. myx|
00000860  6f 72 64 25 2c 20 6d 79  79 6f 72 64 25 2c 20 72  |ord%, myyord%, r|
00000870  61 64 69 75 73 25 0d 02  ee 04 0d 02 f8 3c f4 20  |adius%.......<. |
00000880  2a 20 4e 6f 77 20 73 74  6f 72 65 20 74 68 65 20  |* Now store the |
00000890  6e 65 77 20 72 61 6e 64  6f 6d 20 76 61 6c 75 65  |new random value|
000008a0  73 2c 20 63 75 72 72 65  6e 74 6c 79 20 69 6e 20  |s, currently in |
000008b0  41 25 20 61 6e 64 0d 03  02 3c f4 20 2a 20 42 25  |A% and...<. * B%|
000008c0  20 74 6f 20 74 68 65 20  73 61 76 65 72 20 69 6e  | to the saver in|
000008d0  74 65 72 6e 61 6c 20 76  61 72 69 61 62 6c 65 73  |ternal variables|
000008e0  20 6d 79 78 6f 72 64 25  2c 20 6d 79 79 6f 72 64  | myxord%, myyord|
000008f0  25 2e 0d 03 0c 04 0d 03  16 12 20 20 6d 79 78 6f  |%.........  myxo|
00000900  72 64 25 20 3d 20 41 25  0d 03 20 12 20 20 6d 79  |rd% = A%.. .  my|
00000910  79 6f 72 64 25 20 3d 20  42 25 0d 03 21 06 20 20  |yord% = B%..!.  |
00000920  0d 03 a2 05 e1 0d 03 ac  04 0d 03 b6 04 0d 03 c0  |................|
00000930  1a dd f2 69 6e 69 74 28  41 25 2c 42 25 2c 43 25  |...init(A%,B%,C%|
00000940  2c 44 25 2c 45 25 29 0d  03 ca 04 0d 03 d4 36 f4  |,D%,E%).......6.|
00000950  20 2a 20 20 20 20 20 20  20 20 20 20 20 20 20 20  | *              |
00000960  20 41 74 20 74 68 69 73  20 6d 6f 6d 65 6e 74 20  | At this moment |
00000970  41 25 20 3d 20 73 63 72  65 65 6e 20 77 69 64 74  |A% = screen widt|
00000980  68 0d 03 de 37 f4 20 2a  20 20 20 20 20 20 20 20  |h...7. *        |
00000990  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
000009a0  20 20 20 20 20 20 42 25  20 3d 20 73 63 72 65 65  |      B% = scree|
000009b0  6e 20 68 65 69 67 68 74  0d 03 e8 3b f4 20 2a 20  |n height...;. * |
000009c0  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
000009d0  20 20 20 20 20 20 20 20  20 20 20 20 20 43 25 20  |             C% |
000009e0  3d 20 6e 75 6d 62 65 72  20 6f 66 20 63 6f 6c 6f  |= number of colo|
000009f0  75 72 73 0d 03 f2 3d f4  20 2a 20 20 20 20 20 20  |urs...=. *      |
00000a00  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
00000a10  20 20 20 20 20 20 20 20  44 25 20 3d 20 73 63 72  |        D% = scr|
00000a20  65 65 6e 20 62 61 73 65  20 61 64 64 72 65 73 73  |een base address|
00000a30  0d 03 fc 3d f4 20 2a 20  20 20 20 20 20 20 20 20  |...=. *         |
00000a40  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
00000a50  20 20 20 20 20 45 25 20  3d 20 73 63 72 65 65 6e  |     E% = screen|
00000a60  73 69 7a 65 20 69 6e 20  62 79 74 65 73 0d 04 06  |size in bytes...|
00000a70  04 0d 04 24 05 e1 0d 04  2e 04 0d 04 38 0e dd f2  |...$........8...|
00000a80  73 68 75 74 64 6f 77 6e  0d 04 42 04 0d 04 4c 31  |shutdown..B...L1|
00000a90  f4 20 2a 20 44 6f 65 73  6e 27 74 20 6e 65 65 64  |. * Doesn't need|
00000aa0  20 74 6f 20 64 6f 20 61  6e 79 74 68 69 6e 67 20  | to do anything |
00000ab0  69 6e 20 74 68 69 73 20  63 61 73 65 2e 0d 04 56  |in this case...V|
00000ac0  04 0d 04 60 05 e1 0d 04  6a 04 0d ff              |...`....j...|
00000acc