Home » Personal collection » Acorn ADFS disks » Electron_User_Group » EUG_29.ADF » P/SHVGEN

P/SHVGEN

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 » Personal collection » Acorn ADFS disks » Electron_User_Group » EUG_29.ADF
Filename: P/SHVGEN
Read OK:
File size: 0A57 bytes
Load address: FFFF0E00
Exec address: FFFF802B
Duplicates

There are 2 duplicate copies of this file in the archive:

File contents
   10*K.10O.|MG.30|M
   20CALL!-4
   30*DIR $
   40REM 16-colour mandelbrot generator
   50REM Should work on DFS and ADFS
   60REM but requires shadow RAM
   70MODE1
   80MODE129
   90HIMEM=&3000
  100VDU23,1,0;0;0;0;
  110DIMc(15),d(15)
  120FORI%=0TO15
  130READc(I%),d(I%)
  140NEXT
  150PROCcode
  160CLG
  170MI%=600:REM Maximum number of iterations
  180XN%=4:YN%=4:REM Change XN% for modes 0 or 2
  190xstep%=1
  200ystep%=1
  210XL=-1:XR=-0.5:REM Coordinates
  220YLO=0:YUP=0.5
  230MNC%=0:MXC%=255:MNR%=0:MXR%=255
  240OFSET=FNoffset(XL,XR,1+MXC%)
  250XL=XL-OFSET:XR=XR-OFSET
  260OFSET=FNoffset(YLO,YUP,1+MXR%)
  270YLO=YLO-OFSET:YUP=YUP-OFSET
  280DIMXCOORD(MXC%),YCOORD(MXR%)
  290CGAP=(XR-XL)/(1+MXC%):TEMP=XL-CGAP
  300FORI%=MNC%TOMXC%
  310TEMP=TEMP+CGAP
  320XCOORD(I%)=TEMP
  330NEXTI%
  340RGAP=(YUP-YLO)/(MXR%+1):TEMP=YLO-RGAP
  350FORI%=MNR%TOMXR%
  360TEMP=TEMP+RGAP
  370YCOORD(I%)=TEMP
  380NEXTI%
  390FORI%=MNC%TOMXC%STEPxstep%
  400FORJ%=MNR%TOMXR%STEPystep%
  410col=FNout(XCOORD(I%),YCOORD(J%),MI%)
  420*FX112,1
  430GCOL0,c(col)
  440PLOT69,XN%*I%,YN%*J%
  450*FX112,0
  460GCOL0,d(col)
  470PLOT69,XN%*I%,YN%*J%
  480NEXTJ%
  490NEXTI%
  500*FX108,0
  510*SAVE PIC1 3000 8000
  520*FX108,1
  530*SAVE PIC2 3000 8000
  540VDU23,1,1;0;0;0;
  550END
  560DATA0,0,3,3,3,0,0,3,3,2,2,3,3,1,1,3
  570DATA2,2,2,1,1,2,2,0,0,2,1,1,1,0,0,1
  580:
  590REM Mandelbrot iterative algorithm
  600DEFFNout(X,Y,M%)
  610IFX+Y<=-0.75 THEN =0
  620IF2*X-Y>=-1.5 THEN =0
  630LOCALI%,TEMP,X1,Y1,HLT
  640I%=0:X1=0:Y1=0
  650REPEAT
  660I%=I%+1
  670TEMP=(X1-Y1)*(X1+Y1)+X
  680Y1=2*X1*Y1+Y
  690X1=TEMP
  700HLT=((X1^2+Y1^2)>16)
  710UNTIL(I%=M%) OR HLT
  720IF HLT THEN I%=((I% MOD15)+1) ELSEI%=0
  730=I%
  740:
  750REM Calculate pixel offset
  760DEFFNoffset(MIN,MAX,GD%)
  770LOCAL TEMP
  780TEMP=GD%*MIN/(MIN-MAX)
  790IF (MIN>0) OR (MAX<0) THEN=0 ELSE=TEMP-INT(TEMP)
  800:
  810REM 16-colour mode 1 source code
  820DEFPROCcode
  830code=&900
  840pal_reg=&FE21
  850osbyte=&FFF4
  860eventv=&220
  870byte=&70:byte2=&71
  880FORpass%=0TO2STEP2:P%=code
  890[OPTpass%
  900.init
  910PHP:PHA:TXA:PHA:TYA:PHA
  920STZbyte
  930LDA#1
  940STAbyte2
  950SEI
  960LDAeventv
  970STAoldeventv
  980LDA#entry MOD256
  990STAeventv
 1000LDAeventv+1
 1010STAoldeventv+1
 1020LDA#entry DIV256
 1030STAeventv+1
 1040CLI
 1050PLA:TAY:PLA:TAX:PLA:PLP
 1060RTS
 1070:
 1080.entry
 1090PHP:PHA:TXA:PHA:TYA:PHA
 1100LDAbyte
 1110EOR#16
 1120STAbyte
 1130TAX
 1140LDY#16
 1150:
 1160.loop
 1170LDAcols1,X
 1180STApal_reg
 1190INX
 1200DEY
 1210BNEloop
 1220LDAbyte2
 1230EOR#1
 1240STAbyte2
 1250TAX
 1260LDA#113
 1270JSRosbyte
 1280PLA:TAY:PLA:TAX:PLA:PLP
 1290JMP(oldeventv)
 1300:
 1310.cols1
 1320EQUB&07:EQUB&17:EQUB&47:EQUB&57
 1330EQUB&26:EQUB&36:EQUB&66:EQUB&76
 1340EQUB&85:EQUB&95:EQUB&C5:EQUB&D5
 1350EQUB&A0:EQUB&B0:EQUB&E0:EQUB&F0
 1360:
 1370.cols2
 1380EQUB&07:EQUB&17:EQUB&47:EQUB&57
 1390EQUB&21:EQUB&31:EQUB&61:EQUB&71
 1400EQUB&82:EQUB&92:EQUB&C2:EQUB&D2
 1410EQUB&A3:EQUB&B3:EQUB&E3:EQUB&F3
 1420:
 1430.mem
 1440EQUB&F6:EQUB&F5
 1450.oldeventv
 1460EQUW0
 1470]:NEXT
 1480CALLinit
 1490*FX14,4
 1500ENDPROC

