Home » Personal collection » Acorn hard disk » demos » Demo » Sillies/!WobblText/mkchars

Sillies/!WobblText/mkchars

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 hard disk » demos » Demo
Filename: Sillies/!WobblText/mkchars
Read OK:
File size: 0A43 bytes
Load address: 0000
Exec address: 0000
File contents
   10MODE 13
   20OFF
   30ON ERROR MODE 0:PRINT REPORT$;" at line ";ERL:END
   40PROCassemble
   50PROCinitialise
   60PROCprocess_sprites
   70END
   80:
   90:
  100DEF PROCcopy_sprite(spr$,addr%)
  110OSCLI "SCHOOSE "+spr$
  120PLOT &ED,0,1024-4*36
  130A%=addr%
  140CALL copysprite
  150ENDPROC
  160:
  170DEF PROCinitialise
  180DIM temp1% 28*36,shadow% 28*36,shade% 28*36,outline% 28*36
  190*SLOAD <WobbleText$Dir>.plaincset
  200PROCcopy_sprite("shadow",shadow%)
  210PROCcopy_sprite("shade",shade%)
  220PROCcopy_sprite("outline",outline%)
  230DIM asciitable%(255)
  240asciitable%()=0
  250ENDPROC
  260:
  270:
  280DEF FNexists(spr$)
  290LOCAL ERROR
  300ON ERROR LOCAL RESTORE ERROR:=FALSE
  310OSCLI "SCHOOSE "+spr$
  320RESTORE ERROR
  330=TRUE
  340:
  350DEF PROCreplace_colour(dest%,src%,col%)
  360A%=dest%
  370B%=src%
  380C%=col%
  390CALL replacecol
  400ENDPROC
  410:
  420DEF PROCmask_plot(shape%,colour%,x%,y%)
  430A%=shape%
  440B%=colour%
  450C%=x%
  460D%=y%
  470CALL maskplot
  480ENDPROC
  490:
  500DEF PROCprocess_sprites
  510outf%=OPENOUT("<WobbleText$Dir>.charimage")
  520PTR#outf%=256
  530sprite%=0
  540FOR ascii%=0 TO 127
  550IF FNexists(STR$(ascii%)) THEN
  560sprite%+=1
  570asciitable%(ascii%)=sprite%
  580PROCcopy_sprite(STR$(ascii%),temp1%)
  590*SCHOOSE backg
  600PLOT &ED,0,1024-40*4
  610PROCreplace_colour(temp1%,shade%,116)
  620PROCreplace_colour(temp1%,outline%,20)
  630PROCmask_plot(temp1%,shadow%,2,3)
  640PROCmask_plot(temp1%,temp1%,0,1)
  650A%=outf%
  660CALL savesprite
  670ENDIF
  680NEXT ascii%
  690PTR#outf%=0
  700FOR c%=0 TO 255
  710BPUT #outf%,asciitable%(c%)
  720NEXT c%
  730CLOSE #outf%
  740ENDPROC
  750:
  760:
  770DEF PROCassemble
  780DIM code% &1000
  790FOR pass%=0 TO 2 STEP 2
  800P%=code%
  810[OPT pass%
  820.vbuffer EQUD 148:EQUD -1
  830.screen EQUD 0
  840:
  850.copysprite
  860LDR R3,screen
  870MOV R2,#36
  880.ycopyloop
  890MOV R1,#28
  900.xcopyloop
  910LDRB R5,[R3],#1
  920STRB R5,[R0],#1
  930SUBS R1,R1,#1
  940BGT xcopyloop
  950ADD R3,R3,#(320-28)
  960SUBS R2,R2,#1
  970BGT ycopyloop
  980MOV PC,R14
  990:
 1000.replacecol
 1010MOV R3,#28*36
 1020MOV R4,#0
 1030.replaceloop
 1040LDRB R5,[R0,R4]
 1050CMP R5,R2
 1060LDREQB R5,[R1,R4]
 1070STREQB R5,[R0,R4]
 1080ADD R4,R4,#1
 1090CMP R4,R3
 1100BLT replaceloop
 1110MOV PC,R14
 1120:
 1130.maskplot
 1140LDR R4,screen
 1150ADD R4,R4,R3,LSL#6
 1160ADD R4,R4,R3,LSL#8
 1170ADD R2,R4,R2
 1180MOV R3,#36
 1190.yplotloop
 1200MOV R4,#0
 1210.xplotloop
 1220LDRB R5,[R0,R4]
 1230CMP R5,#0
 1240LDRNEB R5,[R1,R4]
 1250STRNEB R5,[R2,R4]
 1260ADD R4,R4,#1
 1270CMP R4,#28
 1280BLT xplotloop
 1290ADD R0,R0,#28
 1300ADD R1,R1,#28
 1310ADD R2,R2,#320
 1320SUBS R3,R3,#1
 1330BGT yplotloop
 1340MOV PC,R14
 1350:
 1360.savesprite
 1370LDR R11,screen
 1380MOV R10,R0
 1390MOV R9,#32
 1400.xsaveloop
 1410MOV R8,#40
 1420MOV R7,R11
 1430.ysaveloop
 1440MOV R0,#2
 1450MOV R1,R10
 1460MOV R2,R7
 1470MOV R3,#4
 1480SWI "OS_GBPB"
 1490ADD R7,R7,#320
 1500SUBS R8,R8,#1
 1510BGT ysaveloop
 1520ADD R11,R11,#4
 1530SUBS R9,R9,#4
 1540BGT xsaveloop
 1550MOV PC,R14
 1560]
 1570NEXT pass%
 1580SYS "OS_ReadVduVariables",vbuffer,screen
 1590ENDPROC
 1600

