Home » Recent acquisitions » Acorn ADFS disks » adfs_AcornUser_199604.adf » Features » Float/!Float/!RunImage

Float/!Float/!RunImage

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 » Recent acquisitions » Acorn ADFS disks » adfs_AcornUser_199604.adf » Features
Filename: Float/!Float/!RunImage
Read OK:
File size: 254A bytes
Load address: 0000
Exec address: 0000
File contents
    1REM
    2REM Program   Floating diacritic positioning
    3REM             also includes keyboard and SysFont setting function
    4REM
    5REM Version   1.22 7/2/96
    6REM
    7REM Copyright Clive K Semmens 1992/3/4/5/6
    8:
    9DIM a% 2560, b% 512, menu% 256, temp% 256, c% 2000, code% 32
   10:
   11PROCAssemble : PROCLists : PROCInitialize : PROCIconbar : PROCPoll
   12END
   13:
   14DEF PROCLists : NoofBuffs = 13 : DIM Buff(NoofBuffs)
   15:
   16  DATA CodeQ17, DeKern, Choices, Expand
   17  DATA Trinity0, Trinity1, Trinity2, Trinity3
   18  DATA Homerton0, Homerton1, Homerton2, Homerton3
   19  DATA Corpus0, Corpus2
   20:
   21  FOR N = 0 TO NoofBuffs : READ Data$
   22    SYS "OS_File",17,"<Float$Dir>.Data." + Data$ + "! " TO ,,,,BuffSize%
   23    DIM Temp BuffSize% : Buff(N) = Temp
   24    OSCLI "LOAD <Float$Dir>.Data." + Data$ + "! " + STR$~Buff(N)
   25  NEXT
   26:
   27  CodeQ17   = Buff(0) : DeKern    = Buff(1) : Choices = Buff(2)   : Expand = Buff(3)
   28  Trinity0  = Buff(4) : Trinity1  = Buff(5) : Trinity2  = Buff(6) : Trinity3  = Buff(7)
   29  Homerton0 = Buff(8) : Homerton1 = Buff(9) : Homerton2 = Buff(10) : Homerton3 = Buff(11)
   30  Corpus0   = Buff(12) : Corpus1  = Buff(12) : Corpus2  = Buff(13) : Corpus3  = Buff(13)
   31  InPtr = CodeQ17 : OutPtr = InPtr + 4 : Extent = OutPtr + 4 : InBuf = Extent + 4
   32  OutBuf = InBuf + 4 : PSwapStr = OutBuf + 4
   33:
   34ENDPROC
   35:
   36DEF PROCReleaseBuff
   37LOCAL ERROR
   38ON ERROR LOCAL IF ERR <> 449 PROCReport(1, REPORT$+", no. "+STR$ERR+" @ line "+STR$ERL):ENDPROC ELSE ENDPROC
   39SYS "Wimp_SlotSize",HIMEM-&8000,-1
   40ENDPROC
   41:
   42DEF PROCPoll
   43LOCAL m%, e%
   44m% = %110011
   45REPEAT
   46  SYS "Wimp_Poll", m%, a% TO e%
   47  CASE e% OF
   48    WHEN 2     : SYS "Wimp_OpenWindow", 0, a%
   49    WHEN 3     : SYS "Wimp_CloseWindow", 0, a%
   50    WHEN 6     : PROCClick
   51    WHEN 7     : PROCDragBox
   52    WHEN 9     : PROCSelection
   53    WHEN 17,18 : PROCMessage
   54  ENDCASE
   55UNTIL stop%
   56PROCReleaseBuff
   57SYS "OS_Byte",70,OldCountry
   58*FontRemove <Float$Dir>.
   59PROCUnCache
   60SYS "Wimp_CloseDown"
   61ENDPROC
   62:
   63DEF PROCClick
   64IF a%!8=2 AND a%!16=BarIcon% AND a%!12=-2 THEN PROCMenu
   65IF a%!8=4 AND a%!12=Window% THEN
   66  CASE a%!16 OF
   67    WHEN 1 : Ital% = NOT Ital%
   68    WHEN 2 : Bold% = NOT Bold%
   69    WHEN 3 : Font$ = "Trinity"
   70    WHEN 5 : Font$ = "Homerton"
   71    WHEN 6 : Font$ = "Corpus"
   72  ENDCASE
   73ENDIF
   74IF ((a%!8=1*16) OR (a%!8=4*16)) AND (a%!12=Window%) AND (a%!16=0) THEN PROCDrag
   75ENDPROC
   76:
   77DEF PROCDragBox
   78SYS "Wimp_GetPointerInfo",,temp%
   79IF temp%!12=-2 AND temp%!16=BarIcon% THEN ENDPROC
   80!a%=256        : a%!12=0        : a%!16=1
   81a%!20=temp%!12 : a%!24=temp%!16 : a%!28=!temp% : a%!32=temp%!4
   82a%!36=size%    : a%!40=type%    : $(a%+44)=FNleaf(output$) + CHR$(0)
   83SYS "Wimp_SendMessage",17,a%,temp%!12,temp%!16
   84OurRef%=a%!8
   85ENDPROC
   86:
   87DEF PROCSelection
   88SYS "Wimp_GetPointerInfo", 0, temp%
   89IF !a% = 1 PROCChangeKB(1,"AcornKB")
   90IF !a% = 2 PROCChangeKB(0,"RiscPC")
   91IF !a% = 3 PROCSaveChoices
   92IF !a% = 4 stop% = TRUE
   93IF temp%!8 = 1 PROCMenu
   94ENDPROC
   95:
   96DEF PROCChangeKB(a%,b$)
   97OSCLI("RMLoad <Float$Dir>.KeyBoards." + b$)
   98KB% = a%
   99*keyboard canada
  100ENDPROC
  101:
  102DEF PROCSaveChoices
  103?Choices = KB% + 48 : Choices?1 = 48 - Ital% : Choices?2 = 48 - Bold%
  104$(Choices + 3) = Font$
  105OSCLI "SAVE <Float$Dir>.Data.Choices! " + STR$~Choices + " +" + STR$~(LEN(Font$) + 4)
  106ENDPROC
  107:
  108DEF PROCMessage
  109CASE a%!16 OF
  110  WHEN 0 : stop%=TRUE
  111  WHEN 1 : PROCDataSave
  112  WHEN 2 : PROCDataSaveAck
  113  WHEN 3 : PROCDataLoad
  114  WHEN 4 : PROCDataLoadAck
  115ENDCASE
  116ENDPROC
  117:
  118DEF PROCDataSave
  119IF (a%!20 <> -2) OR (a%!24 <> BarIcon%) THEN ENDPROC
  120IF (a%!40 < 0) OR (a%!40 > &FFF) THEN ENDPROC
  121file$ = FNget(a%+44) : type% = a%!40 : size% = a%!36
  122SYS "XOS_ReadVarVal", "Wimp$Scrap", 0, -1 TO ,,e%
  123IF e% = 0 THEN
  124  PROCReport(1,"No Scrap directory!")
  125ELSE
  126  $(a%+44) = "<Wimp$Scrap>"+CHR$0
  127  a%!12 = a%!8 : a%!16 = 2 : !a% = 80
  128  SYS "Wimp_SendMessage",17,a%,a%!4
  129ENDIF
  130SYS "OS_Byte",138,0,24
  131ENDPROC
  132:
  133DEF PROCDataSaveAck
  134LOCAL ERROR
  135ON ERROR LOCAL PROCReport(1, "Float error - "+REPORT$+" ("+STR$ERL+","+STR$ERR+")"):ENDPROC
  136IF a%!12 <> OurRef% OurRef%=0 ELSE
  137  output$ = FNget(a%+44)
  138  PROCFloat(file$,output$)
  139  a%!12 = OurRef% : a%!16 = 3
  140  SYS "Wimp_SendMessage",17,a%,a%!20,a%!24
  141  OurRef%=a%!8
  142ENDIF
  143ENDPROC
  144:
  145DEF PROCDataLoad
  146LOCAL addr%
  147LOCAL ERROR
  148ON ERROR LOCAL PROCReport(1,"DataLoad error - "+REPORT$+" ("+STR$ERL+","+STR$ERR+")"):ENDPROC
  149:
  150IF a%!20 <> -2 OR a%!24 <> BarIcon% OR a%!40<0 THEN ENDPROC
  151IF a%!40 <> &2000 AND a%!40 > &FFF THEN ENDPROC
  152output$ = FNget(a%+44)
  153SYS "Wimp_GetPointerInfo",,temp%
  154temp%!4  = !temp% - 192
  155temp%!8  = 112
  156temp%!12 = !temp% + 192
  157temp%!16 = 316
  158temp%!20 = 0 : temp%!24 = 0 : temp%!28 = -1
  159!temp%  = Window%
  160SYS "Wimp_OpenWindow",,temp%
  161type% = a%!40 : size% = a%!36 : file$ = FNget(a%+44)
  162a%!12 = a%!8  : a%!16 = 4     : !a%  = 64
  163SYS "Wimp_SendMessage",17,a%,a%!4
  164!temp%=Window%
  165temp%!4=0
  166SYS "Wimp_GetIconState",,temp%
  167addr%=temp%+32
  168$(!addr%)="Sfile_"+STR$~type%
  169ENDPROC
  170:
  171DEF PROCDataLoadAck
  172IF a%!12=OurRef% THEN
  173  OurRef%=0 : !a%=Window%
  174  SYS "Wimp_CloseWindow",,a%
  175  SYS "Wimp_CreateMenu",,-1
  176ENDIF
  177ENDPROC
  178:
  179DEF PROCMenu
  180LOCAL item%
  181$menu% = "Float" : menu%?12=7   : menu%?13=2   : menu%?14=7
  182menu%?15=0       : menu%!16=200 : menu%!20=44  : menu%!24=0
  183PROCMenuItem(menu%+28,0,Info%,"Info")
  184PROCMenuItem(item%,KB%,-1,"AcornKB")
  185PROCMenuItem(item%,1-KB%,-1,"RiscPC")
  186PROCMenuItem(item%,0,-1,"Save Choices")
  187PROCMenuItem(item%,%10000000,-1,"Quit")
  188SYS "Wimp_CreateMenu", 0, menu%, (!a%)-100/2, 326
  189ENDPROC
  190:
  191DEF PROCMenuItem(a%, b%, c%, d$)
  192item% = a% : !item% = b% : item%!4 = c%
  193item%!8 = %111000000001001000000010001
  194$(item%+12) = d$ + CHR$(0) : item% += 24
  195ENDPROC
  196:
  197DEF PROCDrag
  198LOCAL ic%, minX%, minY%, maxX%, maxY% : ic% = a%!16
  199IF (a%!12=Window%) AND (ic%=0) THEN
  200  !temp%=Window% : temp%!4=ic%
  201  SYS "Wimp_GetIconState",,temp%
  202  minX%=temp%!8 : minY%=temp%!12 : maxX%=temp%!16 : maxY%=temp%!20
  203  SYS "Wimp_GetWindowState",,temp%
  204  minX%=temp%!4+minX% : maxX%=temp%!4+maxX% : minY%=temp%!16+minY% : maxY%=temp%!16+maxY%
  205  !temp%=0 : temp%!4=5
  206  temp%!8=minX% : temp%!12=minY% : temp%!16=maxX% : temp%!20=maxY%
  207  temp%!24=0 : temp%!28=0 : temp%!32=32000 : temp%!36=32000
  208  SYS "Wimp_DragBox",,temp%
  209ENDIF
  210ENDPROC
  211:
  212DEF PROCReport(f%, text$)
  213!b% = 1 : $(b%+4) = text$+CHR$(0)
  214SYS "Wimp_ReportError", b%, f%, "Float"
  215ENDPROC
  216:
  217DEF PROCIconbar
  218!a% = -1 : a%!4 = 0 : a%!8 = -4 : a%!12 = 68
  219a%!16=68  : a%!20 = &2002 : $(a%+24) = "!Float"
  220SYS "Wimp_CreateIcon",,a% TO BarIcon%
  221ENDPROC
  222:
  223DEF FNget(ptr%)
  224LOCAL p$ : p$ = CHR$(?ptr%)
  225WHILE ptr%?1 < 128 AND ptr%?1 > 31 AND ptr%?1 <> ASC("<")
  226  ptr% += 1 : p$ += CHR$(?ptr%)
  227ENDWHILE
  228IF ptr%?1 = ASC("<") p$ += "WimpScrap"
  229=p$
  230:
  231DEF FNleaf(f$)
  232WHILE INSTR(f$,".") : f$ = MID$(f$,INSTR(f$,".")+1) : ENDWHILE
  233=f$
  234:
  235DEF FNpath(f$)
  236LOCAL t$ : t$ = f$
  237WHILE INSTR(t$,".")
  238  t$=MID$(t$,INSTR(t$,".")+1)
  239ENDWHILE
  240IF f$ = t$ = f$
  241= LEFT$(f$,LENf$ - LENt$)
  242:
  243DEF PROCInitialize
  244LOCAL Wimp%, task%, next%
  245:
  246Wimp% = 2 : task%=&4B534154
  247SYS "Wimp_Initialise", Wimp%*100, task%, "Float" TO Wimp%
  248PROCUnCache
  249Font$ = $(Choices + 3)
  250KB% = ?Choices - 48 : Ital% = 48 - Choices?1 : Bold% = 48 - Choices?2
  251OSCLI("RMLoad <Float$Dir>.Inter")
  252IF KB% = 1 OSCLI("RMLoad <Float$Dir>.KeyBoards.AcornKB") ELSE OSCLI("RMLoad <Float$Dir>.KeyBoards.RiscPC")
  253SYS "OS_Byte",70,127 TO ,OldCountry
  254*country canada
  255OSCLI("<Float$Dir>.SysFontF")
  256IF Wimp%<200 THEN PROCReport(1, "Float needs a newer version of the Window Manager")
  257ON ERROR PROCError
  258:
  259output$ = "Text"
  260size%=0 : type%=0 : Buff1 = 0 : Buff2 = 0 : BuffSize = 0
  261stop%=FALSE
  262SYS "Wimp_OpenTemplate", 0, "<Float$Dir>.Templates"
  263SYS "Wimp_LoadTemplate",, a%,c%,c%+2000,-1, "saveas", 0 TO ,,next%
  264SYS "Wimp_CreateWindow",, a% TO Window%
  265SYS "Wimp_LoadTemplate",, a%, next%, c%+2000, -1, "info", 0 TO ,,next%
  266SYS "Wimp_CreateWindow",, a% TO Info%
  267SYS "Wimp_CloseTemplate"
  268PROCButton(1,Ital%) : PROCButton(2,Bold%)
  269PROCButton(3,Font$ = "Trinity") : PROCButton(5,Font$ = "Homerton") : PROCButton(6,Font$ = "Corpus")
  270ENDPROC
  271:
  272DEF PROCUnCache
  273CALL(LoseFonts)
  274REM FOR X = 1 TO 8192 : SYS "Font_LoseFont",X : NEXT
  275SYS "Font_CacheAddr" TO ,,FontCache%
  276*ChangeDynamicArea -FontSize 0k
  277OSCLI("ChangeDynamicArea -FontSize " + STR$FontCache%)
  278Mode% = MODE : SYS "Wimp_SetMode",Mode%
  279ENDPROC
  280:
  281DEF PROCAssemble
  282FOR pass = 0 TO 3 STEP 3 : P% = code%
  283[ OPT 0
  284.LoseFonts    MOV   R0,#8192
  285.Loop         SWI   "Font_LoseFont"
  286              SUBS  R0,R0,#1
  287              BNE   Loop
  288              MOV   PC,R14
  289]
  290NEXT
  291ENDPROC
  292:
  293DEF PROCButton(button%,state%)
  294!temp% = Window% : temp%!4 = button% : temp%!12 = &200000
  295temp%!8 = &200000 * state% * -1
  296SYS "Wimp_SetIconState",,temp%
  297ENDPROC
  298:
  299DEF PROCError
  300IF ERR < 0 OR ERR > 127 THEN
  301  PROCReport(1,"Float Fatal error - "+REPORT$+" ("+STR$ERL+","+STR$ERR+")")
  302  PROCReleaseBuff
  303  SYS "Wimp_CloseDown":END
  304ELSE
  305  PROCReport(1,"Float error - "+REPORT$+" ("+STR$ERL+","+STR$ERR+")")
  306  PROCReleaseBuff
  307  SYS "Wimp_CloseDown":END
  308ENDIF
  309ENDPROC
  310:
  311DEF PROCLoad(in$)
  312SYS "OS_File",17,in$ TO ,,,,BuffSize
  313SYS "Wimp_SlotSize",-1,-1 TO ,,Free
  314!Extent = BuffSize
  315BuffSize += 2000 : Buff2 = 0
  316IF Free < BuffSize*3 PROCReport(1,"Unable to claim sufficient memory") : ENDPROC
  317SYS "Wimp_SlotSize",HIMEM + BuffSize*3 , -1
  318Buff1 = HIMEM : Buff2 = (Buff1 + BuffSize*1.5 + 3) AND &FFFFFFFC
  319OSCLI "LOAD " + in$ + " " + STR$~Buff2
  320ENDPROC
  321:
  322DEF PROCSave(out$)
  323IF !OutPtr = 0 ENDPROC
  324SYS "OS_File",10,out$,&fff,,Buff1,!OutPtr
  325ENDPROC
  326:
  327DEF PROCFloat(in$,out$)
  328  PROCLoad(in$)
  329  IF Buff2 <> 0 PROCKern : PROCSave(out$)
  330  PROCReleaseBuff
  331ENDPROC
  332:
  333DEF PROCKern
  334  FontS$ = Font$ + STR$(-2*Bold% - Ital%)
  335  !InBuf = Buff2 : !OutBuf = Buff1
  336  !InPtr = 0 : !OutPtr = 0 : A% = DeKern
  337  CALL(PSwapStr)
  338  !InBuf = Buff1 : !OutBuf = Buff2 : !Extent = !OutPtr
  339  !InPtr = 0 : !OutPtr = 0 : A% = EVAL(FontS$)
  340  CALL(PSwapStr)
  341  !InBuf = Buff2 : !OutBuf = Buff1 : !Extent = !OutPtr
  342  !InPtr = 0 : !OutPtr = 0 : A% = Expand
  343  CALL(PSwapStr)
  344  !OutPtr += Buff1
  345ENDPROC