*K.10O.|MG.30|M
�!-4

*DIR $
($� 16-colour mandelbrot generator
2!� Should work on DFS and ADFS
<� but requires shadow RAM
F�1
P�129
Z�=&3000
d�23,1,0;0;0;0;
n�c(15),d(15)
x�I%=0�15
��c(I%),d(I%)
��
�	�code
��
�*MI%=600:� Maximum number of iterations
�-XN%=4:YN%=4:� Change XN% for modes 0 or 2
�xstep%=1
�ystep%=1
�XL=-1:XR=-0.5:� Coordinates
�YLO=0:YUP=0.5
�#MNC%=0:MXC%=255:MNR%=0:MXR%=255
�OFSET=�offset(XL,XR,1+MXC%)
�XL=XL-OFSET:XR=XR-OFSET
!OFSET=�offset(YLO,YUP,1+MXR%)
YLO=YLO-OFSET:YUP=YUP-OFSET
�XCOORD(MXC%),YCOORD(MXR%)
"&CGAP=(XR-XL)/(1+MXC%):TEMP=XL-CGAP
,�I%=MNC%�MXC%
6TEMP=TEMP+CGAP
@XCOORD(I%)=TEMP
J�I%
T)RGAP=(YUP-YLO)/(MXR%+1):TEMP=YLO-RGAP
^�I%=MNR%�MXR%
hTEMP=TEMP+RGAP
rYCOORD(I%)=TEMP
|�I%
��I%=MNC%�MXC%�xstep%
��J%=MNR%�MXR%�ystep%
�'col=�out(XCOORD(I%),YCOORD(J%),MI%)
�*FX112,1
�
�0,c(col)
��69,XN%*I%,YN%*J%
�*FX112,0
�
�0,d(col)
��69,XN%*I%,YN%*J%
��J%
��I%
�*FX108,0
�*SAVE PIC1 3000 8000
*FX108,1
*SAVE PIC2 3000 8000
�23,1,1;0;0;0;
&�
0$�0,0,3,3,3,0,0,3,3,2,2,3,3,1,1,3
:$�2,2,2,1,1,2,2,0,0,2,1,1,1,0,0,1
D:
N$� Mandelbrot iterative algorithm
Xݤout(X,Y,M%)
b�X+Y<=-0.75 � =0
l�2*X-Y>=-1.5 � =0
v�I%,TEMP,X1,Y1,HLT
�I%=0:X1=0:Y1=0
��
�I%=I%+1
�TEMP=(X1-Y1)*(X1+Y1)+X
�Y1=2*X1*Y1+Y
�X1=TEMP
�HLT=((X1^2+Y1^2)>16)
��(I%=M%) � HLT
�!� HLT � I%=((I% �15)+1) �I%=0
�=I%
�:
�� Calculate pixel offset
�ݤoffset(MIN,MAX,GD%)