� 13
�
 � � � 0:� �$;" at line ";�:�
(
�assemble
2�initialise
<�process_sprites
F�
P:
Z:
d� �copy_sprite(spr$,addr%)
n� "SCHOOSE "+spr$
x� &ED,0,1024-4*36
�A%=addr%
�� copysprite
��
�:
�� �initialise
�<� temp1% 28*36,shadow% 28*36,shade% 28*36,outline% 28*36
�%*SLOAD <WobbleText$Dir>.plaincset
�"�copy_sprite("shadow",shadow%)
� �copy_sprite("shade",shade%)
�$�copy_sprite("outline",outline%)
�� asciitable%(255)
�asciitable%()=0
��
:
:
� �exists(spr$)
"� �
,� � � � �:=�
6� "SCHOOSE "+spr$
@� �
J=�
T:
^&� �replace_colour(dest%,src%,col%)
hA%=dest%
rB%=src%
|C%=col%
�� replacecol
��
�:
�&� �mask_plot(shape%,colour%,x%,y%)
�
A%=shape%
�B%=colour%
�	C%=x%
�	D%=y%
�� maskplot
��
�:
�� �process_sprites
�)outf%=�("<WobbleText$Dir>.charimage")
�#outf%=256

sprite%=0
� ascii%=0 � 127
&� �exists(�(ascii%)) �
0sprite%+=1
:asciitable%(ascii%)=sprite%
D"�copy_sprite(�(ascii%),temp1%)
N*SCHOOSE backg
X� &ED,0,1024-40*4
b&�replace_colour(temp1%,shade%,116)
l'�replace_colour(temp1%,outline%,20)
v"�mask_plot(temp1%,shadow%,2,3)
�!�mask_plot(temp1%,temp1%,0,1)
�A%=outf%
�� savesprite
��
�� ascii%
�
�#outf%=0
�� c%=0 � 255
�� #outf%,asciitable%(c%)
�� c%
�� #outf%
��
�:
�:
� �assemble
� code% &1000
� pass%=0 � 2 � 2
 P%=code%