�
.� Program   Floating diacritic positioning
E�             also includes keyboard and SysFont setting function
�
� Version   1.22 7/2/96
�
,� Copyright Clive K Semmens 1992/3/4/5/6
:
	>� a% 2560, b% 512, menu% 256, temp% 256, c% 2000, code% 32

:
7�Assemble : �Lists : �Initialize : �Iconbar : �Poll
�

:
1� �Lists : NoofBuffs = 13 : � Buff(NoofBuffs)
:
(  � CodeQ17, DeKern, Choices, Expand
.  � Trinity0, Trinity1, Trinity2, Trinity3
2  � Homerton0, Homerton1, Homerton2, Homerton3
  � Corpus0, Corpus2
:
#  � N = 0 � NoofBuffs : � Data$
J    ș "OS_File",17,"<Float$Dir>.Data." + Data$ + "! " � ,,,,BuffSize%
)    � Temp BuffSize% : Buff(N) = Temp
=    � "LOAD <Float$Dir>.Data." + Data$ + "! " + �~Buff(N)
  �
:
X  CodeQ17   = Buff(0) : DeKern    = Buff(1) : Choices = Buff(2)   : Expand = Buff(3)
[  Trinity0  = Buff(4) : Trinity1  = Buff(5) : Trinity2  = Buff(6) : Trinity3  = Buff(7)
]  Homerton0 = Buff(8) : Homerton1 = Buff(9) : Homerton2 = Buff(10) : Homerton3 = Buff(11)
\  Corpus0   = Buff(12) : Corpus1  = Buff(12) : Corpus2  = Buff(13) : Corpus3  = Buff(13)
U  InPtr = CodeQ17 : OutPtr = InPtr + 4 : Extent = OutPtr + 4 : InBuf = Extent + 4
 0  OutBuf = InBuf + 4 : PSwapStr = OutBuf + 4
!:
"�
#:
$� �ReleaseBuff
%� �
&C� � � � � <> 449 �Report(1, �$+", no. "+ß+" @ line "+Þ):� � �
'!ș "Wimp_SlotSize",�-&8000,-1
(�
):
*� �Poll
+� m%, e%
,m% = %110011
-�
.!  ș "Wimp_Poll", m%, a% � e%
/
  Ȏ e% �
0-    � 2     : ș "Wimp_OpenWindow", 0, a%
1.    � 3     : ș "Wimp_CloseWindow", 0, a%
2    � 6     : �Click
3    � 7     : �DragBox
4    � 9     : �Selection
5    � 17,18 : �Message
6  �
7� stop%
8�ReleaseBuff
9ș "OS_Byte",70,OldCountry
:*FontRemove <Float$Dir>.
;�UnCache
<ș "Wimp_CloseDown"
=�
>:
?� �Click
@0� a%!8=2 � a%!16=BarIcon% � a%!12=-2 � �Menu
A� a%!8=4 � a%!12=Window% �
B  Ȏ a%!16 �
C    � 1 : Ital% = � Ital%
D    � 2 : Bold% = � Bold%
E    � 3 : Font$ = "Trinity"
F     � 5 : Font$ = "Homerton"
G    � 6 : Font$ = "Corpus"
H  �
I�
JG� ((a%!8=1*16) � (a%!8=4*16)) � (a%!12=Window%) � (a%!16=0) � �Drag
K�
L:
M� �DragBox
N#ș "Wimp_GetPointerInfo",,temp%
O)� temp%!12=-2 � temp%!16=BarIcon% � �
P-!a%=256        : a%!12=0        : a%!16=1
QBa%!20=temp%!12 : a%!24=temp%!16 : a%!28=!temp% : a%!32=temp%!4
RDa%!36=size%    : a%!40=type%    : $(a%+44)=�leaf(output$) + �(0)
S1ș "Wimp_SendMessage",17,a%,temp%!12,temp%!16
TOurRef%=a%!8
U�
V:
W� �Selection
X&ș "Wimp_GetPointerInfo", 0, temp%
Y$� !a% = 1 �ChangeKB(1,"AcornKB")
Z#� !a% = 2 �ChangeKB(0,"RiscPC")
[� !a% = 3 �SaveChoices
\� !a% = 4 stop% = �
]� temp%!8 = 1 �Menu
^�
_:
`� �ChangeKB(a%,b$)
a+�("RMLoad <Float$Dir>.KeyBoards." + b$)
bKB% = a%
c*keyboard canada
d�
e:
f� �SaveChoices
gI?Choices = KB% + 48 : Choices?1 = 48 - Ital% : Choices?2 = 48 - Bold%
h$(Choices + 3) = Font$
iM� "SAVE <Float$Dir>.Data.Choices! " + �~Choices + " +" + �~(�(Font$) + 4)
j�
k:
l� �Message
mȎ a%!16 �
n  � 0 : stop%=�
o  � 1 : �DataSave
p  � 2 : �DataSaveAck
q  � 3 : �DataLoad
r  � 4 : �DataLoadAck
s�
t�
u:
v� �DataSave
w-� (a%!20 <> -2) � (a%!24 <> BarIcon%) � �
x&� (a%!40 < 0) � (a%!40 > &FFF) � �
y7file$ = �get(a%+44) : type% = a%!40 : size% = a%!36
z3ș "XOS_ReadVarVal", "Wimp$Scrap", 0, -1 � ,,e%
{� e% = 0 �
|&  �Report(1,"No Scrap directory!")
}�
~"  $(a%+44) = "<Wimp$Scrap>"+�0
)  a%!12 = a%!8 : a%!16 = 2 : !a% = 80
�&  ș "Wimp_SendMessage",17,a%,a%!4
��
�ș "OS_Byte",138,0,24
��
�:
�� �DataSaveAck
�� �
�>� � � �Report(1, "Float error - "+�$+" ("+Þ+","+ß+")"):�
�"� a%!12 <> OurRef% OurRef%=0 �
�  output$ = �get(a%+44)
�  �Float(file$,output$)
�!  a%!12 = OurRef% : a%!16 = 3
�-  ș "Wimp_SendMessage",17,a%,a%!20,a%!24
�  OurRef%=a%!8
��
��
�:
�� �DataLoad
�� addr%
�� �
�@� � � �Report(1,"DataLoad error - "+�$+" ("+Þ+","+ß+")"):�
�:
�3� a%!20 <> -2 � a%!24 <> BarIcon% � a%!40<0 � �
�'� a%!40 <> &2000 � a%!40 > &FFF � �
�output$ = �get(a%+44)
�#ș "Wimp_GetPointerInfo",,temp%
�temp%!4  = !temp% - 192
�temp%!8  = 112
�temp%!12 = !temp% + 192
�temp%!16 = 316
�/temp%!20 = 0 : temp%!24 = 0 : temp%!28 = -1
�!temp%  = Window%
�ș "Wimp_OpenWindow",,temp%
�7type% = a%!40 : size% = a%!36 : file$ = �get(a%+44)
�-a%!12 = a%!8  : a%!16 = 4     : !a%  = 64
�$ș "Wimp_SendMessage",17,a%,a%!4
�!temp%=Window%
�
temp%!4=0
�!ș "Wimp_GetIconState",,temp%
�addr%=temp%+32
�$(!addr%)="Sfile_"+�~type%
��
�:
�� �DataLoadAck
�� a%!12=OurRef% �
�  OurRef%=0 : !a%=Window%
�  ș "Wimp_CloseWindow",,a%
�  ș "Wimp_CreateMenu",,-1
��
��
�:
�� �Menu
�� item%
�?$menu% = "Float" : menu%?12=7   : menu%?13=2   : menu%?14=7
�?menu%?15=0       : menu%!16=200 : menu%!20=44  : menu%!24=0
�&�MenuItem(menu%+28,0,Info%,"Info")
�%�MenuItem(item%,KB%,-1,"AcornKB")
�&�MenuItem(item%,1-KB%,-1,"RiscPC")
�(�MenuItem(item%,0,-1,"Save Choices")
�(�MenuItem(item%,%10000000,-1,"Quit")
�4ș "Wimp_CreateMenu", 0, menu%, (!a%)-100/2, 326
��
�:
�� �MenuItem(a%, b%, c%, d$)
�+item% = a% : !item% = b% : item%!4 = c%
�*item%!8 = %111000000001001000000010001
�)$(item%+12) = d$ + �(0) : item% += 24
��
�:
�� �Drag
�3� ic%, minX%, minY%, maxX%, maxY% : ic% = a%!16
�!� (a%!12=Window%) � (ic%=0) �
�"  !temp%=Window% : temp%!4=ic%
�#  ș "Wimp_GetIconState",,temp%
�F  minX%=temp%!8 : minY%=temp%!12 : maxX%=temp%!16 : maxY%=temp%!20
�%  ș "Wimp_GetWindowState",,temp%
�]  minX%=temp%!4+minX% : maxX%=temp%!4+maxX% : minY%=temp%!16+minY% : maxY%=temp%!16+maxY%
�  !temp%=0 : temp%!4=5
�F  temp%!8=minX% : temp%!12=minY% : temp%!16=maxX% : temp%!20=maxY%
�?  temp%!24=0 : temp%!28=0 : temp%!32=32000 : temp%!36=32000
�  ș "Wimp_DragBox",,temp%
��
��
�:
�� �Report(f%, text$)
�"!b% = 1 : $(b%+4) = text$+�(0)
�*ș "Wimp_ReportError", b%, f%, "Float"
��
�:
�� �Iconbar
�0!a% = -1 : a%!4 = 0 : a%!8 = -4 : a%!12 = 68
�3a%!16=68  : a%!20 = &2002 : $(a%+24) = "!Float"
�'ș "Wimp_CreateIcon",,a% � BarIcon%
��
�:
�� �get(ptr%)
�� p$ : p$ = �(?ptr%)
�4ȕ ptr%?1 < 128 � ptr%?1 > 31 � ptr%?1 <> �("<")
�   ptr% += 1 : p$ += �(?ptr%)
��
�'� ptr%?1 = �("<") p$ += "WimpScrap"
�=p$
�:
�� �leaf(f$)
�*ȕ �f$,".") : f$ = �f$,�f$,".")+1) : �
�=f$
�:
�� �path(f$)
�� t$ : t$ = f$
�ȕ �t$,".")
�  t$=�t$,�t$,".")+1)
��
�� f$ = t$ = f$
�= �f$,�f$ - �t$)
�:
�� �Initialize
�� Wimp%, task%, next%
�:
�Wimp% = 2 : task%=&4B534154
�;ș "Wimp_Initialise", Wimp%*100, task%, "Float" � Wimp%
��UnCache
�Font$ = $(Choices + 3)
�IKB% = ?Choices - 48 : Ital% = 48 - Choices?1 : Bold% = 48 - Choices?2
�!�("RMLoad <Float$Dir>.Inter")
�b� KB% = 1 �("RMLoad <Float$Dir>.KeyBoards.AcornKB") � �("RMLoad <Float$Dir>.KeyBoards.RiscPC")
�%ș "OS_Byte",70,127 � ,OldCountry
�*country canada
��("<Float$Dir>.SysFontF")
Q� Wimp%<200 � �Report(1, "Float needs a newer version of the Window Manager")
� � �Error
:
output$ = "Text"
<size%=0 : type%=0 : Buff1 = 0 : Buff2 = 0 : BuffSize = 0
stop%=�
6ș "Wimp_OpenTemplate", 0, "<Float$Dir>.Templates"
Dș "Wimp_LoadTemplate",, a%,c%,c%+2000,-1, "saveas", 0 � ,,next%
)ș "Wimp_CreateWindow",, a% � Window%
	Hș "Wimp_LoadTemplate",, a%, next%, c%+2000, -1, "info", 0 � ,,next%

'ș "Wimp_CreateWindow",, a% � Info%
ș "Wimp_CloseTemplate"
'�Button(1,Ital%) : �Button(2,Bold%)

^�Button(3,Font$ = "Trinity") : �Button(5,Font$ = "Homerton") : �Button(6,Font$ = "Corpus")
�
:
� �UnCache
�(LoseFonts)
6� FOR X = 1 TO 8192 : SYS "Font_LoseFont",X : NEXT
&ș "Font_CacheAddr" � ,,FontCache%
#*ChangeDynamicArea -FontSize 0k
3�("ChangeDynamicArea -FontSize " + �FontCache%)
'Mode% = � : ș "Wimp_SetMode",Mode%
�
:
� �Assemble
#� pass = 0 � 3 � 3 : P% = code%
[ OPT 0
 .LoseFonts    MOV   R0,#8192
'.Loop         SWI   "Font_LoseFont"
               SUBS  R0,R0,#1
              BNE   Loop
               MOV   PC,R14
!]
"�
#�
$:
%� �Button(button%,state%)
&=!temp% = Window% : temp%!4 = button% : temp%!12 = &200000
'#temp%!8 = &200000 * state% * -1
(!ș "Wimp_SetIconState",,temp%
)�
*:
+� �Error
,� � < 0 � � > 127 �
-=  �Report(1,"Float Fatal error - "+�$+" ("+Þ+","+ß+")")
.  �ReleaseBuff
/  ș "Wimp_CloseDown":�
0�
17  �Report(1,"Float error - "+�$+" ("+Þ+","+ß+")")
2  �ReleaseBuff
3  ș "Wimp_CloseDown":�
4�
5�
6:
7� �Load(in$)
8&ș "OS_File",17,in$ � ,,,,BuffSize
9%ș "Wimp_SlotSize",-1,-1 � ,,Free
:!Extent = BuffSize
; BuffSize += 2000 : Buff2 = 0
<J� Free < BuffSize*3 �Report(1,"Unable to claim sufficient memory") : �
=*ș "Wimp_SlotSize",� + BuffSize*3 , -1
>>Buff1 = � : Buff2 = (Buff1 + BuffSize*1.5 + 3) � &FFFFFFFC
?#� "LOAD " + in$ + " " + �~Buff2
@�
A:
B� �Save(out$)
C� !OutPtr = 0 �
D,ș "OS_File",10,out$,&fff,,Buff1,!OutPtr
E�
F:
G� �Float(in$,out$)
H  �Load(in$)
I&  � Buff2 <> 0 �Kern : �Save(out$)
J  �ReleaseBuff
K�
L:
M� �Kern
N*  FontS$ = Font$ + �(-2*Bold% - Ital%)
O&  !InBuf = Buff2 : !OutBuf = Buff1
P,  !InPtr = 0 : !OutPtr = 0 : A% = DeKern
Q  �(PSwapStr)
R:  !InBuf = Buff1 : !OutBuf = Buff2 : !Extent = !OutPtr
S/  !InPtr = 0 : !OutPtr = 0 : A% = �(FontS$)
T  �(PSwapStr)
U:  !InBuf = Buff2 : !OutBuf = Buff1 : !Extent = !OutPtr
V,  !InPtr = 0 : !OutPtr = 0 : A% = Expand
W  �(PSwapStr)
X  !OutPtr += Buff1
Y�
�
00000000  0d 00 01 05 f4 0d 00 02  2e f4 20 50 72 6f 67 72  |.......... Progr|
00000010  61 6d 20 20 20 46 6c 6f  61 74 69 6e 67 20 64 69  |am   Floating di|
00000020  61 63 72 69 74 69 63 20  70 6f 73 69 74 69 6f 6e  |acritic position|
00000030  69 6e 67 0d 00 03 45 f4  20 20 20 20 20 20 20 20  |ing...E.        |
00000040  20 20 20 20 20 61 6c 73  6f 20 69 6e 63 6c 75 64  |     also includ|
00000050  65 73 20 6b 65 79 62 6f  61 72 64 20 61 6e 64 20  |es keyboard and |
00000060  53 79 73 46 6f 6e 74 20  73 65 74 74 69 6e 67 20  |SysFont setting |
00000070  66 75 6e 63 74 69 6f 6e  0d 00 04 05 f4 0d 00 05  |function........|
00000080  1b f4 20 56 65 72 73 69  6f 6e 20 20 20 31 2e 32  |.. Version   1.2|
00000090  32 20 37 2f 32 2f 39 36  0d 00 06 05 f4 0d 00 07  |2 7/2/96........|
000000a0  2c f4 20 43 6f 70 79 72  69 67 68 74 20 43 6c 69  |,. Copyright Cli|
000000b0  76 65 20 4b 20 53 65 6d  6d 65 6e 73 20 31 39 39  |ve K Semmens 199|
000000c0  32 2f 33 2f 34 2f 35 2f  36 0d 00 08 05 3a 0d 00  |2/3/4/5/6....:..|
000000d0  09 3e de 20 61 25 20 32  35 36 30 2c 20 62 25 20  |.>. a% 2560, b% |
000000e0  35 31 32 2c 20 6d 65 6e  75 25 20 32 35 36 2c 20  |512, menu% 256, |
000000f0  74 65 6d 70 25 20 32 35  36 2c 20 63 25 20 32 30  |temp% 256, c% 20|
00000100  30 30 2c 20 63 6f 64 65  25 20 33 32 0d 00 0a 05  |00, code% 32....|
00000110  3a 0d 00 0b 37 f2 41 73  73 65 6d 62 6c 65 20 3a  |:...7.Assemble :|
00000120  20 f2 4c 69 73 74 73 20  3a 20 f2 49 6e 69 74 69  | .Lists : .Initi|
00000130  61 6c 69 7a 65 20 3a 20  f2 49 63 6f 6e 62 61 72  |alize : .Iconbar|
00000140  20 3a 20 f2 50 6f 6c 6c  0d 00 0c 05 e0 0d 00 0d  | : .Poll........|
00000150  05 3a 0d 00 0e 31 dd 20  f2 4c 69 73 74 73 20 3a  |.:...1. .Lists :|
00000160  20 4e 6f 6f 66 42 75 66  66 73 20 3d 20 31 33 20  | NoofBuffs = 13 |
00000170  3a 20 de 20 42 75 66 66  28 4e 6f 6f 66 42 75 66  |: . Buff(NoofBuf|
00000180  66 73 29 0d 00 0f 05 3a  0d 00 10 28 20 20 dc 20  |fs)....:...(  . |
00000190  43 6f 64 65 51 31 37 2c  20 44 65 4b 65 72 6e 2c  |CodeQ17, DeKern,|
000001a0  20 43 68 6f 69 63 65 73  2c 20 45 78 70 61 6e 64  | Choices, Expand|
000001b0  0d 00 11 2e 20 20 dc 20  54 72 69 6e 69 74 79 30  |....  . Trinity0|
000001c0  2c 20 54 72 69 6e 69 74  79 31 2c 20 54 72 69 6e  |, Trinity1, Trin|
000001d0  69 74 79 32 2c 20 54 72  69 6e 69 74 79 33 0d 00  |ity2, Trinity3..|
000001e0  12 32 20 20 dc 20 48 6f  6d 65 72 74 6f 6e 30 2c  |.2  . Homerton0,|
000001f0  20 48 6f 6d 65 72 74 6f  6e 31 2c 20 48 6f 6d 65  | Homerton1, Home|
00000200  72 74 6f 6e 32 2c 20 48  6f 6d 65 72 74 6f 6e 33  |rton2, Homerton3|
00000210  0d 00 13 18 20 20 dc 20  43 6f 72 70 75 73 30 2c  |....  . Corpus0,|
00000220  20 43 6f 72 70 75 73 32  0d 00 14 05 3a 0d 00 15  | Corpus2....:...|
00000230  23 20 20 e3 20 4e 20 3d  20 30 20 b8 20 4e 6f 6f  |#  . N = 0 . Noo|
00000240  66 42 75 66 66 73 20 3a  20 f3 20 44 61 74 61 24  |fBuffs : . Data$|
00000250  0d 00 16 4a 20 20 20 20  c8 99 20 22 4f 53 5f 46  |...J    .. "OS_F|
00000260  69 6c 65 22 2c 31 37 2c  22 3c 46 6c 6f 61 74 24  |ile",17,"<Float$|
00000270  44 69 72 3e 2e 44 61 74  61 2e 22 20 2b 20 44 61  |Dir>.Data." + Da|
00000280  74 61 24 20 2b 20 22 21  20 22 20 b8 20 2c 2c 2c  |ta$ + "! " . ,,,|
00000290  2c 42 75 66 66 53 69 7a  65 25 0d 00 17 29 20 20  |,BuffSize%...)  |
000002a0  20 20 de 20 54 65 6d 70  20 42 75 66 66 53 69 7a  |  . Temp BuffSiz|
000002b0  65 25 20 3a 20 42 75 66  66 28 4e 29 20 3d 20 54  |e% : Buff(N) = T|
000002c0  65 6d 70 0d 00 18 3d 20  20 20 20 ff 20 22 4c 4f  |emp...=    . "LO|
000002d0  41 44 20 3c 46 6c 6f 61  74 24 44 69 72 3e 2e 44  |AD <Float$Dir>.D|
000002e0  61 74 61 2e 22 20 2b 20  44 61 74 61 24 20 2b 20  |ata." + Data$ + |
000002f0  22 21 20 22 20 2b 20 c3  7e 42 75 66 66 28 4e 29  |"! " + .~Buff(N)|
00000300  0d 00 19 07 20 20 ed 0d  00 1a 05 3a 0d 00 1b 58  |....  .....:...X|
00000310  20 20 43 6f 64 65 51 31  37 20 20 20 3d 20 42 75  |  CodeQ17   = Bu|
00000320  66 66 28 30 29 20 3a 20  44 65 4b 65 72 6e 20 20  |ff(0) : DeKern  |
00000330  20 20 3d 20 42 75 66 66  28 31 29 20 3a 20 43 68  |  = Buff(1) : Ch|
00000340  6f 69 63 65 73 20 3d 20  42 75 66 66 28 32 29 20  |oices = Buff(2) |
00000350  20 20 3a 20 45 78 70 61  6e 64 20 3d 20 42 75 66  |  : Expand = Buf|
00000360  66 28 33 29 0d 00 1c 5b  20 20 54 72 69 6e 69 74  |f(3)...[  Trinit|
00000370  79 30 20 20 3d 20 42 75  66 66 28 34 29 20 3a 20  |y0  = Buff(4) : |
00000380  54 72 69 6e 69 74 79 31  20 20 3d 20 42 75 66 66  |Trinity1  = Buff|
00000390  28 35 29 20 3a 20 54 72  69 6e 69 74 79 32 20 20  |(5) : Trinity2  |
000003a0  3d 20 42 75 66 66 28 36  29 20 3a 20 54 72 69 6e  |= Buff(6) : Trin|
000003b0  69 74 79 33 20 20 3d 20  42 75 66 66 28 37 29 0d  |ity3  = Buff(7).|
000003c0  00 1d 5d 20 20 48 6f 6d  65 72 74 6f 6e 30 20 3d  |..]  Homerton0 =|
000003d0  20 42 75 66 66 28 38 29  20 3a 20 48 6f 6d 65 72  | Buff(8) : Homer|
000003e0  74 6f 6e 31 20 3d 20 42  75 66 66 28 39 29 20 3a  |ton1 = Buff(9) :|
000003f0  20 48 6f 6d 65 72 74 6f  6e 32 20 3d 20 42 75 66  | Homerton2 = Buf|
00000400  66 28 31 30 29 20 3a 20  48 6f 6d 65 72 74 6f 6e  |f(10) : Homerton|
00000410  33 20 3d 20 42 75 66 66  28 31 31 29 0d 00 1e 5c  |3 = Buff(11)...\|
00000420  20 20 43 6f 72 70 75 73  30 20 20 20 3d 20 42 75  |  Corpus0   = Bu|
00000430  66 66 28 31 32 29 20 3a  20 43 6f 72 70 75 73 31  |ff(12) : Corpus1|
00000440  20 20 3d 20 42 75 66 66  28 31 32 29 20 3a 20 43  |  = Buff(12) : C|
00000450  6f 72 70 75 73 32 20 20  3d 20 42 75 66 66 28 31  |orpus2  = Buff(1|
00000460  33 29 20 3a 20 43 6f 72  70 75 73 33 20 20 3d 20  |3) : Corpus3  = |
00000470  42 75 66 66 28 31 33 29  0d 00 1f 55 20 20 49 6e  |Buff(13)...U  In|
00000480  50 74 72 20 3d 20 43 6f  64 65 51 31 37 20 3a 20  |Ptr = CodeQ17 : |
00000490  4f 75 74 50 74 72 20 3d  20 49 6e 50 74 72 20 2b  |OutPtr = InPtr +|
000004a0  20 34 20 3a 20 45 78 74  65 6e 74 20 3d 20 4f 75  | 4 : Extent = Ou|
000004b0  74 50 74 72 20 2b 20 34  20 3a 20 49 6e 42 75 66  |tPtr + 4 : InBuf|
000004c0  20 3d 20 45 78 74 65 6e  74 20 2b 20 34 0d 00 20  | = Extent + 4.. |
000004d0  30 20 20 4f 75 74 42 75  66 20 3d 20 49 6e 42 75  |0  OutBuf = InBu|
000004e0  66 20 2b 20 34 20 3a 20  50 53 77 61 70 53 74 72  |f + 4 : PSwapStr|
000004f0  20 3d 20 4f 75 74 42 75  66 20 2b 20 34 0d 00 21  | = OutBuf + 4..!|
00000500  05 3a 0d 00 22 05 e1 0d  00 23 05 3a 0d 00 24 12  |.:.."....#.:..$.|
00000510  dd 20 f2 52 65 6c 65 61  73 65 42 75 66 66 0d 00  |. .ReleaseBuff..|
00000520  25 07 ea 20 85 0d 00 26  43 ee 20 85 20 ea 20 e7  |%.. ...&C. . . .|
00000530  20 9f 20 3c 3e 20 34 34  39 20 f2 52 65 70 6f 72  | . <> 449 .Repor|
00000540  74 28 31 2c 20 f6 24 2b  22 2c 20 6e 6f 2e 20 22  |t(1, .$+", no. "|
00000550  2b c3 9f 2b 22 20 40 20  6c 69 6e 65 20 22 2b c3  |+..+" @ line "+.|
00000560  9e 29 3a e1 20 8b 20 e1  0d 00 27 21 c8 99 20 22  |.):. . ...'!.. "|
00000570  57 69 6d 70 5f 53 6c 6f  74 53 69 7a 65 22 2c 93  |Wimp_SlotSize",.|
00000580  2d 26 38 30 30 30 2c 2d  31 0d 00 28 05 e1 0d 00  |-&8000,-1..(....|
00000590  29 05 3a 0d 00 2a 0b dd  20 f2 50 6f 6c 6c 0d 00  |).:..*.. .Poll..|
000005a0  2b 0c ea 20 6d 25 2c 20  65 25 0d 00 2c 10 6d 25  |+.. m%, e%..,.m%|
000005b0  20 3d 20 25 31 31 30 30  31 31 0d 00 2d 05 f5 0d  | = %110011..-...|
000005c0  00 2e 21 20 20 c8 99 20  22 57 69 6d 70 5f 50 6f  |..!  .. "Wimp_Po|
000005d0  6c 6c 22 2c 20 6d 25 2c  20 61 25 20 b8 20 65 25  |ll", m%, a% . e%|
000005e0  0d 00 2f 0d 20 20 c8 8e  20 65 25 20 ca 0d 00 30  |../.  .. e% ...0|
000005f0  2d 20 20 20 20 c9 20 32  20 20 20 20 20 3a 20 c8  |-    . 2     : .|
00000600  99 20 22 57 69 6d 70 5f  4f 70 65 6e 57 69 6e 64  |. "Wimp_OpenWind|
00000610  6f 77 22 2c 20 30 2c 20  61 25 0d 00 31 2e 20 20  |ow", 0, a%..1.  |
00000620  20 20 c9 20 33 20 20 20  20 20 3a 20 c8 99 20 22  |  . 3     : .. "|
00000630  57 69 6d 70 5f 43 6c 6f  73 65 57 69 6e 64 6f 77  |Wimp_CloseWindow|
00000640  22 2c 20 30 2c 20 61 25  0d 00 32 18 20 20 20 20  |", 0, a%..2.    |
00000650  c9 20 36 20 20 20 20 20  3a 20 f2 43 6c 69 63 6b  |. 6     : .Click|
00000660  0d 00 33 1a 20 20 20 20  c9 20 37 20 20 20 20 20  |..3.    . 7     |
00000670  3a 20 f2 44 72 61 67 42  6f 78 0d 00 34 1c 20 20  |: .DragBox..4.  |
00000680  20 20 c9 20 39 20 20 20  20 20 3a 20 f2 53 65 6c  |  . 9     : .Sel|
00000690  65 63 74 69 6f 6e 0d 00  35 1a 20 20 20 20 c9 20  |ection..5.    . |
000006a0  31 37 2c 31 38 20 3a 20  f2 4d 65 73 73 61 67 65  |17,18 : .Message|
000006b0  0d 00 36 07 20 20 cb 0d  00 37 0b fd 20 73 74 6f  |..6.  ...7.. sto|
000006c0  70 25 0d 00 38 10 f2 52  65 6c 65 61 73 65 42 75  |p%..8..ReleaseBu|
000006d0  66 66 0d 00 39 1e c8 99  20 22 4f 53 5f 42 79 74  |ff..9... "OS_Byt|
000006e0  65 22 2c 37 30 2c 4f 6c  64 43 6f 75 6e 74 72 79  |e",70,OldCountry|
000006f0  0d 00 3a 1c 2a 46 6f 6e  74 52 65 6d 6f 76 65 20  |..:.*FontRemove |
00000700  3c 46 6c 6f 61 74 24 44  69 72 3e 2e 0d 00 3b 0c  |<Float$Dir>...;.|
00000710  f2 55 6e 43 61 63 68 65  0d 00 3c 17 c8 99 20 22  |.UnCache..<... "|
00000720  57 69 6d 70 5f 43 6c 6f  73 65 44 6f 77 6e 22 0d  |Wimp_CloseDown".|
00000730  00 3d 05 e1 0d 00 3e 05  3a 0d 00 3f 0c dd 20 f2  |.=....>.:..?.. .|
00000740  43 6c 69 63 6b 0d 00 40  30 e7 20 61 25 21 38 3d  |Click..@0. a%!8=|
00000750  32 20 80 20 61 25 21 31  36 3d 42 61 72 49 63 6f  |2 . a%!16=BarIco|
00000760  6e 25 20 80 20 61 25 21  31 32 3d 2d 32 20 8c 20  |n% . a%!12=-2 . |
00000770  f2 4d 65 6e 75 0d 00 41  1e e7 20 61 25 21 38 3d  |.Menu..A.. a%!8=|
00000780  34 20 80 20 61 25 21 31  32 3d 57 69 6e 64 6f 77  |4 . a%!12=Window|
00000790  25 20 8c 0d 00 42 10 20  20 c8 8e 20 61 25 21 31  |% ...B.  .. a%!1|
000007a0  36 20 ca 0d 00 43 1d 20  20 20 20 c9 20 31 20 3a  |6 ...C.    . 1 :|
000007b0  20 49 74 61 6c 25 20 3d  20 ac 20 49 74 61 6c 25  | Ital% = . Ital%|
000007c0  0d 00 44 1d 20 20 20 20  c9 20 32 20 3a 20 42 6f  |..D.    . 2 : Bo|
000007d0  6c 64 25 20 3d 20 ac 20  42 6f 6c 64 25 0d 00 45  |ld% = . Bold%..E|
000007e0  1f 20 20 20 20 c9 20 33  20 3a 20 46 6f 6e 74 24  |.    . 3 : Font$|
000007f0  20 3d 20 22 54 72 69 6e  69 74 79 22 0d 00 46 20  | = "Trinity"..F |
00000800  20 20 20 20 c9 20 35 20  3a 20 46 6f 6e 74 24 20  |    . 5 : Font$ |
00000810  3d 20 22 48 6f 6d 65 72  74 6f 6e 22 0d 00 47 1e  |= "Homerton"..G.|
00000820  20 20 20 20 c9 20 36 20  3a 20 46 6f 6e 74 24 20  |    . 6 : Font$ |
00000830  3d 20 22 43 6f 72 70 75  73 22 0d 00 48 07 20 20  |= "Corpus"..H.  |
00000840  cb 0d 00 49 05 cd 0d 00  4a 47 e7 20 28 28 61 25  |...I....JG. ((a%|
00000850  21 38 3d 31 2a 31 36 29  20 84 20 28 61 25 21 38  |!8=1*16) . (a%!8|
00000860  3d 34 2a 31 36 29 29 20  80 20 28 61 25 21 31 32  |=4*16)) . (a%!12|
00000870  3d 57 69 6e 64 6f 77 25  29 20 80 20 28 61 25 21  |=Window%) . (a%!|
00000880  31 36 3d 30 29 20 8c 20  f2 44 72 61 67 0d 00 4b  |16=0) . .Drag..K|
00000890  05 e1 0d 00 4c 05 3a 0d  00 4d 0e dd 20 f2 44 72  |....L.:..M.. .Dr|
000008a0  61 67 42 6f 78 0d 00 4e  23 c8 99 20 22 57 69 6d  |agBox..N#.. "Wim|
000008b0  70 5f 47 65 74 50 6f 69  6e 74 65 72 49 6e 66 6f  |p_GetPointerInfo|
000008c0  22 2c 2c 74 65 6d 70 25  0d 00 4f 29 e7 20 74 65  |",,temp%..O). te|
000008d0  6d 70 25 21 31 32 3d 2d  32 20 80 20 74 65 6d 70  |mp%!12=-2 . temp|
000008e0  25 21 31 36 3d 42 61 72  49 63 6f 6e 25 20 8c 20  |%!16=BarIcon% . |
000008f0  e1 0d 00 50 2d 21 61 25  3d 32 35 36 20 20 20 20  |...P-!a%=256    |
00000900  20 20 20 20 3a 20 61 25  21 31 32 3d 30 20 20 20  |    : a%!12=0   |
00000910  20 20 20 20 20 3a 20 61  25 21 31 36 3d 31 0d 00  |     : a%!16=1..|
00000920  51 42 61 25 21 32 30 3d  74 65 6d 70 25 21 31 32  |QBa%!20=temp%!12|
00000930  20 3a 20 61 25 21 32 34  3d 74 65 6d 70 25 21 31  | : a%!24=temp%!1|
00000940  36 20 3a 20 61 25 21 32  38 3d 21 74 65 6d 70 25  |6 : a%!28=!temp%|
00000950  20 3a 20 61 25 21 33 32  3d 74 65 6d 70 25 21 34  | : a%!32=temp%!4|
00000960  0d 00 52 44 61 25 21 33  36 3d 73 69 7a 65 25 20  |..RDa%!36=size% |
00000970  20 20 20 3a 20 61 25 21  34 30 3d 74 79 70 65 25  |   : a%!40=type%|
00000980  20 20 20 20 3a 20 24 28  61 25 2b 34 34 29 3d a4  |    : $(a%+44)=.|
00000990  6c 65 61 66 28 6f 75 74  70 75 74 24 29 20 2b 20  |leaf(output$) + |
000009a0  bd 28 30 29 0d 00 53 31  c8 99 20 22 57 69 6d 70  |.(0)..S1.. "Wimp|
000009b0  5f 53 65 6e 64 4d 65 73  73 61 67 65 22 2c 31 37  |_SendMessage",17|
000009c0  2c 61 25 2c 74 65 6d 70  25 21 31 32 2c 74 65 6d  |,a%,temp%!12,tem|
000009d0  70 25 21 31 36 0d 00 54  10 4f 75 72 52 65 66 25  |p%!16..T.OurRef%|
000009e0  3d 61 25 21 38 0d 00 55  05 e1 0d 00 56 05 3a 0d  |=a%!8..U....V.:.|
000009f0  00 57 10 dd 20 f2 53 65  6c 65 63 74 69 6f 6e 0d  |.W.. .Selection.|
00000a00  00 58 26 c8 99 20 22 57  69 6d 70 5f 47 65 74 50  |.X&.. "Wimp_GetP|
00000a10  6f 69 6e 74 65 72 49 6e  66 6f 22 2c 20 30 2c 20  |ointerInfo", 0, |
00000a20  74 65 6d 70 25 0d 00 59  24 e7 20 21 61 25 20 3d  |temp%..Y$. !a% =|
00000a30  20 31 20 f2 43 68 61 6e  67 65 4b 42 28 31 2c 22  | 1 .ChangeKB(1,"|
00000a40  41 63 6f 72 6e 4b 42 22  29 0d 00 5a 23 e7 20 21  |AcornKB")..Z#. !|
00000a50  61 25 20 3d 20 32 20 f2  43 68 61 6e 67 65 4b 42  |a% = 2 .ChangeKB|
00000a60  28 30 2c 22 52 69 73 63  50 43 22 29 0d 00 5b 1a  |(0,"RiscPC")..[.|
00000a70  e7 20 21 61 25 20 3d 20  33 20 f2 53 61 76 65 43  |. !a% = 3 .SaveC|
00000a80  68 6f 69 63 65 73 0d 00  5c 17 e7 20 21 61 25 20  |hoices..\.. !a% |
00000a90  3d 20 34 20 73 74 6f 70  25 20 3d 20 b9 0d 00 5d  |= 4 stop% = ...]|
00000aa0  17 e7 20 74 65 6d 70 25  21 38 20 3d 20 31 20 f2  |.. temp%!8 = 1 .|
00000ab0  4d 65 6e 75 0d 00 5e 05  e1 0d 00 5f 05 3a 0d 00  |Menu..^...._.:..|
00000ac0  60 16 dd 20 f2 43 68 61  6e 67 65 4b 42 28 61 25  |`.. .ChangeKB(a%|
00000ad0  2c 62 24 29 0d 00 61 2b  ff 28 22 52 4d 4c 6f 61  |,b$)..a+.("RMLoa|
00000ae0  64 20 3c 46 6c 6f 61 74  24 44 69 72 3e 2e 4b 65  |d <Float$Dir>.Ke|
00000af0  79 42 6f 61 72 64 73 2e  22 20 2b 20 62 24 29 0d  |yBoards." + b$).|
00000b00  00 62 0c 4b 42 25 20 3d  20 61 25 0d 00 63 14 2a  |.b.KB% = a%..c.*|
00000b10  6b 65 79 62 6f 61 72 64  20 63 61 6e 61 64 61 0d  |keyboard canada.|
00000b20  00 64 05 e1 0d 00 65 05  3a 0d 00 66 12 dd 20 f2  |.d....e.:..f.. .|
00000b30  53 61 76 65 43 68 6f 69  63 65 73 0d 00 67 49 3f  |SaveChoices..gI?|
00000b40  43 68 6f 69 63 65 73 20  3d 20 4b 42 25 20 2b 20  |Choices = KB% + |
00000b50  34 38 20 3a 20 43 68 6f  69 63 65 73 3f 31 20 3d  |48 : Choices?1 =|
00000b60  20 34 38 20 2d 20 49 74  61 6c 25 20 3a 20 43 68  | 48 - Ital% : Ch|
00000b70  6f 69 63 65 73 3f 32 20  3d 20 34 38 20 2d 20 42  |oices?2 = 48 - B|
00000b80  6f 6c 64 25 0d 00 68 1a  24 28 43 68 6f 69 63 65  |old%..h.$(Choice|
00000b90  73 20 2b 20 33 29 20 3d  20 46 6f 6e 74 24 0d 00  |s + 3) = Font$..|
00000ba0  69 4d ff 20 22 53 41 56  45 20 3c 46 6c 6f 61 74  |iM. "SAVE <Float|
00000bb0  24 44 69 72 3e 2e 44 61  74 61 2e 43 68 6f 69 63  |$Dir>.Data.Choic|
00000bc0  65 73 21 20 22 20 2b 20  c3 7e 43 68 6f 69 63 65  |es! " + .~Choice|
00000bd0  73 20 2b 20 22 20 2b 22  20 2b 20 c3 7e 28 a9 28  |s + " +" + .~(.(|
00000be0  46 6f 6e 74 24 29 20 2b  20 34 29 0d 00 6a 05 e1  |Font$) + 4)..j..|
00000bf0  0d 00 6b 05 3a 0d 00 6c  0e dd 20 f2 4d 65 73 73  |..k.:..l.. .Mess|
00000c00  61 67 65 0d 00 6d 0e c8  8e 20 61 25 21 31 36 20  |age..m... a%!16 |
00000c10  ca 0d 00 6e 13 20 20 c9  20 30 20 3a 20 73 74 6f  |...n.  . 0 : sto|
00000c20  70 25 3d b9 0d 00 6f 15  20 20 c9 20 31 20 3a 20  |p%=...o.  . 1 : |
00000c30  f2 44 61 74 61 53 61 76  65 0d 00 70 18 20 20 c9  |.DataSave..p.  .|
00000c40  20 32 20 3a 20 f2 44 61  74 61 53 61 76 65 41 63  | 2 : .DataSaveAc|
00000c50  6b 0d 00 71 15 20 20 c9  20 33 20 3a 20 f2 44 61  |k..q.  . 3 : .Da|
00000c60  74 61 4c 6f 61 64 0d 00  72 18 20 20 c9 20 34 20  |taLoad..r.  . 4 |
00000c70  3a 20 f2 44 61 74 61 4c  6f 61 64 41 63 6b 0d 00  |: .DataLoadAck..|
00000c80  73 05 cb 0d 00 74 05 e1  0d 00 75 05 3a 0d 00 76  |s....t....u.:..v|
00000c90  0f dd 20 f2 44 61 74 61  53 61 76 65 0d 00 77 2d  |.. .DataSave..w-|
00000ca0  e7 20 28 61 25 21 32 30  20 3c 3e 20 2d 32 29 20  |. (a%!20 <> -2) |
00000cb0  84 20 28 61 25 21 32 34  20 3c 3e 20 42 61 72 49  |. (a%!24 <> BarI|
00000cc0  63 6f 6e 25 29 20 8c 20  e1 0d 00 78 26 e7 20 28  |con%) . ...x&. (|
00000cd0  61 25 21 34 30 20 3c 20  30 29 20 84 20 28 61 25  |a%!40 < 0) . (a%|
00000ce0  21 34 30 20 3e 20 26 46  46 46 29 20 8c 20 e1 0d  |!40 > &FFF) . ..|
00000cf0  00 79 37 66 69 6c 65 24  20 3d 20 a4 67 65 74 28  |.y7file$ = .get(|
00000d00  61 25 2b 34 34 29 20 3a  20 74 79 70 65 25 20 3d  |a%+44) : type% =|
00000d10  20 61 25 21 34 30 20 3a  20 73 69 7a 65 25 20 3d  | a%!40 : size% =|
00000d20  20 61 25 21 33 36 0d 00  7a 33 c8 99 20 22 58 4f  | a%!36..z3.. "XO|
00000d30  53 5f 52 65 61 64 56 61  72 56 61 6c 22 2c 20 22  |S_ReadVarVal", "|
00000d40  57 69 6d 70 24 53 63 72  61 70 22 2c 20 30 2c 20  |Wimp$Scrap", 0, |
00000d50  2d 31 20 b8 20 2c 2c 65  25 0d 00 7b 0e e7 20 65  |-1 . ,,e%..{.. e|
00000d60  25 20 3d 20 30 20 8c 0d  00 7c 26 20 20 f2 52 65  |% = 0 ...|&  .Re|
00000d70  70 6f 72 74 28 31 2c 22  4e 6f 20 53 63 72 61 70  |port(1,"No Scrap|
00000d80  20 64 69 72 65 63 74 6f  72 79 21 22 29 0d 00 7d  | directory!")..}|
00000d90  05 cc 0d 00 7e 22 20 20  24 28 61 25 2b 34 34 29  |....~"  $(a%+44)|
00000da0  20 3d 20 22 3c 57 69 6d  70 24 53 63 72 61 70 3e  | = "<Wimp$Scrap>|
00000db0  22 2b bd 30 0d 00 7f 29  20 20 61 25 21 31 32 20  |"+.0...)  a%!12 |
00000dc0  3d 20 61 25 21 38 20 3a  20 61 25 21 31 36 20 3d  |= a%!8 : a%!16 =|
00000dd0  20 32 20 3a 20 21 61 25  20 3d 20 38 30 0d 00 80  | 2 : !a% = 80...|
00000de0  26 20 20 c8 99 20 22 57  69 6d 70 5f 53 65 6e 64  |&  .. "Wimp_Send|
00000df0  4d 65 73 73 61 67 65 22  2c 31 37 2c 61 25 2c 61  |Message",17,a%,a|
00000e00  25 21 34 0d 00 81 05 cd  0d 00 82 19 c8 99 20 22  |%!4........... "|
00000e10  4f 53 5f 42 79 74 65 22  2c 31 33 38 2c 30 2c 32  |OS_Byte",138,0,2|
00000e20  34 0d 00 83 05 e1 0d 00  84 05 3a 0d 00 85 12 dd  |4.........:.....|
00000e30  20 f2 44 61 74 61 53 61  76 65 41 63 6b 0d 00 86  | .DataSaveAck...|
00000e40  07 ea 20 85 0d 00 87 3e  ee 20 85 20 ea 20 f2 52  |.. ....>. . . .R|
00000e50  65 70 6f 72 74 28 31 2c  20 22 46 6c 6f 61 74 20  |eport(1, "Float |
00000e60  65 72 72 6f 72 20 2d 20  22 2b f6 24 2b 22 20 28  |error - "+.$+" (|
00000e70  22 2b c3 9e 2b 22 2c 22  2b c3 9f 2b 22 29 22 29  |"+..+","+..+")")|
00000e80  3a e1 0d 00 88 22 e7 20  61 25 21 31 32 20 3c 3e  |:....". a%!12 <>|
00000e90  20 4f 75 72 52 65 66 25  20 4f 75 72 52 65 66 25  | OurRef% OurRef%|
00000ea0  3d 30 20 8b 0d 00 89 1b  20 20 6f 75 74 70 75 74  |=0 .....  output|
00000eb0  24 20 3d 20 a4 67 65 74  28 61 25 2b 34 34 29 0d  |$ = .get(a%+44).|
00000ec0  00 8a 1b 20 20 f2 46 6c  6f 61 74 28 66 69 6c 65  |...  .Float(file|
00000ed0  24 2c 6f 75 74 70 75 74  24 29 0d 00 8b 21 20 20  |$,output$)...!  |
00000ee0  61 25 21 31 32 20 3d 20  4f 75 72 52 65 66 25 20  |a%!12 = OurRef% |
00000ef0  3a 20 61 25 21 31 36 20  3d 20 33 0d 00 8c 2d 20  |: a%!16 = 3...- |
00000f00  20 c8 99 20 22 57 69 6d  70 5f 53 65 6e 64 4d 65  | .. "Wimp_SendMe|
00000f10  73 73 61 67 65 22 2c 31  37 2c 61 25 2c 61 25 21  |ssage",17,a%,a%!|
00000f20  32 30 2c 61 25 21 32 34  0d 00 8d 12 20 20 4f 75  |20,a%!24....  Ou|
00000f30  72 52 65 66 25 3d 61 25  21 38 0d 00 8e 05 cd 0d  |rRef%=a%!8......|
00000f40  00 8f 05 e1 0d 00 90 05  3a 0d 00 91 0f dd 20 f2  |........:..... .|
00000f50  44 61 74 61 4c 6f 61 64  0d 00 92 0b ea 20 61 64  |DataLoad..... ad|
00000f60  64 72 25 0d 00 93 07 ea  20 85 0d 00 94 40 ee 20  |dr%..... ....@. |
00000f70  85 20 ea 20 f2 52 65 70  6f 72 74 28 31 2c 22 44  |. . .Report(1,"D|
00000f80  61 74 61 4c 6f 61 64 20  65 72 72 6f 72 20 2d 20  |ataLoad error - |
00000f90  22 2b f6 24 2b 22 20 28  22 2b c3 9e 2b 22 2c 22  |"+.$+" ("+..+","|
00000fa0  2b c3 9f 2b 22 29 22 29  3a e1 0d 00 95 05 3a 0d  |+..+")"):.....:.|
00000fb0  00 96 33 e7 20 61 25 21  32 30 20 3c 3e 20 2d 32  |..3. a%!20 <> -2|
00000fc0  20 84 20 61 25 21 32 34  20 3c 3e 20 42 61 72 49  | . a%!24 <> BarI|
00000fd0  63 6f 6e 25 20 84 20 61  25 21 34 30 3c 30 20 8c  |con% . a%!40<0 .|
00000fe0  20 e1 0d 00 97 27 e7 20  61 25 21 34 30 20 3c 3e  | ....'. a%!40 <>|
00000ff0  20 26 32 30 30 30 20 80  20 61 25 21 34 30 20 3e  | &2000 . a%!40 >|
00001000  20 26 46 46 46 20 8c 20  e1 0d 00 98 19 6f 75 74  | &FFF . .....out|
00001010  70 75 74 24 20 3d 20 a4  67 65 74 28 61 25 2b 34  |put$ = .get(a%+4|
00001020  34 29 0d 00 99 23 c8 99  20 22 57 69 6d 70 5f 47  |4)...#.. "Wimp_G|
00001030  65 74 50 6f 69 6e 74 65  72 49 6e 66 6f 22 2c 2c  |etPointerInfo",,|
00001040  74 65 6d 70 25 0d 00 9a  1b 74 65 6d 70 25 21 34  |temp%....temp%!4|
00001050  20 20 3d 20 21 74 65 6d  70 25 20 2d 20 31 39 32  |  = !temp% - 192|
00001060  0d 00 9b 12 74 65 6d 70  25 21 38 20 20 3d 20 31  |....temp%!8  = 1|
00001070  31 32 0d 00 9c 1b 74 65  6d 70 25 21 31 32 20 3d  |12....temp%!12 =|
00001080  20 21 74 65 6d 70 25 20  2b 20 31 39 32 0d 00 9d  | !temp% + 192...|
00001090  12 74 65 6d 70 25 21 31  36 20 3d 20 33 31 36 0d  |.temp%!16 = 316.|
000010a0  00 9e 2f 74 65 6d 70 25  21 32 30 20 3d 20 30 20  |../temp%!20 = 0 |
000010b0  3a 20 74 65 6d 70 25 21  32 34 20 3d 20 30 20 3a  |: temp%!24 = 0 :|
000010c0  20 74 65 6d 70 25 21 32  38 20 3d 20 2d 31 0d 00  | temp%!28 = -1..|
000010d0  9f 15 21 74 65 6d 70 25  20 20 3d 20 57 69 6e 64  |..!temp%  = Wind|
000010e0  6f 77 25 0d 00 a0 1f c8  99 20 22 57 69 6d 70 5f  |ow%...... "Wimp_|
000010f0  4f 70 65 6e 57 69 6e 64  6f 77 22 2c 2c 74 65 6d  |OpenWindow",,tem|
00001100  70 25 0d 00 a1 37 74 79  70 65 25 20 3d 20 61 25  |p%...7type% = a%|
00001110  21 34 30 20 3a 20 73 69  7a 65 25 20 3d 20 61 25  |!40 : size% = a%|
00001120  21 33 36 20 3a 20 66 69  6c 65 24 20 3d 20 a4 67  |!36 : file$ = .g|
00001130  65 74 28 61 25 2b 34 34  29 0d 00 a2 2d 61 25 21  |et(a%+44)...-a%!|
00001140  31 32 20 3d 20 61 25 21  38 20 20 3a 20 61 25 21  |12 = a%!8  : a%!|
00001150  31 36 20 3d 20 34 20 20  20 20 20 3a 20 21 61 25  |16 = 4     : !a%|
00001160  20 20 3d 20 36 34 0d 00  a3 24 c8 99 20 22 57 69  |  = 64...$.. "Wi|
00001170  6d 70 5f 53 65 6e 64 4d  65 73 73 61 67 65 22 2c  |mp_SendMessage",|
00001180  31 37 2c 61 25 2c 61 25  21 34 0d 00 a4 12 21 74  |17,a%,a%!4....!t|
00001190  65 6d 70 25 3d 57 69 6e  64 6f 77 25 0d 00 a5 0d  |emp%=Window%....|
000011a0  74 65 6d 70 25 21 34 3d  30 0d 00 a6 21 c8 99 20  |temp%!4=0...!.. |
000011b0  22 57 69 6d 70 5f 47 65  74 49 63 6f 6e 53 74 61  |"Wimp_GetIconSta|
000011c0  74 65 22 2c 2c 74 65 6d  70 25 0d 00 a7 12 61 64  |te",,temp%....ad|
000011d0  64 72 25 3d 74 65 6d 70  25 2b 33 32 0d 00 a8 1e  |dr%=temp%+32....|
000011e0  24 28 21 61 64 64 72 25  29 3d 22 53 66 69 6c 65  |$(!addr%)="Sfile|
000011f0  5f 22 2b c3 7e 74 79 70  65 25 0d 00 a9 05 e1 0d  |_"+.~type%......|
00001200  00 aa 05 3a 0d 00 ab 12  dd 20 f2 44 61 74 61 4c  |...:..... .DataL|
00001210  6f 61 64 41 63 6b 0d 00  ac 15 e7 20 61 25 21 31  |oadAck..... a%!1|
00001220  32 3d 4f 75 72 52 65 66  25 20 8c 0d 00 ad 1d 20  |2=OurRef% ..... |
00001230  20 4f 75 72 52 65 66 25  3d 30 20 3a 20 21 61 25  | OurRef%=0 : !a%|
00001240  3d 57 69 6e 64 6f 77 25  0d 00 ae 1f 20 20 c8 99  |=Window%....  ..|
00001250  20 22 57 69 6d 70 5f 43  6c 6f 73 65 57 69 6e 64  | "Wimp_CloseWind|
00001260  6f 77 22 2c 2c 61 25 0d  00 af 1e 20 20 c8 99 20  |ow",,a%....  .. |
00001270  22 57 69 6d 70 5f 43 72  65 61 74 65 4d 65 6e 75  |"Wimp_CreateMenu|
00001280  22 2c 2c 2d 31 0d 00 b0  05 cd 0d 00 b1 05 e1 0d  |",,-1...........|
00001290  00 b2 05 3a 0d 00 b3 0b  dd 20 f2 4d 65 6e 75 0d  |...:..... .Menu.|
000012a0  00 b4 0b ea 20 69 74 65  6d 25 0d 00 b5 3f 24 6d  |.... item%...?$m|
000012b0  65 6e 75 25 20 3d 20 22  46 6c 6f 61 74 22 20 3a  |enu% = "Float" :|
000012c0  20 6d 65 6e 75 25 3f 31  32 3d 37 20 20 20 3a 20  | menu%?12=7   : |
000012d0  6d 65 6e 75 25 3f 31 33  3d 32 20 20 20 3a 20 6d  |menu%?13=2   : m|
000012e0  65 6e 75 25 3f 31 34 3d  37 0d 00 b6 3f 6d 65 6e  |enu%?14=7...?men|
000012f0  75 25 3f 31 35 3d 30 20  20 20 20 20 20 20 3a 20  |u%?15=0       : |
00001300  6d 65 6e 75 25 21 31 36  3d 32 30 30 20 3a 20 6d  |menu%!16=200 : m|
00001310  65 6e 75 25 21 32 30 3d  34 34 20 20 3a 20 6d 65  |enu%!20=44  : me|
00001320  6e 75 25 21 32 34 3d 30  0d 00 b7 26 f2 4d 65 6e  |nu%!24=0...&.Men|
00001330  75 49 74 65 6d 28 6d 65  6e 75 25 2b 32 38 2c 30  |uItem(menu%+28,0|
00001340  2c 49 6e 66 6f 25 2c 22  49 6e 66 6f 22 29 0d 00  |,Info%,"Info")..|
00001350  b8 25 f2 4d 65 6e 75 49  74 65 6d 28 69 74 65 6d  |.%.MenuItem(item|
00001360  25 2c 4b 42 25 2c 2d 31  2c 22 41 63 6f 72 6e 4b  |%,KB%,-1,"AcornK|
00001370  42 22 29 0d 00 b9 26 f2  4d 65 6e 75 49 74 65 6d  |B")...&.MenuItem|
00001380  28 69 74 65 6d 25 2c 31  2d 4b 42 25 2c 2d 31 2c  |(item%,1-KB%,-1,|
00001390  22 52 69 73 63 50 43 22  29 0d 00 ba 28 f2 4d 65  |"RiscPC")...(.Me|
000013a0  6e 75 49 74 65 6d 28 69  74 65 6d 25 2c 30 2c 2d  |nuItem(item%,0,-|
000013b0  31 2c 22 53 61 76 65 20  43 68 6f 69 63 65 73 22  |1,"Save Choices"|
000013c0  29 0d 00 bb 28 f2 4d 65  6e 75 49 74 65 6d 28 69  |)...(.MenuItem(i|
000013d0  74 65 6d 25 2c 25 31 30  30 30 30 30 30 30 2c 2d  |tem%,%10000000,-|
000013e0  31 2c 22 51 75 69 74 22  29 0d 00 bc 34 c8 99 20  |1,"Quit")...4.. |
000013f0  22 57 69 6d 70 5f 43 72  65 61 74 65 4d 65 6e 75  |"Wimp_CreateMenu|
00001400  22 2c 20 30 2c 20 6d 65  6e 75 25 2c 20 28 21 61  |", 0, menu%, (!a|
00001410  25 29 2d 31 30 30 2f 32  2c 20 33 32 36 0d 00 bd  |%)-100/2, 326...|
00001420  05 e1 0d 00 be 05 3a 0d  00 bf 1f dd 20 f2 4d 65  |......:..... .Me|
00001430  6e 75 49 74 65 6d 28 61  25 2c 20 62 25 2c 20 63  |nuItem(a%, b%, c|
00001440  25 2c 20 64 24 29 0d 00  c0 2b 69 74 65 6d 25 20  |%, d$)...+item% |
00001450  3d 20 61 25 20 3a 20 21  69 74 65 6d 25 20 3d 20  |= a% : !item% = |
00001460  62 25 20 3a 20 69 74 65  6d 25 21 34 20 3d 20 63  |b% : item%!4 = c|
00001470  25 0d 00 c1 2a 69 74 65  6d 25 21 38 20 3d 20 25  |%...*item%!8 = %|
00001480  31 31 31 30 30 30 30 30  30 30 30 31 30 30 31 30  |1110000000010010|
00001490  30 30 30 30 30 30 31 30  30 30 31 0d 00 c2 29 24  |00000010001...)$|
000014a0  28 69 74 65 6d 25 2b 31  32 29 20 3d 20 64 24 20  |(item%+12) = d$ |
000014b0  2b 20 bd 28 30 29 20 3a  20 69 74 65 6d 25 20 2b  |+ .(0) : item% +|
000014c0  3d 20 32 34 0d 00 c3 05  e1 0d 00 c4 05 3a 0d 00  |= 24.........:..|
000014d0  c5 0b dd 20 f2 44 72 61  67 0d 00 c6 33 ea 20 69  |... .Drag...3. i|
000014e0  63 25 2c 20 6d 69 6e 58  25 2c 20 6d 69 6e 59 25  |c%, minX%, minY%|
000014f0  2c 20 6d 61 78 58 25 2c  20 6d 61 78 59 25 20 3a  |, maxX%, maxY% :|
00001500  20 69 63 25 20 3d 20 61  25 21 31 36 0d 00 c7 21  | ic% = a%!16...!|
00001510  e7 20 28 61 25 21 31 32  3d 57 69 6e 64 6f 77 25  |. (a%!12=Window%|
00001520  29 20 80 20 28 69 63 25  3d 30 29 20 8c 0d 00 c8  |) . (ic%=0) ....|
00001530  22 20 20 21 74 65 6d 70  25 3d 57 69 6e 64 6f 77  |"  !temp%=Window|
00001540  25 20 3a 20 74 65 6d 70  25 21 34 3d 69 63 25 0d  |% : temp%!4=ic%.|
00001550  00 c9 23 20 20 c8 99 20  22 57 69 6d 70 5f 47 65  |..#  .. "Wimp_Ge|
00001560  74 49 63 6f 6e 53 74 61  74 65 22 2c 2c 74 65 6d  |tIconState",,tem|
00001570  70 25 0d 00 ca 46 20 20  6d 69 6e 58 25 3d 74 65  |p%...F  minX%=te|
00001580  6d 70 25 21 38 20 3a 20  6d 69 6e 59 25 3d 74 65  |mp%!8 : minY%=te|
00001590  6d 70 25 21 31 32 20 3a  20 6d 61 78 58 25 3d 74  |mp%!12 : maxX%=t|
000015a0  65 6d 70 25 21 31 36 20  3a 20 6d 61 78 59 25 3d  |emp%!16 : maxY%=|
000015b0  74 65 6d 70 25 21 32 30  0d 00 cb 25 20 20 c8 99  |temp%!20...%  ..|
000015c0  20 22 57 69 6d 70 5f 47  65 74 57 69 6e 64 6f 77  | "Wimp_GetWindow|
000015d0  53 74 61 74 65 22 2c 2c  74 65 6d 70 25 0d 00 cc  |State",,temp%...|
000015e0  5d 20 20 6d 69 6e 58 25  3d 74 65 6d 70 25 21 34  |]  minX%=temp%!4|
000015f0  2b 6d 69 6e 58 25 20 3a  20 6d 61 78 58 25 3d 74  |+minX% : maxX%=t|
00001600  65 6d 70 25 21 34 2b 6d  61 78 58 25 20 3a 20 6d  |emp%!4+maxX% : m|
00001610  69 6e 59 25 3d 74 65 6d  70 25 21 31 36 2b 6d 69  |inY%=temp%!16+mi|
00001620  6e 59 25 20 3a 20 6d 61  78 59 25 3d 74 65 6d 70  |nY% : maxY%=temp|
00001630  25 21 31 36 2b 6d 61 78  59 25 0d 00 cd 1a 20 20  |%!16+maxY%....  |
00001640  21 74 65 6d 70 25 3d 30  20 3a 20 74 65 6d 70 25  |!temp%=0 : temp%|
00001650  21 34 3d 35 0d 00 ce 46  20 20 74 65 6d 70 25 21  |!4=5...F  temp%!|
00001660  38 3d 6d 69 6e 58 25 20  3a 20 74 65 6d 70 25 21  |8=minX% : temp%!|
00001670  31 32 3d 6d 69 6e 59 25  20 3a 20 74 65 6d 70 25  |12=minY% : temp%|
00001680  21 31 36 3d 6d 61 78 58  25 20 3a 20 74 65 6d 70  |!16=maxX% : temp|
00001690  25 21 32 30 3d 6d 61 78  59 25 0d 00 cf 3f 20 20  |%!20=maxY%...?  |
000016a0  74 65 6d 70 25 21 32 34  3d 30 20 3a 20 74 65 6d  |temp%!24=0 : tem|
000016b0  70 25 21 32 38 3d 30 20  3a 20 74 65 6d 70 25 21  |p%!28=0 : temp%!|
000016c0  33 32 3d 33 32 30 30 30  20 3a 20 74 65 6d 70 25  |32=32000 : temp%|
000016d0  21 33 36 3d 33 32 30 30  30 0d 00 d0 1e 20 20 c8  |!36=32000....  .|
000016e0  99 20 22 57 69 6d 70 5f  44 72 61 67 42 6f 78 22  |. "Wimp_DragBox"|
000016f0  2c 2c 74 65 6d 70 25 0d  00 d1 05 cd 0d 00 d2 05  |,,temp%.........|
00001700  e1 0d 00 d3 05 3a 0d 00  d4 18 dd 20 f2 52 65 70  |.....:..... .Rep|
00001710  6f 72 74 28 66 25 2c 20  74 65 78 74 24 29 0d 00  |ort(f%, text$)..|
00001720  d5 22 21 62 25 20 3d 20  31 20 3a 20 24 28 62 25  |."!b% = 1 : $(b%|
00001730  2b 34 29 20 3d 20 74 65  78 74 24 2b bd 28 30 29  |+4) = text$+.(0)|
00001740  0d 00 d6 2a c8 99 20 22  57 69 6d 70 5f 52 65 70  |...*.. "Wimp_Rep|
00001750  6f 72 74 45 72 72 6f 72  22 2c 20 62 25 2c 20 66  |ortError", b%, f|
00001760  25 2c 20 22 46 6c 6f 61  74 22 0d 00 d7 05 e1 0d  |%, "Float"......|
00001770  00 d8 05 3a 0d 00 d9 0e  dd 20 f2 49 63 6f 6e 62  |...:..... .Iconb|
00001780  61 72 0d 00 da 30 21 61  25 20 3d 20 2d 31 20 3a  |ar...0!a% = -1 :|
00001790  20 61 25 21 34 20 3d 20  30 20 3a 20 61 25 21 38  | a%!4 = 0 : a%!8|
000017a0  20 3d 20 2d 34 20 3a 20  61 25 21 31 32 20 3d 20  | = -4 : a%!12 = |
000017b0  36 38 0d 00 db 33 61 25  21 31 36 3d 36 38 20 20  |68...3a%!16=68  |
000017c0  3a 20 61 25 21 32 30 20  3d 20 26 32 30 30 32 20  |: a%!20 = &2002 |
000017d0  3a 20 24 28 61 25 2b 32  34 29 20 3d 20 22 21 46  |: $(a%+24) = "!F|
000017e0  6c 6f 61 74 22 0d 00 dc  27 c8 99 20 22 57 69 6d  |loat"...'.. "Wim|
000017f0  70 5f 43 72 65 61 74 65  49 63 6f 6e 22 2c 2c 61  |p_CreateIcon",,a|
00001800  25 20 b8 20 42 61 72 49  63 6f 6e 25 0d 00 dd 05  |% . BarIcon%....|
00001810  e1 0d 00 de 05 3a 0d 00  df 10 dd 20 a4 67 65 74  |.....:..... .get|
00001820  28 70 74 72 25 29 0d 00  e0 18 ea 20 70 24 20 3a  |(ptr%)..... p$ :|
00001830  20 70 24 20 3d 20 bd 28  3f 70 74 72 25 29 0d 00  | p$ = .(?ptr%)..|
00001840  e1 34 c8 95 20 70 74 72  25 3f 31 20 3c 20 31 32  |.4.. ptr%?1 < 12|
00001850  38 20 80 20 70 74 72 25  3f 31 20 3e 20 33 31 20  |8 . ptr%?1 > 31 |
00001860  80 20 70 74 72 25 3f 31  20 3c 3e 20 97 28 22 3c  |. ptr%?1 <> .("<|
00001870  22 29 0d 00 e2 20 20 20  70 74 72 25 20 2b 3d 20  |")...   ptr% += |
00001880  31 20 3a 20 70 24 20 2b  3d 20 bd 28 3f 70 74 72  |1 : p$ += .(?ptr|
00001890  25 29 0d 00 e3 05 ce 0d  00 e4 27 e7 20 70 74 72  |%)........'. ptr|
000018a0  25 3f 31 20 3d 20 97 28  22 3c 22 29 20 70 24 20  |%?1 = .("<") p$ |
000018b0  2b 3d 20 22 57 69 6d 70  53 63 72 61 70 22 0d 00  |+= "WimpScrap"..|
000018c0  e5 07 3d 70 24 0d 00 e6  05 3a 0d 00 e7 0f dd 20  |..=p$....:..... |
000018d0  a4 6c 65 61 66 28 66 24  29 0d 00 e8 2a c8 95 20  |.leaf(f$)...*.. |
000018e0  a7 66 24 2c 22 2e 22 29  20 3a 20 66 24 20 3d 20  |.f$,".") : f$ = |
000018f0  c1 66 24 2c a7 66 24 2c  22 2e 22 29 2b 31 29 20  |.f$,.f$,".")+1) |
00001900  3a 20 ce 0d 00 e9 07 3d  66 24 0d 00 ea 05 3a 0d  |: .....=f$....:.|
00001910  00 eb 0f dd 20 a4 70 61  74 68 28 66 24 29 0d 00  |.... .path(f$)..|
00001920  ec 12 ea 20 74 24 20 3a  20 74 24 20 3d 20 66 24  |... t$ : t$ = f$|
00001930  0d 00 ed 0f c8 95 20 a7  74 24 2c 22 2e 22 29 0d  |...... .t$,".").|
00001940  00 ee 18 20 20 74 24 3d  c1 74 24 2c a7 74 24 2c  |...  t$=.t$,.t$,|
00001950  22 2e 22 29 2b 31 29 0d  00 ef 05 ce 0d 00 f0 12  |".")+1).........|
00001960  e7 20 66 24 20 3d 20 74  24 20 3d 20 66 24 0d 00  |. f$ = t$ = f$..|
00001970  f1 14 3d 20 c0 66 24 2c  a9 66 24 20 2d 20 a9 74  |..= .f$,.f$ - .t|
00001980  24 29 0d 00 f2 05 3a 0d  00 f3 11 dd 20 f2 49 6e  |$)....:..... .In|
00001990  69 74 69 61 6c 69 7a 65  0d 00 f4 19 ea 20 57 69  |itialize..... Wi|
000019a0  6d 70 25 2c 20 74 61 73  6b 25 2c 20 6e 65 78 74  |mp%, task%, next|
000019b0  25 0d 00 f5 05 3a 0d 00  f6 1f 57 69 6d 70 25 20  |%....:....Wimp% |
000019c0  3d 20 32 20 3a 20 74 61  73 6b 25 3d 26 34 42 35  |= 2 : task%=&4B5|
000019d0  33 34 31 35 34 0d 00 f7  3b c8 99 20 22 57 69 6d  |34154...;.. "Wim|
000019e0  70 5f 49 6e 69 74 69 61  6c 69 73 65 22 2c 20 57  |p_Initialise", W|
000019f0  69 6d 70 25 2a 31 30 30  2c 20 74 61 73 6b 25 2c  |imp%*100, task%,|
00001a00  20 22 46 6c 6f 61 74 22  20 b8 20 57 69 6d 70 25  | "Float" . Wimp%|
00001a10  0d 00 f8 0c f2 55 6e 43  61 63 68 65 0d 00 f9 1a  |.....UnCache....|
00001a20  46 6f 6e 74 24 20 3d 20  24 28 43 68 6f 69 63 65  |Font$ = $(Choice|
00001a30  73 20 2b 20 33 29 0d 00  fa 49 4b 42 25 20 3d 20  |s + 3)...IKB% = |
00001a40  3f 43 68 6f 69 63 65 73  20 2d 20 34 38 20 3a 20  |?Choices - 48 : |
00001a50  49 74 61 6c 25 20 3d 20  34 38 20 2d 20 43 68 6f  |Ital% = 48 - Cho|
00001a60  69 63 65 73 3f 31 20 3a  20 42 6f 6c 64 25 20 3d  |ices?1 : Bold% =|
00001a70  20 34 38 20 2d 20 43 68  6f 69 63 65 73 3f 32 0d  | 48 - Choices?2.|
00001a80  00 fb 21 ff 28 22 52 4d  4c 6f 61 64 20 3c 46 6c  |..!.("RMLoad <Fl|
00001a90  6f 61 74 24 44 69 72 3e  2e 49 6e 74 65 72 22 29  |oat$Dir>.Inter")|
00001aa0  0d 00 fc 62 e7 20 4b 42  25 20 3d 20 31 20 ff 28  |...b. KB% = 1 .(|
00001ab0  22 52 4d 4c 6f 61 64 20  3c 46 6c 6f 61 74 24 44  |"RMLoad <Float$D|
00001ac0  69 72 3e 2e 4b 65 79 42  6f 61 72 64 73 2e 41 63  |ir>.KeyBoards.Ac|
00001ad0  6f 72 6e 4b 42 22 29 20  8b 20 ff 28 22 52 4d 4c  |ornKB") . .("RML|
00001ae0  6f 61 64 20 3c 46 6c 6f  61 74 24 44 69 72 3e 2e  |oad <Float$Dir>.|
00001af0  4b 65 79 42 6f 61 72 64  73 2e 52 69 73 63 50 43  |KeyBoards.RiscPC|
00001b00  22 29 0d 00 fd 25 c8 99  20 22 4f 53 5f 42 79 74  |")...%.. "OS_Byt|
00001b10  65 22 2c 37 30 2c 31 32  37 20 b8 20 2c 4f 6c 64  |e",70,127 . ,Old|
00001b20  43 6f 75 6e 74 72 79 0d  00 fe 13 2a 63 6f 75 6e  |Country....*coun|
00001b30  74 72 79 20 63 61 6e 61  64 61 0d 00 ff 1d ff 28  |try canada.....(|
00001b40  22 3c 46 6c 6f 61 74 24  44 69 72 3e 2e 53 79 73  |"<Float$Dir>.Sys|
00001b50  46 6f 6e 74 46 22 29 0d  01 00 51 e7 20 57 69 6d  |FontF")...Q. Wim|
00001b60  70 25 3c 32 30 30 20 8c  20 f2 52 65 70 6f 72 74  |p%<200 . .Report|
00001b70  28 31 2c 20 22 46 6c 6f  61 74 20 6e 65 65 64 73  |(1, "Float needs|
00001b80  20 61 20 6e 65 77 65 72  20 76 65 72 73 69 6f 6e  | a newer version|
00001b90  20 6f 66 20 74 68 65 20  57 69 6e 64 6f 77 20 4d  | of the Window M|
00001ba0  61 6e 61 67 65 72 22 29  0d 01 01 0e ee 20 85 20  |anager")..... . |
00001bb0  f2 45 72 72 6f 72 0d 01  02 05 3a 0d 01 03 14 6f  |.Error....:....o|
00001bc0  75 74 70 75 74 24 20 3d  20 22 54 65 78 74 22 0d  |utput$ = "Text".|
00001bd0  01 04 3c 73 69 7a 65 25  3d 30 20 3a 20 74 79 70  |..<size%=0 : typ|
00001be0  65 25 3d 30 20 3a 20 42  75 66 66 31 20 3d 20 30  |e%=0 : Buff1 = 0|
00001bf0  20 3a 20 42 75 66 66 32  20 3d 20 30 20 3a 20 42  | : Buff2 = 0 : B|
00001c00  75 66 66 53 69 7a 65 20  3d 20 30 0d 01 05 0b 73  |uffSize = 0....s|
00001c10  74 6f 70 25 3d a3 0d 01  06 36 c8 99 20 22 57 69  |top%=....6.. "Wi|
00001c20  6d 70 5f 4f 70 65 6e 54  65 6d 70 6c 61 74 65 22  |mp_OpenTemplate"|
00001c30  2c 20 30 2c 20 22 3c 46  6c 6f 61 74 24 44 69 72  |, 0, "<Float$Dir|
00001c40  3e 2e 54 65 6d 70 6c 61  74 65 73 22 0d 01 07 44  |>.Templates"...D|
00001c50  c8 99 20 22 57 69 6d 70  5f 4c 6f 61 64 54 65 6d  |.. "Wimp_LoadTem|
00001c60  70 6c 61 74 65 22 2c 2c  20 61 25 2c 63 25 2c 63  |plate",, a%,c%,c|
00001c70  25 2b 32 30 30 30 2c 2d  31 2c 20 22 73 61 76 65  |%+2000,-1, "save|
00001c80  61 73 22 2c 20 30 20 b8  20 2c 2c 6e 65 78 74 25  |as", 0 . ,,next%|
00001c90  0d 01 08 29 c8 99 20 22  57 69 6d 70 5f 43 72 65  |...).. "Wimp_Cre|
00001ca0  61 74 65 57 69 6e 64 6f  77 22 2c 2c 20 61 25 20  |ateWindow",, a% |
00001cb0  b8 20 57 69 6e 64 6f 77  25 0d 01 09 48 c8 99 20  |. Window%...H.. |
00001cc0  22 57 69 6d 70 5f 4c 6f  61 64 54 65 6d 70 6c 61  |"Wimp_LoadTempla|
00001cd0  74 65 22 2c 2c 20 61 25  2c 20 6e 65 78 74 25 2c  |te",, a%, next%,|
00001ce0  20 63 25 2b 32 30 30 30  2c 20 2d 31 2c 20 22 69  | c%+2000, -1, "i|
00001cf0  6e 66 6f 22 2c 20 30 20  b8 20 2c 2c 6e 65 78 74  |nfo", 0 . ,,next|
00001d00  25 0d 01 0a 27 c8 99 20  22 57 69 6d 70 5f 43 72  |%...'.. "Wimp_Cr|
00001d10  65 61 74 65 57 69 6e 64  6f 77 22 2c 2c 20 61 25  |eateWindow",, a%|
00001d20  20 b8 20 49 6e 66 6f 25  0d 01 0b 1b c8 99 20 22  | . Info%...... "|
00001d30  57 69 6d 70 5f 43 6c 6f  73 65 54 65 6d 70 6c 61  |Wimp_CloseTempla|
00001d40  74 65 22 0d 01 0c 27 f2  42 75 74 74 6f 6e 28 31  |te"...'.Button(1|
00001d50  2c 49 74 61 6c 25 29 20  3a 20 f2 42 75 74 74 6f  |,Ital%) : .Butto|
00001d60  6e 28 32 2c 42 6f 6c 64  25 29 0d 01 0d 5e f2 42  |n(2,Bold%)...^.B|
00001d70  75 74 74 6f 6e 28 33 2c  46 6f 6e 74 24 20 3d 20  |utton(3,Font$ = |
00001d80  22 54 72 69 6e 69 74 79  22 29 20 3a 20 f2 42 75  |"Trinity") : .Bu|
00001d90  74 74 6f 6e 28 35 2c 46  6f 6e 74 24 20 3d 20 22  |tton(5,Font$ = "|
00001da0  48 6f 6d 65 72 74 6f 6e  22 29 20 3a 20 f2 42 75  |Homerton") : .Bu|
00001db0  74 74 6f 6e 28 36 2c 46  6f 6e 74 24 20 3d 20 22  |tton(6,Font$ = "|
00001dc0  43 6f 72 70 75 73 22 29  0d 01 0e 05 e1 0d 01 0f  |Corpus")........|
00001dd0  05 3a 0d 01 10 0e dd 20  f2 55 6e 43 61 63 68 65  |.:..... .UnCache|
00001de0  0d 01 11 10 d6 28 4c 6f  73 65 46 6f 6e 74 73 29  |.....(LoseFonts)|
00001df0  0d 01 12 36 f4 20 46 4f  52 20 58 20 3d 20 31 20  |...6. FOR X = 1 |
00001e00  54 4f 20 38 31 39 32 20  3a 20 53 59 53 20 22 46  |TO 8192 : SYS "F|
00001e10  6f 6e 74 5f 4c 6f 73 65  46 6f 6e 74 22 2c 58 20  |ont_LoseFont",X |
00001e20  3a 20 4e 45 58 54 0d 01  13 26 c8 99 20 22 46 6f  |: NEXT...&.. "Fo|
00001e30  6e 74 5f 43 61 63 68 65  41 64 64 72 22 20 b8 20  |nt_CacheAddr" . |
00001e40  2c 2c 46 6f 6e 74 43 61  63 68 65 25 0d 01 14 23  |,,FontCache%...#|
00001e50  2a 43 68 61 6e 67 65 44  79 6e 61 6d 69 63 41 72  |*ChangeDynamicAr|
00001e60  65 61 20 2d 46 6f 6e 74  53 69 7a 65 20 30 6b 0d  |ea -FontSize 0k.|
00001e70  01 15 33 ff 28 22 43 68  61 6e 67 65 44 79 6e 61  |..3.("ChangeDyna|
00001e80  6d 69 63 41 72 65 61 20  2d 46 6f 6e 74 53 69 7a  |micArea -FontSiz|
00001e90  65 20 22 20 2b 20 c3 46  6f 6e 74 43 61 63 68 65  |e " + .FontCache|
00001ea0  25 29 0d 01 16 27 4d 6f  64 65 25 20 3d 20 eb 20  |%)...'Mode% = . |
00001eb0  3a 20 c8 99 20 22 57 69  6d 70 5f 53 65 74 4d 6f  |: .. "Wimp_SetMo|
00001ec0  64 65 22 2c 4d 6f 64 65  25 0d 01 17 05 e1 0d 01  |de",Mode%.......|
00001ed0  18 05 3a 0d 01 19 0f dd  20 f2 41 73 73 65 6d 62  |..:..... .Assemb|
00001ee0  6c 65 0d 01 1a 23 e3 20  70 61 73 73 20 3d 20 30  |le...#. pass = 0|
00001ef0  20 b8 20 33 20 88 20 33  20 3a 20 50 25 20 3d 20  | . 3 . 3 : P% = |
00001f00  63 6f 64 65 25 0d 01 1b  0b 5b 20 4f 50 54 20 30  |code%....[ OPT 0|
00001f10  0d 01 1c 20 2e 4c 6f 73  65 46 6f 6e 74 73 20 20  |... .LoseFonts  |
00001f20  20 20 4d 4f 56 20 20 20  52 30 2c 23 38 31 39 32  |  MOV   R0,#8192|
00001f30  0d 01 1d 27 2e 4c 6f 6f  70 20 20 20 20 20 20 20  |...'.Loop       |
00001f40  20 20 53 57 49 20 20 20  22 46 6f 6e 74 5f 4c 6f  |  SWI   "Font_Lo|
00001f50  73 65 46 6f 6e 74 22 0d  01 1e 20 20 20 20 20 20  |seFont"...      |
00001f60  20 20 20 20 20 20 20 20  20 53 55 42 53 20 20 52  |         SUBS  R|
00001f70  30 2c 52 30 2c 23 31 0d  01 1f 1c 20 20 20 20 20  |0,R0,#1....     |
00001f80  20 20 20 20 20 20 20 20  20 42 4e 45 20 20 20 4c  |         BNE   L|
00001f90  6f 6f 70 0d 01 20 1e 20  20 20 20 20 20 20 20 20  |oop.. .         |
00001fa0  20 20 20 20 20 4d 4f 56  20 20 20 50 43 2c 52 31  |     MOV   PC,R1|
00001fb0  34 0d 01 21 05 5d 0d 01  22 05 ed 0d 01 23 05 e1  |4..!.].."....#..|
00001fc0  0d 01 24 05 3a 0d 01 25  1d dd 20 f2 42 75 74 74  |..$.:..%.. .Butt|
00001fd0  6f 6e 28 62 75 74 74 6f  6e 25 2c 73 74 61 74 65  |on(button%,state|
00001fe0  25 29 0d 01 26 3d 21 74  65 6d 70 25 20 3d 20 57  |%)..&=!temp% = W|
00001ff0  69 6e 64 6f 77 25 20 3a  20 74 65 6d 70 25 21 34  |indow% : temp%!4|
00002000  20 3d 20 62 75 74 74 6f  6e 25 20 3a 20 74 65 6d  | = button% : tem|
00002010  70 25 21 31 32 20 3d 20  26 32 30 30 30 30 30 0d  |p%!12 = &200000.|
00002020  01 27 23 74 65 6d 70 25  21 38 20 3d 20 26 32 30  |.'#temp%!8 = &20|
00002030  30 30 30 30 20 2a 20 73  74 61 74 65 25 20 2a 20  |0000 * state% * |
00002040  2d 31 0d 01 28 21 c8 99  20 22 57 69 6d 70 5f 53  |-1..(!.. "Wimp_S|
00002050  65 74 49 63 6f 6e 53 74  61 74 65 22 2c 2c 74 65  |etIconState",,te|
00002060  6d 70 25 0d 01 29 05 e1  0d 01 2a 05 3a 0d 01 2b  |mp%..)....*.:..+|
00002070  0c dd 20 f2 45 72 72 6f  72 0d 01 2c 17 e7 20 9f  |.. .Error..,.. .|
00002080  20 3c 20 30 20 84 20 9f  20 3e 20 31 32 37 20 8c  | < 0 . . > 127 .|
00002090  0d 01 2d 3d 20 20 f2 52  65 70 6f 72 74 28 31 2c  |..-=  .Report(1,|
000020a0  22 46 6c 6f 61 74 20 46  61 74 61 6c 20 65 72 72  |"Float Fatal err|
000020b0  6f 72 20 2d 20 22 2b f6  24 2b 22 20 28 22 2b c3  |or - "+.$+" ("+.|
000020c0  9e 2b 22 2c 22 2b c3 9f  2b 22 29 22 29 0d 01 2e  |.+","+..+")")...|
000020d0  12 20 20 f2 52 65 6c 65  61 73 65 42 75 66 66 0d  |.  .ReleaseBuff.|
000020e0  01 2f 1b 20 20 c8 99 20  22 57 69 6d 70 5f 43 6c  |./.  .. "Wimp_Cl|
000020f0  6f 73 65 44 6f 77 6e 22  3a e0 0d 01 30 05 cc 0d  |oseDown":...0...|
00002100  01 31 37 20 20 f2 52 65  70 6f 72 74 28 31 2c 22  |.17  .Report(1,"|
00002110  46 6c 6f 61 74 20 65 72  72 6f 72 20 2d 20 22 2b  |Float error - "+|
00002120  f6 24 2b 22 20 28 22 2b  c3 9e 2b 22 2c 22 2b c3  |.$+" ("+..+","+.|
00002130  9f 2b 22 29 22 29 0d 01  32 12 20 20 f2 52 65 6c  |.+")")..2.  .Rel|
00002140  65 61 73 65 42 75 66 66  0d 01 33 1b 20 20 c8 99  |easeBuff..3.  ..|
00002150  20 22 57 69 6d 70 5f 43  6c 6f 73 65 44 6f 77 6e  | "Wimp_CloseDown|
00002160  22 3a e0 0d 01 34 05 cd  0d 01 35 05 e1 0d 01 36  |":...4....5....6|
00002170  05 3a 0d 01 37 10 dd 20  f2 4c 6f 61 64 28 69 6e  |.:..7.. .Load(in|
00002180  24 29 0d 01 38 26 c8 99  20 22 4f 53 5f 46 69 6c  |$)..8&.. "OS_Fil|
00002190  65 22 2c 31 37 2c 69 6e  24 20 b8 20 2c 2c 2c 2c  |e",17,in$ . ,,,,|
000021a0  42 75 66 66 53 69 7a 65  0d 01 39 25 c8 99 20 22  |BuffSize..9%.. "|
000021b0  57 69 6d 70 5f 53 6c 6f  74 53 69 7a 65 22 2c 2d  |Wimp_SlotSize",-|
000021c0  31 2c 2d 31 20 b8 20 2c  2c 46 72 65 65 0d 01 3a  |1,-1 . ,,Free..:|
000021d0  16 21 45 78 74 65 6e 74  20 3d 20 42 75 66 66 53  |.!Extent = BuffS|
000021e0  69 7a 65 0d 01 3b 20 42  75 66 66 53 69 7a 65 20  |ize..; BuffSize |
000021f0  2b 3d 20 32 30 30 30 20  3a 20 42 75 66 66 32 20  |+= 2000 : Buff2 |
00002200  3d 20 30 0d 01 3c 4a e7  20 46 72 65 65 20 3c 20  |= 0..<J. Free < |
00002210  42 75 66 66 53 69 7a 65  2a 33 20 f2 52 65 70 6f  |BuffSize*3 .Repo|
00002220  72 74 28 31 2c 22 55 6e  61 62 6c 65 20 74 6f 20  |rt(1,"Unable to |
00002230  63 6c 61 69 6d 20 73 75  66 66 69 63 69 65 6e 74  |claim sufficient|
00002240  20 6d 65 6d 6f 72 79 22  29 20 3a 20 e1 0d 01 3d  | memory") : ...=|
00002250  2a c8 99 20 22 57 69 6d  70 5f 53 6c 6f 74 53 69  |*.. "Wimp_SlotSi|
00002260  7a 65 22 2c 93 20 2b 20  42 75 66 66 53 69 7a 65  |ze",. + BuffSize|
00002270  2a 33 20 2c 20 2d 31 0d  01 3e 3e 42 75 66 66 31  |*3 , -1..>>Buff1|
00002280  20 3d 20 93 20 3a 20 42  75 66 66 32 20 3d 20 28  | = . : Buff2 = (|
00002290  42 75 66 66 31 20 2b 20  42 75 66 66 53 69 7a 65  |Buff1 + BuffSize|
000022a0  2a 31 2e 35 20 2b 20 33  29 20 80 20 26 46 46 46  |*1.5 + 3) . &FFF|
000022b0  46 46 46 46 43 0d 01 3f  23 ff 20 22 4c 4f 41 44  |FFFFC..?#. "LOAD|
000022c0  20 22 20 2b 20 69 6e 24  20 2b 20 22 20 22 20 2b  | " + in$ + " " +|
000022d0  20 c3 7e 42 75 66 66 32  0d 01 40 05 e1 0d 01 41  | .~Buff2..@....A|
000022e0  05 3a 0d 01 42 11 dd 20  f2 53 61 76 65 28 6f 75  |.:..B.. .Save(ou|
000022f0  74 24 29 0d 01 43 13 e7  20 21 4f 75 74 50 74 72  |t$)..C.. !OutPtr|
00002300  20 3d 20 30 20 e1 0d 01  44 2c c8 99 20 22 4f 53  | = 0 ...D,.. "OS|
00002310  5f 46 69 6c 65 22 2c 31  30 2c 6f 75 74 24 2c 26  |_File",10,out$,&|
00002320  66 66 66 2c 2c 42 75 66  66 31 2c 21 4f 75 74 50  |fff,,Buff1,!OutP|
00002330  74 72 0d 01 45 05 e1 0d  01 46 05 3a 0d 01 47 16  |tr..E....F.:..G.|
00002340  dd 20 f2 46 6c 6f 61 74  28 69 6e 24 2c 6f 75 74  |. .Float(in$,out|
00002350  24 29 0d 01 48 10 20 20  f2 4c 6f 61 64 28 69 6e  |$)..H.  .Load(in|
00002360  24 29 0d 01 49 26 20 20  e7 20 42 75 66 66 32 20  |$)..I&  . Buff2 |
00002370  3c 3e 20 30 20 f2 4b 65  72 6e 20 3a 20 f2 53 61  |<> 0 .Kern : .Sa|
00002380  76 65 28 6f 75 74 24 29  0d 01 4a 12 20 20 f2 52  |ve(out$)..J.  .R|
00002390  65 6c 65 61 73 65 42 75  66 66 0d 01 4b 05 e1 0d  |eleaseBuff..K...|
000023a0  01 4c 05 3a 0d 01 4d 0b  dd 20 f2 4b 65 72 6e 0d  |.L.:..M.. .Kern.|
000023b0  01 4e 2a 20 20 46 6f 6e  74 53 24 20 3d 20 46 6f  |.N*  FontS$ = Fo|
000023c0  6e 74 24 20 2b 20 c3 28  2d 32 2a 42 6f 6c 64 25  |nt$ + .(-2*Bold%|
000023d0  20 2d 20 49 74 61 6c 25  29 0d 01 4f 26 20 20 21  | - Ital%)..O&  !|
000023e0  49 6e 42 75 66 20 3d 20  42 75 66 66 32 20 3a 20  |InBuf = Buff2 : |
000023f0  21 4f 75 74 42 75 66 20  3d 20 42 75 66 66 31 0d  |!OutBuf = Buff1.|
00002400  01 50 2c 20 20 21 49 6e  50 74 72 20 3d 20 30 20  |.P,  !InPtr = 0 |
00002410  3a 20 21 4f 75 74 50 74  72 20 3d 20 30 20 3a 20  |: !OutPtr = 0 : |
00002420  41 25 20 3d 20 44 65 4b  65 72 6e 0d 01 51 11 20  |A% = DeKern..Q. |
00002430  20 d6 28 50 53 77 61 70  53 74 72 29 0d 01 52 3a  | .(PSwapStr)..R:|
00002440  20 20 21 49 6e 42 75 66  20 3d 20 42 75 66 66 31  |  !InBuf = Buff1|
00002450  20 3a 20 21 4f 75 74 42  75 66 20 3d 20 42 75 66  | : !OutBuf = Buf|
00002460  66 32 20 3a 20 21 45 78  74 65 6e 74 20 3d 20 21  |f2 : !Extent = !|
00002470  4f 75 74 50 74 72 0d 01  53 2f 20 20 21 49 6e 50  |OutPtr..S/  !InP|
00002480  74 72 20 3d 20 30 20 3a  20 21 4f 75 74 50 74 72  |tr = 0 : !OutPtr|
00002490  20 3d 20 30 20 3a 20 41  25 20 3d 20 a0 28 46 6f  | = 0 : A% = .(Fo|
000024a0  6e 74 53 24 29 0d 01 54  11 20 20 d6 28 50 53 77  |ntS$)..T.  .(PSw|
000024b0  61 70 53 74 72 29 0d 01  55 3a 20 20 21 49 6e 42  |apStr)..U:  !InB|
000024c0  75 66 20 3d 20 42 75 66  66 32 20 3a 20 21 4f 75  |uf = Buff2 : !Ou|
000024d0  74 42 75 66 20 3d 20 42  75 66 66 31 20 3a 20 21  |tBuf = Buff1 : !|
000024e0  45 78 74 65 6e 74 20 3d  20 21 4f 75 74 50 74 72  |Extent = !OutPtr|
000024f0  0d 01 56 2c 20 20 21 49  6e 50 74 72 20 3d 20 30  |..V,  !InPtr = 0|
00002500  20 3a 20 21 4f 75 74 50  74 72 20 3d 20 30 20 3a  | : !OutPtr = 0 :|
00002510  20 41 25 20 3d 20 45 78  70 61 6e 64 0d 01 57 11  | A% = Expand..W.|
00002520  20 20 d6 28 50 53 77 61  70 53 74 72 29 0d 01 58  |  .(PSwapStr)..X|
00002530  16 20 20 21 4f 75 74 50  74 72 20 2b 3d 20 42 75  |.  !OutPtr += Bu|
00002540  66 66 31 0d 01 59 05 e1  0d ff                    |ff1..Y....|
0000254a