� TEMP
TEMP=GD%*MIN/(MIN-MAX)
*� (MIN>0) � (MAX<0) �=0 �=TEMP-�(TEMP)
 :
*"� 16-colour mode 1 source code
4
��code
>
code=&900
Hpal_reg=&FE21
Rosbyte=&FFF4
\eventv=&220
fbyte=&70:byte2=&71
p�pass%=0�2�2:P%=code
z
[OPTpass%
�	.init
�PHP:PHA:TXA:PHA:TYA:PHA
�STZbyte
�	LDA#1
�STAbyte2
�SEI
�
LDAeventv
�STAoldeventv
�LDA#entry �256
�
STAeventv
�LDAeventv+1
�STAoldeventv+1
�LDA#entry �256
STAeventv+1
CLI
PLA:TAY:PLA:TAX:PLA:PLP
$RTS
.:
8
.entry
BPHP:PHA:TXA:PHA:TYA:PHA
LLDAbyte
V�#16
`STAbyte
jTAX
t
LDY#16
~:
�	.loop
�LDAcols1,X
�STApal_reg
�INX
�DEY
�BNEloop
�LDAbyte2
��#1
�STAbyte2
�TAX
�LDA#113
�
JSRosbyte
PLA:TAY:PLA:TAX:PLA:PLP

JMP(oldeventv)
:

.cols1
(#EQUB&07:EQUB&17:EQUB&47:EQUB&57
2#EQUB&26:EQUB&36:EQUB&66:EQUB&76
<#EQUB&85:EQUB&95:EQUB&C5:EQUB&D5
F#EQUB&A0:EQUB&B0:EQUB&E0:EQUB&F0
P:
Z
.cols2
d#EQUB&07:EQUB&17:EQUB&47:EQUB&57
n#EQUB&21:EQUB&31:EQUB&61:EQUB&71
x#EQUB&82:EQUB&92:EQUB&C2:EQUB&D2
�#EQUB&A3:EQUB&B3:EQUB&E3:EQUB&F3
�:
�.mem
�EQUB&F6:EQUB&F5
�.oldeventv
�	EQUW0
�]:�
�	�init
�*FX14,4
��
�
00000000  0d 00 0a 13 2a 4b 2e 31  30 4f 2e 7c 4d 47 2e 33  |....*K.10O.|MG.3|
00000010  30 7c 4d 0d 00 14 08 d6  21 2d 34 0d 00 1e 0a 2a  |0|M.....!-4....*|
00000020  44 49 52 20 24 0d 00 28  24 f4 20 31 36 2d 63 6f  |DIR $..($. 16-co|
00000030  6c 6f 75 72 20 6d 61 6e  64 65 6c 62 72 6f 74 20  |lour mandelbrot |
00000040  67 65 6e 65 72 61 74 6f  72 0d 00 32 21 f4 20 53  |generator..2!. S|
00000050  68 6f 75 6c 64 20 77 6f  72 6b 20 6f 6e 20 44 46  |hould work on DF|
00000060  53 20 61 6e 64 20 41 44  46 53 0d 00 3c 1d f4 20  |S and ADFS..<.. |
00000070  62 75 74 20 72 65 71 75  69 72 65 73 20 73 68 61  |but requires sha|
00000080  64 6f 77 20 52 41 4d 0d  00 46 06 eb 31 0d 00 50  |dow RAM..F..1..P|
00000090  08 eb 31 32 39 0d 00 5a  0b d3 3d 26 33 30 30 30  |..129..Z..=&3000|
000000a0  0d 00 64 12 ef 32 33 2c  31 2c 30 3b 30 3b 30 3b  |..d..23,1,0;0;0;|
000000b0  30 3b 0d 00 6e 10 de 63  28 31 35 29 2c 64 28 31  |0;..n..c(15),d(1|
000000c0  35 29 0d 00 78 0c e3 49  25 3d 30 b8 31 35 0d 00  |5)..x..I%=0.15..|
000000d0  82 10 f3 63 28 49 25 29  2c 64 28 49 25 29 0d 00  |...c(I%),d(I%)..|
000000e0  8c 05 ed 0d 00 96 09 f2  63 6f 64 65 0d 00 a0 05  |........code....|
000000f0  da 0d 00 aa 2a 4d 49 25  3d 36 30 30 3a f4 20 4d  |....*MI%=600:. M|
00000100  61 78 69 6d 75 6d 20 6e  75 6d 62 65 72 20 6f 66  |aximum number of|
00000110  20 69 74 65 72 61 74 69  6f 6e 73 0d 00 b4 2d 58  | iterations...-X|
00000120  4e 25 3d 34 3a 59 4e 25  3d 34 3a f4 20 43 68 61  |N%=4:YN%=4:. Cha|
00000130  6e 67 65 20 58 4e 25 20  66 6f 72 20 6d 6f 64 65  |nge XN% for mode|
00000140  73 20 30 20 6f 72 20 32  0d 00 be 0c 78 73 74 65  |s 0 or 2....xste|
00000150  70 25 3d 31 0d 00 c8 0c  79 73 74 65 70 25 3d 31  |p%=1....ystep%=1|
00000160  0d 00 d2 1f 58 4c 3d 2d  31 3a 58 52 3d 2d 30 2e  |....XL=-1:XR=-0.|
00000170  35 3a f4 20 43 6f 6f 72  64 69 6e 61 74 65 73 0d  |5:. Coordinates.|
00000180  00 dc 11 59 4c 4f 3d 30  3a 59 55 50 3d 30 2e 35  |...YLO=0:YUP=0.5|
00000190  0d 00 e6 23 4d 4e 43 25  3d 30 3a 4d 58 43 25 3d  |...#MNC%=0:MXC%=|
000001a0  32 35 35 3a 4d 4e 52 25  3d 30 3a 4d 58 52 25 3d  |255:MNR%=0:MXR%=|
000001b0  32 35 35 0d 00 f0 1f 4f  46 53 45 54 3d a4 6f 66  |255....OFSET=.of|
000001c0  66 73 65 74 28 58 4c 2c  58 52 2c 31 2b 4d 58 43  |fset(XL,XR,1+MXC|
000001d0  25 29 0d 00 fa 1b 58 4c  3d 58 4c 2d 4f 46 53 45  |%)....XL=XL-OFSE|
000001e0  54 3a 58 52 3d 58 52 2d  4f 46 53 45 54 0d 01 04  |T:XR=XR-OFSET...|
000001f0  21 4f 46 53 45 54 3d a4  6f 66 66 73 65 74 28 59  |!OFSET=.offset(Y|
00000200  4c 4f 2c 59 55 50 2c 31  2b 4d 58 52 25 29 0d 01  |LO,YUP,1+MXR%)..|
00000210  0e 1f 59 4c 4f 3d 59 4c  4f 2d 4f 46 53 45 54 3a  |..YLO=YLO-OFSET:|
00000220  59 55 50 3d 59 55 50 2d  4f 46 53 45 54 0d 01 18  |YUP=YUP-OFSET...|
00000230  1e de 58 43 4f 4f 52 44  28 4d 58 43 25 29 2c 59  |..XCOORD(MXC%),Y|
00000240  43 4f 4f 52 44 28 4d 58  52 25 29 0d 01 22 26 43  |COORD(MXR%).."&C|
00000250  47 41 50 3d 28 58 52 2d  58 4c 29 2f 28 31 2b 4d  |GAP=(XR-XL)/(1+M|
00000260  58 43 25 29 3a 54 45 4d  50 3d 58 4c 2d 43 47 41  |XC%):TEMP=XL-CGA|
00000270  50 0d 01 2c 11 e3 49 25  3d 4d 4e 43 25 b8 4d 58  |P..,..I%=MNC%.MX|
00000280  43 25 0d 01 36 12 54 45  4d 50 3d 54 45 4d 50 2b  |C%..6.TEMP=TEMP+|
00000290  43 47 41 50 0d 01 40 13  58 43 4f 4f 52 44 28 49  |CGAP..@.XCOORD(I|
000002a0  25 29 3d 54 45 4d 50 0d  01 4a 07 ed 49 25 0d 01  |%)=TEMP..J..I%..|
000002b0  54 29 52 47 41 50 3d 28  59 55 50 2d 59 4c 4f 29  |T)RGAP=(YUP-YLO)|
000002c0  2f 28 4d 58 52 25 2b 31  29 3a 54 45 4d 50 3d 59  |/(MXR%+1):TEMP=Y|
000002d0  4c 4f 2d 52 47 41 50 0d  01 5e 11 e3 49 25 3d 4d  |LO-RGAP..^..I%=M|
000002e0  4e 52 25 b8 4d 58 52 25  0d 01 68 12 54 45 4d 50  |NR%.MXR%..h.TEMP|
000002f0  3d 54 45 4d 50 2b 52 47  41 50 0d 01 72 13 59 43  |=TEMP+RGAP..r.YC|
00000300  4f 4f 52 44 28 49 25 29  3d 54 45 4d 50 0d 01 7c  |OORD(I%)=TEMP..||
00000310  07 ed 49 25 0d 01 86 18  e3 49 25 3d 4d 4e 43 25  |..I%.....I%=MNC%|
00000320  b8 4d 58 43 25 88 78 73  74 65 70 25 0d 01 90 18  |.MXC%.xstep%....|
00000330  e3 4a 25 3d 4d 4e 52 25  b8 4d 58 52 25 88 79 73  |.J%=MNR%.MXR%.ys|
00000340  74 65 70 25 0d 01 9a 27  63 6f 6c 3d a4 6f 75 74  |tep%...'col=.out|
00000350  28 58 43 4f 4f 52 44 28  49 25 29 2c 59 43 4f 4f  |(XCOORD(I%),YCOO|
00000360  52 44 28 4a 25 29 2c 4d  49 25 29 0d 01 a4 0c 2a  |RD(J%),MI%)....*|
00000370  46 58 31 31 32 2c 31 0d  01 ae 0d e6 30 2c 63 28  |FX112,1.....0,c(|
00000380  63 6f 6c 29 0d 01 b8 15  f0 36 39 2c 58 4e 25 2a  |col).....69,XN%*|
00000390  49 25 2c 59 4e 25 2a 4a  25 0d 01 c2 0c 2a 46 58  |I%,YN%*J%....*FX|
000003a0  31 31 32 2c 30 0d 01 cc  0d e6 30 2c 64 28 63 6f  |112,0.....0,d(co|
000003b0  6c 29 0d 01 d6 15 f0 36  39 2c 58 4e 25 2a 49 25  |l).....69,XN%*I%|
000003c0  2c 59 4e 25 2a 4a 25 0d  01 e0 07 ed 4a 25 0d 01  |,YN%*J%.....J%..|
000003d0  ea 07 ed 49 25 0d 01 f4  0c 2a 46 58 31 30 38 2c  |...I%....*FX108,|
000003e0  30 0d 01 fe 18 2a 53 41  56 45 20 50 49 43 31 20  |0....*SAVE PIC1 |
000003f0  33 30 30 30 20 38 30 30  30 0d 02 08 0c 2a 46 58  |3000 8000....*FX|
00000400  31 30 38 2c 31 0d 02 12  18 2a 53 41 56 45 20 50  |108,1....*SAVE P|
00000410  49 43 32 20 33 30 30 30  20 38 30 30 30 0d 02 1c  |IC2 3000 8000...|
00000420  12 ef 32 33 2c 31 2c 31  3b 30 3b 30 3b 30 3b 0d  |..23,1,1;0;0;0;.|
00000430  02 26 05 e0 0d 02 30 24  dc 30 2c 30 2c 33 2c 33  |.&....0$.0,0,3,3|
00000440  2c 33 2c 30 2c 30 2c 33  2c 33 2c 32 2c 32 2c 33  |,3,0,0,3,3,2,2,3|
00000450  2c 33 2c 31 2c 31 2c 33  0d 02 3a 24 dc 32 2c 32  |,3,1,1,3..:$.2,2|
00000460  2c 32 2c 31 2c 31 2c 32  2c 32 2c 30 2c 30 2c 32  |,2,1,1,2,2,0,0,2|
00000470  2c 31 2c 31 2c 31 2c 30  2c 30 2c 31 0d 02 44 05  |,1,1,1,0,0,1..D.|
00000480  3a 0d 02 4e 24 f4 20 4d  61 6e 64 65 6c 62 72 6f  |:..N$. Mandelbro|
00000490  74 20 69 74 65 72 61 74  69 76 65 20 61 6c 67 6f  |t iterative algo|
000004a0  72 69 74 68 6d 0d 02 58  11 dd a4 6f 75 74 28 58  |rithm..X...out(X|
000004b0  2c 59 2c 4d 25 29 0d 02  62 14 e7 58 2b 59 3c 3d  |,Y,M%)..b..X+Y<=|
000004c0  2d 30 2e 37 35 20 8c 20  3d 30 0d 02 6c 15 e7 32  |-0.75 . =0..l..2|
000004d0  2a 58 2d 59 3e 3d 2d 31  2e 35 20 8c 20 3d 30 0d  |*X-Y>=-1.5 . =0.|
000004e0  02 76 16 ea 49 25 2c 54  45 4d 50 2c 58 31 2c 59  |.v..I%,TEMP,X1,Y|
000004f0  31 2c 48 4c 54 0d 02 80  12 49 25 3d 30 3a 58 31  |1,HLT....I%=0:X1|
00000500  3d 30 3a 59 31 3d 30 0d  02 8a 05 f5 0d 02 94 0b  |=0:Y1=0.........|
00000510  49 25 3d 49 25 2b 31 0d  02 9e 1a 54 45 4d 50 3d  |I%=I%+1....TEMP=|
00000520  28 58 31 2d 59 31 29 2a  28 58 31 2b 59 31 29 2b  |(X1-Y1)*(X1+Y1)+|
00000530  58 0d 02 a8 10 59 31 3d  32 2a 58 31 2a 59 31 2b  |X....Y1=2*X1*Y1+|
00000540  59 0d 02 b2 0b 58 31 3d  54 45 4d 50 0d 02 bc 18  |Y....X1=TEMP....|
00000550  48 4c 54 3d 28 28 58 31  5e 32 2b 59 31 5e 32 29  |HLT=((X1^2+Y1^2)|
00000560  3e 31 36 29 0d 02 c6 12  fd 28 49 25 3d 4d 25 29  |>16).....(I%=M%)|
00000570  20 84 20 48 4c 54 0d 02  d0 21 e7 20 48 4c 54 20  | . HLT...!. HLT |
00000580  8c 20 49 25 3d 28 28 49  25 20 83 31 35 29 2b 31  |. I%=((I% .15)+1|
00000590  29 20 8b 49 25 3d 30 0d  02 da 07 3d 49 25 0d 02  |) .I%=0....=I%..|
000005a0  e4 05 3a 0d 02 ee 1c f4  20 43 61 6c 63 75 6c 61  |..:..... Calcula|
000005b0  74 65 20 70 69 78 65 6c  20 6f 66 66 73 65 74 0d  |te pixel offset.|
000005c0  02 f8 19 dd a4 6f 66 66  73 65 74 28 4d 49 4e 2c  |.....offset(MIN,|
000005d0  4d 41 58 2c 47 44 25 29  0d 03 02 0a ea 20 54 45  |MAX,GD%)..... TE|
000005e0  4d 50 0d 03 0c 1a 54 45  4d 50 3d 47 44 25 2a 4d  |MP....TEMP=GD%*M|
000005f0  49 4e 2f 28 4d 49 4e 2d  4d 41 58 29 0d 03 16 2a  |IN/(MIN-MAX)...*|
00000600  e7 20 28 4d 49 4e 3e 30  29 20 84 20 28 4d 41 58  |. (MIN>0) . (MAX|
00000610  3c 30 29 20 8c 3d 30 20  8b 3d 54 45 4d 50 2d a8  |<0) .=0 .=TEMP-.|
00000620  28 54 45 4d 50 29 0d 03  20 05 3a 0d 03 2a 22 f4  |(TEMP).. .:..*".|
00000630  20 31 36 2d 63 6f 6c 6f  75 72 20 6d 6f 64 65 20  | 16-colour mode |
00000640  31 20 73 6f 75 72 63 65  20 63 6f 64 65 0d 03 34  |1 source code..4|
00000650  0a dd f2 63 6f 64 65 0d  03 3e 0d 63 6f 64 65 3d  |...code..>.code=|
00000660  26 39 30 30 0d 03 48 11  70 61 6c 5f 72 65 67 3d  |&900..H.pal_reg=|
00000670  26 46 45 32 31 0d 03 52  10 6f 73 62 79 74 65 3d  |&FE21..R.osbyte=|
00000680  26 46 46 46 34 0d 03 5c  0f 65 76 65 6e 74 76 3d  |&FFF4..\.eventv=|
00000690  26 32 32 30 0d 03 66 16  62 79 74 65 3d 26 37 30  |&220..f.byte=&70|
000006a0  3a 62 79 74 65 32 3d 26  37 31 0d 03 70 18 e3 70  |:byte2=&71..p..p|
000006b0  61 73 73 25 3d 30 b8 32  88 32 3a 50 25 3d 63 6f  |ass%=0.2.2:P%=co|
000006c0  64 65 0d 03 7a 0d 5b 4f  50 54 70 61 73 73 25 0d  |de..z.[OPTpass%.|
000006d0  03 84 09 2e 69 6e 69 74  0d 03 8e 1b 50 48 50 3a  |....init....PHP:|
000006e0  50 48 41 3a 54 58 41 3a  50 48 41 3a 54 59 41 3a  |PHA:TXA:PHA:TYA:|
000006f0  50 48 41 0d 03 98 0b 53  54 5a 62 79 74 65 0d 03  |PHA....STZbyte..|
00000700  a2 09 4c 44 41 23 31 0d  03 ac 0c 53 54 41 62 79  |..LDA#1....STAby|
00000710  74 65 32 0d 03 b6 07 53  45 49 0d 03 c0 0d 4c 44  |te2....SEI....LD|
00000720  41 65 76 65 6e 74 76 0d  03 ca 10 53 54 41 6f 6c  |Aeventv....STAol|
00000730  64 65 76 65 6e 74 76 0d  03 d4 12 4c 44 41 23 65  |deventv....LDA#e|
00000740  6e 74 72 79 20 83 32 35  36 0d 03 de 0d 53 54 41  |ntry .256....STA|
00000750  65 76 65 6e 74 76 0d 03  e8 0f 4c 44 41 65 76 65  |eventv....LDAeve|
00000760  6e 74 76 2b 31 0d 03 f2  12 53 54 41 6f 6c 64 65  |ntv+1....STAolde|
00000770  76 65 6e 74 76 2b 31 0d  03 fc 12 4c 44 41 23 65  |ventv+1....LDA#e|
00000780  6e 74 72 79 20 81 32 35  36 0d 04 06 0f 53 54 41  |ntry .256....STA|
00000790  65 76 65 6e 74 76 2b 31  0d 04 10 07 43 4c 49 0d  |eventv+1....CLI.|
000007a0  04 1a 1b 50 4c 41 3a 54  41 59 3a 50 4c 41 3a 54  |...PLA:TAY:PLA:T|
000007b0  41 58 3a 50 4c 41 3a 50  4c 50 0d 04 24 07 52 54  |AX:PLA:PLP..$.RT|
000007c0  53 0d 04 2e 05 3a 0d 04  38 0a 2e 65 6e 74 72 79  |S....:..8..entry|
000007d0  0d 04 42 1b 50 48 50 3a  50 48 41 3a 54 58 41 3a  |..B.PHP:PHA:TXA:|
000007e0  50 48 41 3a 54 59 41 3a  50 48 41 0d 04 4c 0b 4c  |PHA:TYA:PHA..L.L|
000007f0  44 41 62 79 74 65 0d 04  56 08 82 23 31 36 0d 04  |DAbyte..V..#16..|
00000800  60 0b 53 54 41 62 79 74  65 0d 04 6a 07 54 41 58  |`.STAbyte..j.TAX|
00000810  0d 04 74 0a 4c 44 59 23  31 36 0d 04 7e 05 3a 0d  |..t.LDY#16..~.:.|
00000820  04 88 09 2e 6c 6f 6f 70  0d 04 92 0e 4c 44 41 63  |....loop....LDAc|
00000830  6f 6c 73 31 2c 58 0d 04  9c 0e 53 54 41 70 61 6c  |ols1,X....STApal|
00000840  5f 72 65 67 0d 04 a6 07  49 4e 58 0d 04 b0 07 44  |_reg....INX....D|
00000850  45 59 0d 04 ba 0b 42 4e  45 6c 6f 6f 70 0d 04 c4  |EY....BNEloop...|
00000860  0c 4c 44 41 62 79 74 65  32 0d 04 ce 07 82 23 31  |.LDAbyte2.....#1|
00000870  0d 04 d8 0c 53 54 41 62  79 74 65 32 0d 04 e2 07  |....STAbyte2....|
00000880  54 41 58 0d 04 ec 0b 4c  44 41 23 31 31 33 0d 04  |TAX....LDA#113..|
00000890  f6 0d 4a 53 52 6f 73 62  79 74 65 0d 05 00 1b 50  |..JSRosbyte....P|
000008a0  4c 41 3a 54 41 59 3a 50  4c 41 3a 54 41 58 3a 50  |LA:TAY:PLA:TAX:P|
000008b0  4c 41 3a 50 4c 50 0d 05  0a 12 4a 4d 50 28 6f 6c  |LA:PLP....JMP(ol|
000008c0  64 65 76 65 6e 74 76 29  0d 05 14 05 3a 0d 05 1e  |deventv)....:...|
000008d0  0a 2e 63 6f 6c 73 31 0d  05 28 23 45 51 55 42 26  |..cols1..(#EQUB&|
000008e0  30 37 3a 45 51 55 42 26  31 37 3a 45 51 55 42 26  |07:EQUB&17:EQUB&|
000008f0  34 37 3a 45 51 55 42 26  35 37 0d 05 32 23 45 51  |47:EQUB&57..2#EQ|
00000900  55 42 26 32 36 3a 45 51  55 42 26 33 36 3a 45 51  |UB&26:EQUB&36:EQ|
00000910  55 42 26 36 36 3a 45 51  55 42 26 37 36 0d 05 3c  |UB&66:EQUB&76..<|
00000920  23 45 51 55 42 26 38 35  3a 45 51 55 42 26 39 35  |#EQUB&85:EQUB&95|
00000930  3a 45 51 55 42 26 43 35  3a 45 51 55 42 26 44 35  |:EQUB&C5:EQUB&D5|
00000940  0d 05 46 23 45 51 55 42  26 41 30 3a 45 51 55 42  |..F#EQUB&A0:EQUB|
00000950  26 42 30 3a 45 51 55 42  26 45 30 3a 45 51 55 42  |&B0:EQUB&E0:EQUB|
00000960  26 46 30 0d 05 50 05 3a  0d 05 5a 0a 2e 63 6f 6c  |&F0..P.:..Z..col|
00000970  73 32 0d 05 64 23 45 51  55 42 26 30 37 3a 45 51  |s2..d#EQUB&07:EQ|
00000980  55 42 26 31 37 3a 45 51  55 42 26 34 37 3a 45 51  |UB&17:EQUB&47:EQ|
00000990  55 42 26 35 37 0d 05 6e  23 45 51 55 42 26 32 31  |UB&57..n#EQUB&21|
000009a0  3a 45 51 55 42 26 33 31  3a 45 51 55 42 26 36 31  |:EQUB&31:EQUB&61|
000009b0  3a 45 51 55 42 26 37 31  0d 05 78 23 45 51 55 42  |:EQUB&71..x#EQUB|
000009c0  26 38 32 3a 45 51 55 42  26 39 32 3a 45 51 55 42  |&82:EQUB&92:EQUB|
000009d0  26 43 32 3a 45 51 55 42  26 44 32 0d 05 82 23 45  |&C2:EQUB&D2...#E|
000009e0  51 55 42 26 41 33 3a 45  51 55 42 26 42 33 3a 45  |QUB&A3:EQUB&B3:E|
000009f0  51 55 42 26 45 33 3a 45  51 55 42 26 46 33 0d 05  |QUB&E3:EQUB&F3..|
00000a00  8c 05 3a 0d 05 96 08 2e  6d 65 6d 0d 05 a0 13 45  |..:.....mem....E|
00000a10  51 55 42 26 46 36 3a 45  51 55 42 26 46 35 0d 05  |QUB&F6:EQUB&F5..|
00000a20  aa 0e 2e 6f 6c 64 65 76  65 6e 74 76 0d 05 b4 09  |...oldeventv....|
00000a30  45 51 55 57 30 0d 05 be  07 5d 3a ed 0d 05 c8 09  |EQUW0....]:.....|
00000a40  d6 69 6e 69 74 0d 05 d2  0b 2a 46 58 31 34 2c 34  |.init....*FX14,4|
00000a50  0d 05 dc 05 e1 0d ff                              |.......|
00000a57
P/SHVGEN.m0
P/SHVGEN.m1
P/SHVGEN.m2
P/SHVGEN.m4
P/SHVGEN.m5