*[OPT pass%
4.vbuffer EQUD 148:EQUD -1
>.screen EQUD 0
H:
R.copysprite
\LDR R3,screen
fMOV R2,#36
p.ycopyloop
zMOV R1,#28
�.xcopyloop
�LDRB R5,[R3],#1
�STRB R5,[R0],#1
�SUBS R1,R1,#1
�BGT xcopyloop
�ADD R3,R3,#(320-28)
�SUBS R2,R2,#1
�BGT ycopyloop
�MOV PC,R14
�:
�.replacecol
�MOV R3,#28*36
�
MOV R4,#0
.replaceloop
LDRB R5,[R0,R4]

CMP R5,R2
$LDREQB R5,[R1,R4]
.STREQB R5,[R0,R4]
8ADD R4,R4,#1
B
CMP R4,R3
LBLT replaceloop
VMOV PC,R14
`:
j
.maskplot
tLDR R4,screen
~ADD R4,R4,R3,LSL#6
�ADD R4,R4,R3,LSL#8
�ADD R2,R4,R2
�MOV R3,#36
�.yplotloop
�
MOV R4,#0
�.xplotloop
�LDRB R5,[R0,R4]
�
CMP R5,#0
�LDRNEB R5,[R1,R4]
�STRNEB R5,[R2,R4]
�ADD R4,R4,#1
�CMP R4,#28
BLT xplotloop

ADD R0,R0,#28
ADD R1,R1,#28
ADD R2,R2,#320
(SUBS R3,R3,#1
2BGT yplotloop
<MOV PC,R14
F:
P.savesprite
ZLDR R11,screen
dMOV R10,R0
nMOV R9,#32
x.xsaveloop
�MOV R8,#40
�MOV R7,R11
�.ysaveloop
�
MOV R0,#2
�MOV R1,R10
�
MOV R2,R7
�
MOV R3,#4
�SWI "OS_GBPB"
�ADD R7,R7,#320
�SUBS R8,R8,#1
�BGT ysaveloop
�ADD R11,R11,#4
�SUBS R9,R9,#4
BGT xsaveloop
MOV PC,R14
]
"� pass%
,+ș "OS_ReadVduVariables",vbuffer,screen
6�
@
�
00000000  0d 00 0a 08 eb 20 31 33  0d 00 14 05 87 0d 00 1e  |..... 13........|
00000010  20 ee 20 85 20 eb 20 30  3a f1 20 f6 24 3b 22 20  | . . . 0:. .$;" |
00000020  61 74 20 6c 69 6e 65 20  22 3b 9e 3a e0 0d 00 28  |at line ";.:...(|
00000030  0d f2 61 73 73 65 6d 62  6c 65 0d 00 32 0f f2 69  |..assemble..2..i|
00000040  6e 69 74 69 61 6c 69 73  65 0d 00 3c 14 f2 70 72  |nitialise..<..pr|
00000050  6f 63 65 73 73 5f 73 70  72 69 74 65 73 0d 00 46  |ocess_sprites..F|
00000060  05 e0 0d 00 50 05 3a 0d  00 5a 05 3a 0d 00 64 1e  |....P.:..Z.:..d.|
00000070  dd 20 f2 63 6f 70 79 5f  73 70 72 69 74 65 28 73  |. .copy_sprite(s|
00000080  70 72 24 2c 61 64 64 72  25 29 0d 00 6e 15 ff 20  |pr$,addr%)..n.. |
00000090  22 53 43 48 4f 4f 53 45  20 22 2b 73 70 72 24 0d  |"SCHOOSE "+spr$.|
000000a0  00 78 15 f0 20 26 45 44  2c 30 2c 31 30 32 34 2d  |.x.. &ED,0,1024-|
000000b0  34 2a 33 36 0d 00 82 0c  41 25 3d 61 64 64 72 25  |4*36....A%=addr%|
000000c0  0d 00 8c 10 d6 20 63 6f  70 79 73 70 72 69 74 65  |..... copysprite|
000000d0  0d 00 96 05 e1 0d 00 a0  05 3a 0d 00 aa 11 dd 20  |.........:..... |
000000e0  f2 69 6e 69 74 69 61 6c  69 73 65 0d 00 b4 3c de  |.initialise...<.|
000000f0  20 74 65 6d 70 31 25 20  32 38 2a 33 36 2c 73 68  | temp1% 28*36,sh|
00000100  61 64 6f 77 25 20 32 38  2a 33 36 2c 73 68 61 64  |adow% 28*36,shad|
00000110  65 25 20 32 38 2a 33 36  2c 6f 75 74 6c 69 6e 65  |e% 28*36,outline|
00000120  25 20 32 38 2a 33 36 0d  00 be 25 2a 53 4c 4f 41  |% 28*36...%*SLOA|
00000130  44 20 3c 57 6f 62 62 6c  65 54 65 78 74 24 44 69  |D <WobbleText$Di|
00000140  72 3e 2e 70 6c 61 69 6e  63 73 65 74 0d 00 c8 22  |r>.plaincset..."|
00000150  f2 63 6f 70 79 5f 73 70  72 69 74 65 28 22 73 68  |.copy_sprite("sh|
00000160  61 64 6f 77 22 2c 73 68  61 64 6f 77 25 29 0d 00  |adow",shadow%)..|
00000170  d2 20 f2 63 6f 70 79 5f  73 70 72 69 74 65 28 22  |. .copy_sprite("|
00000180  73 68 61 64 65 22 2c 73  68 61 64 65 25 29 0d 00  |shade",shade%)..|
00000190  dc 24 f2 63 6f 70 79 5f  73 70 72 69 74 65 28 22  |.$.copy_sprite("|
000001a0  6f 75 74 6c 69 6e 65 22  2c 6f 75 74 6c 69 6e 65  |outline",outline|
000001b0  25 29 0d 00 e6 16 de 20  61 73 63 69 69 74 61 62  |%)..... asciitab|
000001c0  6c 65 25 28 32 35 35 29  0d 00 f0 13 61 73 63 69  |le%(255)....asci|
000001d0  69 74 61 62 6c 65 25 28  29 3d 30 0d 00 fa 05 e1  |itable%()=0.....|
000001e0  0d 01 04 05 3a 0d 01 0e  05 3a 0d 01 18 13 dd 20  |....:....:..... |
000001f0  a4 65 78 69 73 74 73 28  73 70 72 24 29 0d 01 22  |.exists(spr$).."|
00000200  07 ea 20 85 0d 01 2c 10  ee 20 85 20 ea 20 f7 20  |.. ...,.. . . . |
00000210  85 3a 3d a3 0d 01 36 15  ff 20 22 53 43 48 4f 4f  |.:=...6.. "SCHOO|
00000220  53 45 20 22 2b 73 70 72  24 0d 01 40 07 f7 20 85  |SE "+spr$..@.. .|
00000230  0d 01 4a 06 3d b9 0d 01  54 05 3a 0d 01 5e 26 dd  |..J.=...T.:..^&.|
00000240  20 f2 72 65 70 6c 61 63  65 5f 63 6f 6c 6f 75 72  | .replace_colour|
00000250  28 64 65 73 74 25 2c 73  72 63 25 2c 63 6f 6c 25  |(dest%,src%,col%|
00000260  29 0d 01 68 0c 41 25 3d  64 65 73 74 25 0d 01 72  |)..h.A%=dest%..r|
00000270  0b 42 25 3d 73 72 63 25  0d 01 7c 0b 43 25 3d 63  |.B%=src%..|.C%=c|
00000280  6f 6c 25 0d 01 86 10 d6  20 72 65 70 6c 61 63 65  |ol%..... replace|
00000290  63 6f 6c 0d 01 90 05 e1  0d 01 9a 05 3a 0d 01 a4  |col.........:...|
000002a0  26 dd 20 f2 6d 61 73 6b  5f 70 6c 6f 74 28 73 68  |&. .mask_plot(sh|
000002b0  61 70 65 25 2c 63 6f 6c  6f 75 72 25 2c 78 25 2c  |ape%,colour%,x%,|
000002c0  79 25 29 0d 01 ae 0d 41  25 3d 73 68 61 70 65 25  |y%)....A%=shape%|
000002d0  0d 01 b8 0e 42 25 3d 63  6f 6c 6f 75 72 25 0d 01  |....B%=colour%..|
000002e0  c2 09 43 25 3d 78 25 0d  01 cc 09 44 25 3d 79 25  |..C%=x%....D%=y%|
000002f0  0d 01 d6 0e d6 20 6d 61  73 6b 70 6c 6f 74 0d 01  |..... maskplot..|
00000300  e0 05 e1 0d 01 ea 05 3a  0d 01 f4 16 dd 20 f2 70  |.......:..... .p|
00000310  72 6f 63 65 73 73 5f 73  70 72 69 74 65 73 0d 01  |rocess_sprites..|
00000320  fe 29 6f 75 74 66 25 3d  ae 28 22 3c 57 6f 62 62  |.)outf%=.("<Wobb|
00000330  6c 65 54 65 78 74 24 44  69 72 3e 2e 63 68 61 72  |leText$Dir>.char|
00000340  69 6d 61 67 65 22 29 0d  02 08 0f cf 23 6f 75 74  |image").....#out|
00000350  66 25 3d 32 35 36 0d 02  12 0d 73 70 72 69 74 65  |f%=256....sprite|
00000360  25 3d 30 0d 02 1c 14 e3  20 61 73 63 69 69 25 3d  |%=0..... ascii%=|
00000370  30 20 b8 20 31 32 37 0d  02 26 1a e7 20 a4 65 78  |0 . 127..&.. .ex|
00000380  69 73 74 73 28 c3 28 61  73 63 69 69 25 29 29 20  |ists(.(ascii%)) |
00000390  8c 0d 02 30 0e 73 70 72  69 74 65 25 2b 3d 31 0d  |...0.sprite%+=1.|
000003a0  02 3a 1f 61 73 63 69 69  74 61 62 6c 65 25 28 61  |.:.asciitable%(a|
000003b0  73 63 69 69 25 29 3d 73  70 72 69 74 65 25 0d 02  |scii%)=sprite%..|
000003c0  44 22 f2 63 6f 70 79 5f  73 70 72 69 74 65 28 c3  |D".copy_sprite(.|
000003d0  28 61 73 63 69 69 25 29  2c 74 65 6d 70 31 25 29  |(ascii%),temp1%)|
000003e0  0d 02 4e 12 2a 53 43 48  4f 4f 53 45 20 62 61 63  |..N.*SCHOOSE bac|
000003f0  6b 67 0d 02 58 15 f0 20  26 45 44 2c 30 2c 31 30  |kg..X.. &ED,0,10|
00000400  32 34 2d 34 30 2a 34 0d  02 62 26 f2 72 65 70 6c  |24-40*4..b&.repl|
00000410  61 63 65 5f 63 6f 6c 6f  75 72 28 74 65 6d 70 31  |ace_colour(temp1|
00000420  25 2c 73 68 61 64 65 25  2c 31 31 36 29 0d 02 6c  |%,shade%,116)..l|
00000430  27 f2 72 65 70 6c 61 63  65 5f 63 6f 6c 6f 75 72  |'.replace_colour|
00000440  28 74 65 6d 70 31 25 2c  6f 75 74 6c 69 6e 65 25  |(temp1%,outline%|
00000450  2c 32 30 29 0d 02 76 22  f2 6d 61 73 6b 5f 70 6c  |,20)..v".mask_pl|
00000460  6f 74 28 74 65 6d 70 31  25 2c 73 68 61 64 6f 77  |ot(temp1%,shadow|
00000470  25 2c 32 2c 33 29 0d 02  80 21 f2 6d 61 73 6b 5f  |%,2,3)...!.mask_|
00000480  70 6c 6f 74 28 74 65 6d  70 31 25 2c 74 65 6d 70  |plot(temp1%,temp|
00000490  31 25 2c 30 2c 31 29 0d  02 8a 0c 41 25 3d 6f 75  |1%,0,1)....A%=ou|
000004a0  74 66 25 0d 02 94 10 d6  20 73 61 76 65 73 70 72  |tf%..... savespr|
000004b0  69 74 65 0d 02 9e 05 cd  0d 02 a8 0c ed 20 61 73  |ite.......... as|
000004c0  63 69 69 25 0d 02 b2 0d  cf 23 6f 75 74 66 25 3d  |cii%.....#outf%=|
000004d0  30 0d 02 bc 10 e3 20 63  25 3d 30 20 b8 20 32 35  |0..... c%=0 . 25|
000004e0  35 0d 02 c6 1c d5 20 23  6f 75 74 66 25 2c 61 73  |5..... #outf%,as|
000004f0  63 69 69 74 61 62 6c 65  25 28 63 25 29 0d 02 d0  |ciitable%(c%)...|
00000500  08 ed 20 63 25 0d 02 da  0c d9 20 23 6f 75 74 66  |.. c%..... #outf|
00000510  25 0d 02 e4 05 e1 0d 02  ee 05 3a 0d 02 f8 05 3a  |%.........:....:|
00000520  0d 03 02 0f dd 20 f2 61  73 73 65 6d 62 6c 65 0d  |..... .assemble.|
00000530  03 0c 11 de 20 63 6f 64  65 25 20 26 31 30 30 30  |.... code% &1000|
00000540  0d 03 16 15 e3 20 70 61  73 73 25 3d 30 20 b8 20  |..... pass%=0 . |
00000550  32 20 88 20 32 0d 03 20  0c 50 25 3d 63 6f 64 65  |2 . 2.. .P%=code|
00000560  25 0d 03 2a 0e 5b 4f 50  54 20 70 61 73 73 25 0d  |%..*.[OPT pass%.|
00000570  03 34 1d 2e 76 62 75 66  66 65 72 20 45 51 55 44  |.4..vbuffer EQUD|
00000580  20 31 34 38 3a 45 51 55  44 20 2d 31 0d 03 3e 12  | 148:EQUD -1..>.|
00000590  2e 73 63 72 65 65 6e 20  45 51 55 44 20 30 0d 03  |.screen EQUD 0..|
000005a0  48 05 3a 0d 03 52 0f 2e  63 6f 70 79 73 70 72 69  |H.:..R..copyspri|
000005b0  74 65 0d 03 5c 11 4c 44  52 20 52 33 2c 73 63 72  |te..\.LDR R3,scr|
000005c0  65 65 6e 0d 03 66 0e 4d  4f 56 20 52 32 2c 23 33  |een..f.MOV R2,#3|
000005d0  36 0d 03 70 0e 2e 79 63  6f 70 79 6c 6f 6f 70 0d  |6..p..ycopyloop.|
000005e0  03 7a 0e 4d 4f 56 20 52  31 2c 23 32 38 0d 03 84  |.z.MOV R1,#28...|
000005f0  0e 2e 78 63 6f 70 79 6c  6f 6f 70 0d 03 8e 13 4c  |..xcopyloop....L|
00000600  44 52 42 20 52 35 2c 5b  52 33 5d 2c 23 31 0d 03  |DRB R5,[R3],#1..|
00000610  98 13 53 54 52 42 20 52  35 2c 5b 52 30 5d 2c 23  |..STRB R5,[R0],#|
00000620  31 0d 03 a2 11 53 55 42  53 20 52 31 2c 52 31 2c  |1....SUBS R1,R1,|
00000630  23 31 0d 03 ac 11 42 47  54 20 78 63 6f 70 79 6c  |#1....BGT xcopyl|
00000640  6f 6f 70 0d 03 b6 17 41  44 44 20 52 33 2c 52 33  |oop....ADD R3,R3|
00000650  2c 23 28 33 32 30 2d 32  38 29 0d 03 c0 11 53 55  |,#(320-28)....SU|
00000660  42 53 20 52 32 2c 52 32  2c 23 31 0d 03 ca 11 42  |BS R2,R2,#1....B|
00000670  47 54 20 79 63 6f 70 79  6c 6f 6f 70 0d 03 d4 0e  |GT ycopyloop....|
00000680  4d 4f 56 20 50 43 2c 52  31 34 0d 03 de 05 3a 0d  |MOV PC,R14....:.|
00000690  03 e8 0f 2e 72 65 70 6c  61 63 65 63 6f 6c 0d 03  |....replacecol..|
000006a0  f2 11 4d 4f 56 20 52 33  2c 23 32 38 2a 33 36 0d  |..MOV R3,#28*36.|
000006b0  03 fc 0d 4d 4f 56 20 52  34 2c 23 30 0d 04 06 10  |...MOV R4,#0....|
000006c0  2e 72 65 70 6c 61 63 65  6c 6f 6f 70 0d 04 10 13  |.replaceloop....|
000006d0  4c 44 52 42 20 52 35 2c  5b 52 30 2c 52 34 5d 0d  |LDRB R5,[R0,R4].|
000006e0  04 1a 0d 43 4d 50 20 52  35 2c 52 32 0d 04 24 15  |...CMP R5,R2..$.|
000006f0  4c 44 52 45 51 42 20 52  35 2c 5b 52 31 2c 52 34  |LDREQB R5,[R1,R4|
00000700  5d 0d 04 2e 15 53 54 52  45 51 42 20 52 35 2c 5b  |]....STREQB R5,[|
00000710  52 30 2c 52 34 5d 0d 04  38 10 41 44 44 20 52 34  |R0,R4]..8.ADD R4|
00000720  2c 52 34 2c 23 31 0d 04  42 0d 43 4d 50 20 52 34  |,R4,#1..B.CMP R4|
00000730  2c 52 33 0d 04 4c 13 42  4c 54 20 72 65 70 6c 61  |,R3..L.BLT repla|
00000740  63 65 6c 6f 6f 70 0d 04  56 0e 4d 4f 56 20 50 43  |celoop..V.MOV PC|
00000750  2c 52 31 34 0d 04 60 05  3a 0d 04 6a 0d 2e 6d 61  |,R14..`.:..j..ma|
00000760  73 6b 70 6c 6f 74 0d 04  74 11 4c 44 52 20 52 34  |skplot..t.LDR R4|
00000770  2c 73 63 72 65 65 6e 0d  04 7e 16 41 44 44 20 52  |,screen..~.ADD R|
00000780  34 2c 52 34 2c 52 33 2c  4c 53 4c 23 36 0d 04 88  |4,R4,R3,LSL#6...|
00000790  16 41 44 44 20 52 34 2c  52 34 2c 52 33 2c 4c 53  |.ADD R4,R4,R3,LS|
000007a0  4c 23 38 0d 04 92 10 41  44 44 20 52 32 2c 52 34  |L#8....ADD R2,R4|
000007b0  2c 52 32 0d 04 9c 0e 4d  4f 56 20 52 33 2c 23 33  |,R2....MOV R3,#3|
000007c0  36 0d 04 a6 0e 2e 79 70  6c 6f 74 6c 6f 6f 70 0d  |6.....yplotloop.|
000007d0  04 b0 0d 4d 4f 56 20 52  34 2c 23 30 0d 04 ba 0e  |...MOV R4,#0....|
000007e0  2e 78 70 6c 6f 74 6c 6f  6f 70 0d 04 c4 13 4c 44  |.xplotloop....LD|
000007f0  52 42 20 52 35 2c 5b 52  30 2c 52 34 5d 0d 04 ce  |RB R5,[R0,R4]...|
00000800  0d 43 4d 50 20 52 35 2c  23 30 0d 04 d8 15 4c 44  |.CMP R5,#0....LD|
00000810  52 4e 45 42 20 52 35 2c  5b 52 31 2c 52 34 5d 0d  |RNEB R5,[R1,R4].|
00000820  04 e2 15 53 54 52 4e 45  42 20 52 35 2c 5b 52 32  |...STRNEB R5,[R2|
00000830  2c 52 34 5d 0d 04 ec 10  41 44 44 20 52 34 2c 52  |,R4]....ADD R4,R|
00000840  34 2c 23 31 0d 04 f6 0e  43 4d 50 20 52 34 2c 23  |4,#1....CMP R4,#|
00000850  32 38 0d 05 00 11 42 4c  54 20 78 70 6c 6f 74 6c  |28....BLT xplotl|
00000860  6f 6f 70 0d 05 0a 11 41  44 44 20 52 30 2c 52 30  |oop....ADD R0,R0|
00000870  2c 23 32 38 0d 05 14 11  41 44 44 20 52 31 2c 52  |,#28....ADD R1,R|
00000880  31 2c 23 32 38 0d 05 1e  12 41 44 44 20 52 32 2c  |1,#28....ADD R2,|
00000890  52 32 2c 23 33 32 30 0d  05 28 11 53 55 42 53 20  |R2,#320..(.SUBS |
000008a0  52 33 2c 52 33 2c 23 31  0d 05 32 11 42 47 54 20  |R3,R3,#1..2.BGT |
000008b0  79 70 6c 6f 74 6c 6f 6f  70 0d 05 3c 0e 4d 4f 56  |yplotloop..<.MOV|
000008c0  20 50 43 2c 52 31 34 0d  05 46 05 3a 0d 05 50 0f  | PC,R14..F.:..P.|
000008d0  2e 73 61 76 65 73 70 72  69 74 65 0d 05 5a 12 4c  |.savesprite..Z.L|
000008e0  44 52 20 52 31 31 2c 73  63 72 65 65 6e 0d 05 64  |DR R11,screen..d|
000008f0  0e 4d 4f 56 20 52 31 30  2c 52 30 0d 05 6e 0e 4d  |.MOV R10,R0..n.M|
00000900  4f 56 20 52 39 2c 23 33  32 0d 05 78 0e 2e 78 73  |OV R9,#32..x..xs|
00000910  61 76 65 6c 6f 6f 70 0d  05 82 0e 4d 4f 56 20 52  |aveloop....MOV R|
00000920  38 2c 23 34 30 0d 05 8c  0e 4d 4f 56 20 52 37 2c  |8,#40....MOV R7,|
00000930  52 31 31 0d 05 96 0e 2e  79 73 61 76 65 6c 6f 6f  |R11.....ysaveloo|
00000940  70 0d 05 a0 0d 4d 4f 56  20 52 30 2c 23 32 0d 05  |p....MOV R0,#2..|
00000950  aa 0e 4d 4f 56 20 52 31  2c 52 31 30 0d 05 b4 0d  |..MOV R1,R10....|
00000960  4d 4f 56 20 52 32 2c 52  37 0d 05 be 0d 4d 4f 56  |MOV R2,R7....MOV|
00000970  20 52 33 2c 23 34 0d 05  c8 11 53 57 49 20 22 4f  | R3,#4....SWI "O|
00000980  53 5f 47 42 50 42 22 0d  05 d2 12 41 44 44 20 52  |S_GBPB"....ADD R|
00000990  37 2c 52 37 2c 23 33 32  30 0d 05 dc 11 53 55 42  |7,R7,#320....SUB|
000009a0  53 20 52 38 2c 52 38 2c  23 31 0d 05 e6 11 42 47  |S R8,R8,#1....BG|
000009b0  54 20 79 73 61 76 65 6c  6f 6f 70 0d 05 f0 12 41  |T ysaveloop....A|
000009c0  44 44 20 52 31 31 2c 52  31 31 2c 23 34 0d 05 fa  |DD R11,R11,#4...|
000009d0  11 53 55 42 53 20 52 39  2c 52 39 2c 23 34 0d 06  |.SUBS R9,R9,#4..|
000009e0  04 11 42 47 54 20 78 73  61 76 65 6c 6f 6f 70 0d  |..BGT xsaveloop.|
000009f0  06 0e 0e 4d 4f 56 20 50  43 2c 52 31 34 0d 06 18  |...MOV PC,R14...|
00000a00  05 5d 0d 06 22 0b ed 20  70 61 73 73 25 0d 06 2c  |.]..".. pass%..,|
00000a10  2b c8 99 20 22 4f 53 5f  52 65 61 64 56 64 75 56  |+.. "OS_ReadVduV|
00000a20  61 72 69 61 62 6c 65 73  22 2c 76 62 75 66 66 65  |ariables",vbuffe|
00000a30  72 2c 73 63 72 65 65 6e  0d 06 36 05 e1 0d 06 40  |r,screen..6....@|
00000a40  04 0d ff                                          |...|
00000a43