Home » Archimedes archive » Acorn Computing » 1994 08 subscription disc.adf » 9408s » Shareware/Event/Documents/Examples/!Text-DTP/!Text-DTP

Shareware/Event/Documents/Examples/!Text-DTP/!Text-DTP

This website contains an archive of files for the Acorn Electron, BBC Micro, Acorn Archimedes, Commodore 16 and Commodore 64 computers, which Dominic Ford has rescued from his private collection of floppy disks and cassettes.

Some of these files were originally commercial releases in the 1980s and 1990s, but they are now widely available online. I assume that copyright over them is no longer being asserted. If you own the copyright and would like files to be removed, please contact me.

Tape/disk: Home » Archimedes archive » Acorn Computing » 1994 08 subscription disc.adf » 9408s
Filename: Shareware/Event/Documents/Examples/!Text-DTP/!Text-DTP
Read OK:
File size: 1185 bytes
Load address: 0000
Exec address: 0000
File contents
    1REM > <Text-DTP$Dir>.!Text-DTP
    2:
    3ON ERROR MODE12:SYS"Hourglass_Smash":REPORT:PRINT" at line: ";ERL:END
    4:
    5LIBRARY "<EvntShellSystem$Path>ShellLib"
    6:
    7SYS "Hourglass_On"
    8:
    9SYS "Wimp_SlotSize",-1,-1 TO progsize%
   10pagesize%=1<<10
   11freespace%=&8000+progsize%
   12END=freespace%+pagesize%
   13HIMEM=freespace%
   14:
   15PROCshell_HeapManagerInit("<EvntShellSystem$Path>",freespace%)
   16PROCshell_Init
   17task%=FNshell_WimpInit_I(200,"Event Shell Program")
   18PROCshell_TraceInit("")
   19REM PROCshell_TraceOn
   20PROCshell_ResourcesInit
   21PROCapp_init
   22:
   23REM -------------------- Initialise Variables ----------------------------
   24:
   25_closedown%     =FALSE :REM Set this to TRUE when you want the program to
   26                       :REM end
   27changed%        =FALSE :REM Used to keep track of whether the data has
   28                       :REM been changed. Call PROCfile_changed() when it
   29                       :REM has. But if the program does not use data
   30                       :REM files just ignore this variable but do not
   31                       :REM delete it as the program checks it before
   32                       :REM exiting!
   33:
   34REM -------------------- Miscelleanous Initialisation --------------------
   35:
   36ON ERROR PROCshell_Error
   37:
   38SYS "Hourglass_Off"
   39REPEAT
   40  PROCshell_Action(FNshell_Poll_I(0,task%))
   41UNTIL _closedown%
   42:
   43PROCshell_Exit:END
   44:
   45REM ======================================================================
   46:
   47DEF PROCapp_init
   48PROCSetUp_Windows
   49PROCSetUp_Menus
   50PROCSetUp_IconBar
   51PROCshell_InitHelpSystem(FNshell_GetAppDir+".Text-DTP",TRUE)
   52PROCshell_AttachPreQuitHandler("_PreQuit_Handler")
   53REM PROCshell_AttachShutdownHandler("_Shutdown_Handler")
   54ENDPROC
   55:
   56DEF PROCSetUp_IconBar
   57sicon=FNshell_Iconbar(-1,"!"+FNshell_GetAppName,"",120,MenuHandle_IconBar%,0,0,0)
   58PROCshell_AttachHelpTag(-1,sicon,"iconbar")
   59PROCshell_AttachDataLoad(-1,sicon,&FFF,"_dataload_FFF",-1)
   60ENDPROC
   61:
   62DEF PROCSetUp_Windows
   63PROCshell_CreateWindowStatic("mainw",mainw%)
   64PROCshell_AttachDataSave(mainw%,2,100,&FFF,1,"_datasave_FFF")
   65PROCshell_AttachHelpTag(mainw%,-1,"mainw")
   66ENDPROC
   67:
   68DEF PROCSetUp_Menus
   69LOCAL void%
   70
   71MenuHandle_IconBar%=FNshell_MenuNew(FNshell_MessageNoArgs("Text-DTP"))
   72MenuItem_Info%     =FNshell_MenuAdd(0,FNshell_MessageNoArgs("Info"),"")
   73MenuItem_Help%     =FNshell_MenuAdd(0,FNshell_MessageNoArgs("Help"),"_MenuSelect_Help")
   74void%              =FNshell_MenuAdd(0,FNshell_MessageNoArgs("Quit"),"_MenuSelect_Quit")
   75PROCshell_AttachMenuDBox(MenuItem_Info%,"progInfo","_PreOpenInfo","")
   76
   77ENDPROC
   78:
   79
   80REM ===== Dialog_PreOpen routines ==================================
   81
   82DEF FN_PreOpenInfo(h%)
   83PROCshell_IconPutData(h%,0,FNshell_MessageNoArgs("progInfo0"),0)
   84PROCshell_IconPutData(h%,1,FNshell_MessageNoArgs("progInfo1"),0)
   85PROCshell_IconPutData(h%,2,FNshell_MessageNoArgs("progInfo2"),0)
   86PROCshell_IconPutData(h%,3,FNshell_MessageNoArgs("progInfo3"),0)
   87=0
   88:
   89
   90REM ===== Data_Load routines =======================================
   91
   92DEF FN_dataload_FFF(loc%,filetype%,file$,file_size%)
   93SYS "Hourglass_On"
   94PROCconvert_file(file$,"<Text-DTP$Dir>.Output")
   95PROCshell_WindowMoveToIcon(mainw%,-1,sicon,-50,30)
   96PROCshell_IconPutData(mainw%,1,"TextFile",0)
   97REM SYS "Wimp_SetCaretPosition",mainw%,1,-1,-1,-1,LEN(FNshell_IconGetData(mainw%,1))
   98PROCshell_OpenWindowStatic(mainw%)
   99SYS "Hourglass_Off"
  100=0
  101:
  102
  103REM ===== Data_Save routines =======================================
  104
  105DEF FN_datasave_FFF(f_name$)
  106OSCLI"Copy <Text-DTP$Dir>.Output "+f_name$+" ~A~C~DF~L~N~P~Q~R~S~T~V"
  107OSCLI"Remove <Text-DTP$Dir>.Output"
  108OSCLI"Remove <Text-DTP$Dir>.Input"
  109PROCshell_CloseWindow(mainw%)
  110=0
  111:
  112
  113REM ===== Menu_Select routines =====================================
  114
  115DEF FN_MenuSelect_Help(blk%)
  116IF FNshell_StrongHlpIsAvailable THEN
  117  PROCshell_HelpWord(FNshell_GetAppName+".$")
  118ELSE
  119  OSCLI("Filer_Run <QLetter$Dir>.!Help")
  120ENDIF
  121=0
  122:
  123DEF FN_MenuSelect_Quit(blk%)
  124_closedown%=TRUE
  125OSCLI("Remove <Text-DTP$Dir>.Output")
  126=0
  127:
  128
  129REM ===== Misc_Event routines ======================================
  130
  131DEF FN_PreQuit_Handler
  132REM return TRUE if we are quitting..
  133=(FNshell_MessageWindow("Really quit?",TRUE,"Text-DTP","")=1)
  134:
  135DEF FN_Shutdown_Handler
  136LOCAL x%
  137x%=OPENOUT("<Text-DTP$Dir>.Shutdown")
  138CLOSE# x%
  139=0
  140:
  141
  142REM ===== Application routines =====================================
  143
  144DEFPROCconvert_file(s$,d$)
  145SYS "Wimp_StartTask","<Text-DTP$Dir>.FilterLF "+s$+" > "+d$
  146ENDPROC
  147:
  148REM ================= End Of User Application ============================
  149:
  150
 � > <Text-DTP$Dir>.!Text-DTP
:
3� � �12:ș"Hourglass_Smash":�:�" at line: ";�:�
:
'ț "<EvntShellSystem$Path>ShellLib"
:
ș "Hourglass_On"
:
	(ș "Wimp_SlotSize",-1,-1 � progsize%

pagesize%=1<<10
freespace%=&8000+progsize%
�=freespace%+pagesize%

�=freespace%
:
?�shell_HeapManagerInit("<EvntShellSystem$Path>",freespace%)
�shell_Init
6task%=�shell_WimpInit_I(200,"Event Shell Program")
�shell_TraceInit("")
� PROCshell_TraceOn
�shell_ResourcesInit

�app_init
:
L� -------------------- Initialise Variables ----------------------------
:
G_closedown%     =� :� Set this to TRUE when you want the program to
!                       :� end
Dchanged%        =� :� Used to keep track of whether the data has
K                       :� been changed. Call PROCfile_changed() when it
G                       :� has. But if the program does not use data
H                       :� files just ignore this variable but do not
G                       :� delete it as the program checks it before
 &                       :� exiting!
!:
"L� -------------------- Miscelleanous Initialisation --------------------
#:
$� � �shell_Error
%:
&ș "Hourglass_Off"
'�
(+  �shell_Action(�shell_Poll_I(0,task%))
)� _closedown%
*:
+�shell_Exit:�
,:
-L� ======================================================================
.:
/� �app_init
0�SetUp_Windows
1�SetUp_Menus
2�SetUp_IconBar
39�shell_InitHelpSystem(�shell_GetAppDir+".Text-DTP",�)
43�shell_AttachPreQuitHandler("_PreQuit_Handler")
5:� PROCshell_AttachShutdownHandler("_Shutdown_Handler")
6�
7:
8� �SetUp_IconBar
9Ssicon=�shell_Iconbar(-1,"!"+�shell_GetAppName,"",120,MenuHandle_IconBar%,0,0,0)
:,�shell_AttachHelpTag(-1,sicon,"iconbar")
;;�shell_AttachDataLoad(-1,sicon,&FFF,"_dataload_FFF",-1)
<�
=:
>� �SetUp_Windows
?-�shell_CreateWindowStatic("mainw",mainw%)
@>�shell_AttachDataSave(mainw%,2,100,&FFF,1,"_datasave_FFF")
A+�shell_AttachHelpTag(mainw%,-1,"mainw")
B�
C:
D� �SetUp_Menus
E� void%
F
GHMenuHandle_IconBar%=�shell_MenuNew(�shell_MessageNoArgs("Text-DTP"))
HIMenuItem_Info%     =�shell_MenuAdd(0,�shell_MessageNoArgs("Info"),"")
IYMenuItem_Help%     =�shell_MenuAdd(0,�shell_MessageNoArgs("Help"),"_MenuSelect_Help")
JYvoid%              =�shell_MenuAdd(0,�shell_MessageNoArgs("Quit"),"_MenuSelect_Quit")
KF�shell_AttachMenuDBox(MenuItem_Info%,"progInfo","_PreOpenInfo","")
L
M�
N:
O
PF� ===== Dialog_PreOpen routines ==================================
Q
R� �_PreOpenInfo(h%)
S@�shell_IconPutData(h%,0,�shell_MessageNoArgs("progInfo0"),0)
T@�shell_IconPutData(h%,1,�shell_MessageNoArgs("progInfo1"),0)
U@�shell_IconPutData(h%,2,�shell_MessageNoArgs("progInfo2"),0)
V@�shell_IconPutData(h%,3,�shell_MessageNoArgs("progInfo3"),0)
W=0
X:
Y
ZF� ===== Data_Load routines =======================================
[
\5� �_dataload_FFF(loc%,filetype%,file$,file_size%)
]ș "Hourglass_On"
^0�convert_file(file$,"<Text-DTP$Dir>.Output")
_3�shell_WindowMoveToIcon(mainw%,-1,sicon,-50,30)
`-�shell_IconPutData(mainw%,1,"TextFile",0)
aV� SYS "Wimp_SetCaretPosition",mainw%,1,-1,-1,-1,LEN(FNshell_IconGetData(mainw%,1))
b#�shell_OpenWindowStatic(mainw%)
cș "Hourglass_Off"
d=0
e:
f
gF� ===== Data_Save routines =======================================
h
i� �_datasave_FFF(f_name$)
jE�"Copy <Text-DTP$Dir>.Output "+f_name$+" ~A~C~DF~L~N~P~Q~R~S~T~V"
k#�"Remove <Text-DTP$Dir>.Output"
l"�"Remove <Text-DTP$Dir>.Input"
m�shell_CloseWindow(mainw%)
n=0
o:
p
qF� ===== Menu_Select routines =====================================
r
s� �_MenuSelect_Help(blk%)
t#� �shell_StrongHlpIsAvailable �
u-  �shell_HelpWord(�shell_GetAppName+".$")
v�
w(  �("Filer_Run <QLetter$Dir>.!Help")
x�
y=0
z:
{� �_MenuSelect_Quit(blk%)
|_closedown%=�
}%�("Remove <Text-DTP$Dir>.Output")
~=0
:
�
�F� ===== Misc_Event routines ======================================
�
�� �_PreQuit_Handler
�&� return TRUE if we are quitting..
�==(�shell_MessageWindow("Really quit?",�,"Text-DTP","")=1)
�:
�� �_Shutdown_Handler
�� x%
�#x%=�("<Text-DTP$Dir>.Shutdown")
�	�# x%
�=0
�:
�
�F� ===== Application routines =====================================
�
���convert_file(s$,d$)
�>ș "Wimp_StartTask","<Text-DTP$Dir>.FilterLF "+s$+" > "+d$
��
�:
�L� ================= End Of User Application ============================
�:
�
�
00000000  0d 00 01 20 f4 20 3e 20  3c 54 65 78 74 2d 44 54  |... . > <Text-DT|
00000010  50 24 44 69 72 3e 2e 21  54 65 78 74 2d 44 54 50  |P$Dir>.!Text-DTP|
00000020  0d 00 02 05 3a 0d 00 03  33 ee 20 85 20 eb 31 32  |....:...3. . .12|
00000030  3a c8 99 22 48 6f 75 72  67 6c 61 73 73 5f 53 6d  |:.."Hourglass_Sm|
00000040  61 73 68 22 3a f6 3a f1  22 20 61 74 20 6c 69 6e  |ash":.:." at lin|
00000050  65 3a 20 22 3b 9e 3a e0  0d 00 04 05 3a 0d 00 05  |e: ";.:.....:...|
00000060  27 c8 9b 20 22 3c 45 76  6e 74 53 68 65 6c 6c 53  |'.. "<EvntShellS|
00000070  79 73 74 65 6d 24 50 61  74 68 3e 53 68 65 6c 6c  |ystem$Path>Shell|
00000080  4c 69 62 22 0d 00 06 05  3a 0d 00 07 15 c8 99 20  |Lib"....:...... |
00000090  22 48 6f 75 72 67 6c 61  73 73 5f 4f 6e 22 0d 00  |"Hourglass_On"..|
000000a0  08 05 3a 0d 00 09 28 c8  99 20 22 57 69 6d 70 5f  |..:...(.. "Wimp_|
000000b0  53 6c 6f 74 53 69 7a 65  22 2c 2d 31 2c 2d 31 20  |SlotSize",-1,-1 |
000000c0  b8 20 70 72 6f 67 73 69  7a 65 25 0d 00 0a 13 70  |. progsize%....p|
000000d0  61 67 65 73 69 7a 65 25  3d 31 3c 3c 31 30 0d 00  |agesize%=1<<10..|
000000e0  0b 1e 66 72 65 65 73 70  61 63 65 25 3d 26 38 30  |..freespace%=&80|
000000f0  30 30 2b 70 72 6f 67 73  69 7a 65 25 0d 00 0c 1a  |00+progsize%....|
00000100  e0 3d 66 72 65 65 73 70  61 63 65 25 2b 70 61 67  |.=freespace%+pag|
00000110  65 73 69 7a 65 25 0d 00  0d 10 d3 3d 66 72 65 65  |esize%.....=free|
00000120  73 70 61 63 65 25 0d 00  0e 05 3a 0d 00 0f 3f f2  |space%....:...?.|
00000130  73 68 65 6c 6c 5f 48 65  61 70 4d 61 6e 61 67 65  |shell_HeapManage|
00000140  72 49 6e 69 74 28 22 3c  45 76 6e 74 53 68 65 6c  |rInit("<EvntShel|
00000150  6c 53 79 73 74 65 6d 24  50 61 74 68 3e 22 2c 66  |lSystem$Path>",f|
00000160  72 65 65 73 70 61 63 65  25 29 0d 00 10 0f f2 73  |reespace%).....s|
00000170  68 65 6c 6c 5f 49 6e 69  74 0d 00 11 36 74 61 73  |hell_Init...6tas|
00000180  6b 25 3d a4 73 68 65 6c  6c 5f 57 69 6d 70 49 6e  |k%=.shell_WimpIn|
00000190  69 74 5f 49 28 32 30 30  2c 22 45 76 65 6e 74 20  |it_I(200,"Event |
000001a0  53 68 65 6c 6c 20 50 72  6f 67 72 61 6d 22 29 0d  |Shell Program").|
000001b0  00 12 18 f2 73 68 65 6c  6c 5f 54 72 61 63 65 49  |....shell_TraceI|
000001c0  6e 69 74 28 22 22 29 0d  00 13 17 f4 20 50 52 4f  |nit("")..... PRO|
000001d0  43 73 68 65 6c 6c 5f 54  72 61 63 65 4f 6e 0d 00  |Cshell_TraceOn..|
000001e0  14 18 f2 73 68 65 6c 6c  5f 52 65 73 6f 75 72 63  |...shell_Resourc|
000001f0  65 73 49 6e 69 74 0d 00  15 0d f2 61 70 70 5f 69  |esInit.....app_i|
00000200  6e 69 74 0d 00 16 05 3a  0d 00 17 4c f4 20 2d 2d  |nit....:...L. --|
00000210  2d 2d 2d 2d 2d 2d 2d 2d  2d 2d 2d 2d 2d 2d 2d 2d  |----------------|
00000220  2d 2d 20 49 6e 69 74 69  61 6c 69 73 65 20 56 61  |-- Initialise Va|
00000230  72 69 61 62 6c 65 73 20  2d 2d 2d 2d 2d 2d 2d 2d  |riables --------|
00000240  2d 2d 2d 2d 2d 2d 2d 2d  2d 2d 2d 2d 2d 2d 2d 2d  |----------------|
00000250  2d 2d 2d 2d 0d 00 18 05  3a 0d 00 19 47 5f 63 6c  |----....:...G_cl|
00000260  6f 73 65 64 6f 77 6e 25  20 20 20 20 20 3d a3 20  |osedown%     =. |
00000270  3a f4 20 53 65 74 20 74  68 69 73 20 74 6f 20 54  |:. Set this to T|
00000280  52 55 45 20 77 68 65 6e  20 79 6f 75 20 77 61 6e  |RUE when you wan|
00000290  74 20 74 68 65 20 70 72  6f 67 72 61 6d 20 74 6f  |t the program to|
000002a0  0d 00 1a 21 20 20 20 20  20 20 20 20 20 20 20 20  |...!            |
000002b0  20 20 20 20 20 20 20 20  20 20 20 3a f4 20 65 6e  |           :. en|
000002c0  64 0d 00 1b 44 63 68 61  6e 67 65 64 25 20 20 20  |d...Dchanged%   |
000002d0  20 20 20 20 20 3d a3 20  3a f4 20 55 73 65 64 20  |     =. :. Used |
000002e0  74 6f 20 6b 65 65 70 20  74 72 61 63 6b 20 6f 66  |to keep track of|
000002f0  20 77 68 65 74 68 65 72  20 74 68 65 20 64 61 74  | whether the dat|
00000300  61 20 68 61 73 0d 00 1c  4b 20 20 20 20 20 20 20  |a has...K       |
00000310  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
00000320  3a f4 20 62 65 65 6e 20  63 68 61 6e 67 65 64 2e  |:. been changed.|
00000330  20 43 61 6c 6c 20 50 52  4f 43 66 69 6c 65 5f 63  | Call PROCfile_c|
00000340  68 61 6e 67 65 64 28 29  20 77 68 65 6e 20 69 74  |hanged() when it|
00000350  0d 00 1d 47 20 20 20 20  20 20 20 20 20 20 20 20  |...G            |
00000360  20 20 20 20 20 20 20 20  20 20 20 3a f4 20 68 61  |           :. ha|
00000370  73 2e 20 42 75 74 20 69  66 20 74 68 65 20 70 72  |s. But if the pr|
00000380  6f 67 72 61 6d 20 64 6f  65 73 20 6e 6f 74 20 75  |ogram does not u|
00000390  73 65 20 64 61 74 61 0d  00 1e 48 20 20 20 20 20  |se data...H     |
000003a0  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
000003b0  20 20 3a f4 20 66 69 6c  65 73 20 6a 75 73 74 20  |  :. files just |
000003c0  69 67 6e 6f 72 65 20 74  68 69 73 20 76 61 72 69  |ignore this vari|
000003d0  61 62 6c 65 20 62 75 74  20 64 6f 20 6e 6f 74 0d  |able but do not.|
000003e0  00 1f 47 20 20 20 20 20  20 20 20 20 20 20 20 20  |..G             |
000003f0  20 20 20 20 20 20 20 20  20 20 3a f4 20 64 65 6c  |          :. del|
00000400  65 74 65 20 69 74 20 61  73 20 74 68 65 20 70 72  |ete it as the pr|
00000410  6f 67 72 61 6d 20 63 68  65 63 6b 73 20 69 74 20  |ogram checks it |
00000420  62 65 66 6f 72 65 0d 00  20 26 20 20 20 20 20 20  |before.. &      |
00000430  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
00000440  20 3a f4 20 65 78 69 74  69 6e 67 21 0d 00 21 05  | :. exiting!..!.|
00000450  3a 0d 00 22 4c f4 20 2d  2d 2d 2d 2d 2d 2d 2d 2d  |:.."L. ---------|
00000460  2d 2d 2d 2d 2d 2d 2d 2d  2d 2d 2d 20 4d 69 73 63  |----------- Misc|
00000470  65 6c 6c 65 61 6e 6f 75  73 20 49 6e 69 74 69 61  |elleanous Initia|
00000480  6c 69 73 61 74 69 6f 6e  20 2d 2d 2d 2d 2d 2d 2d  |lisation -------|
00000490  2d 2d 2d 2d 2d 2d 2d 2d  2d 2d 2d 2d 2d 0d 00 23  |-------------..#|
000004a0  05 3a 0d 00 24 14 ee 20  85 20 f2 73 68 65 6c 6c  |.:..$.. . .shell|
000004b0  5f 45 72 72 6f 72 0d 00  25 05 3a 0d 00 26 16 c8  |_Error..%.:..&..|
000004c0  99 20 22 48 6f 75 72 67  6c 61 73 73 5f 4f 66 66  |. "Hourglass_Off|
000004d0  22 0d 00 27 05 f5 0d 00  28 2b 20 20 f2 73 68 65  |"..'....(+  .she|
000004e0  6c 6c 5f 41 63 74 69 6f  6e 28 a4 73 68 65 6c 6c  |ll_Action(.shell|
000004f0  5f 50 6f 6c 6c 5f 49 28  30 2c 74 61 73 6b 25 29  |_Poll_I(0,task%)|
00000500  29 0d 00 29 11 fd 20 5f  63 6c 6f 73 65 64 6f 77  |)..).. _closedow|
00000510  6e 25 0d 00 2a 05 3a 0d  00 2b 11 f2 73 68 65 6c  |n%..*.:..+..shel|
00000520  6c 5f 45 78 69 74 3a e0  0d 00 2c 05 3a 0d 00 2d  |l_Exit:...,.:..-|
00000530  4c f4 20 3d 3d 3d 3d 3d  3d 3d 3d 3d 3d 3d 3d 3d  |L. =============|
00000540  3d 3d 3d 3d 3d 3d 3d 3d  3d 3d 3d 3d 3d 3d 3d 3d  |================|
*
00000570  3d 3d 3d 3d 3d 3d 3d 3d  3d 0d 00 2e 05 3a 0d 00  |=========....:..|
00000580  2f 0f dd 20 f2 61 70 70  5f 69 6e 69 74 0d 00 30  |/.. .app_init..0|
00000590  12 f2 53 65 74 55 70 5f  57 69 6e 64 6f 77 73 0d  |..SetUp_Windows.|
000005a0  00 31 10 f2 53 65 74 55  70 5f 4d 65 6e 75 73 0d  |.1..SetUp_Menus.|
000005b0  00 32 12 f2 53 65 74 55  70 5f 49 63 6f 6e 42 61  |.2..SetUp_IconBa|
000005c0  72 0d 00 33 39 f2 73 68  65 6c 6c 5f 49 6e 69 74  |r..39.shell_Init|
000005d0  48 65 6c 70 53 79 73 74  65 6d 28 a4 73 68 65 6c  |HelpSystem(.shel|
000005e0  6c 5f 47 65 74 41 70 70  44 69 72 2b 22 2e 54 65  |l_GetAppDir+".Te|
000005f0  78 74 2d 44 54 50 22 2c  b9 29 0d 00 34 33 f2 73  |xt-DTP",.)..43.s|
00000600  68 65 6c 6c 5f 41 74 74  61 63 68 50 72 65 51 75  |hell_AttachPreQu|
00000610  69 74 48 61 6e 64 6c 65  72 28 22 5f 50 72 65 51  |itHandler("_PreQ|
00000620  75 69 74 5f 48 61 6e 64  6c 65 72 22 29 0d 00 35  |uit_Handler")..5|
00000630  3a f4 20 50 52 4f 43 73  68 65 6c 6c 5f 41 74 74  |:. PROCshell_Att|
00000640  61 63 68 53 68 75 74 64  6f 77 6e 48 61 6e 64 6c  |achShutdownHandl|
00000650  65 72 28 22 5f 53 68 75  74 64 6f 77 6e 5f 48 61  |er("_Shutdown_Ha|
00000660  6e 64 6c 65 72 22 29 0d  00 36 05 e1 0d 00 37 05  |ndler")..6....7.|
00000670  3a 0d 00 38 14 dd 20 f2  53 65 74 55 70 5f 49 63  |:..8.. .SetUp_Ic|
00000680  6f 6e 42 61 72 0d 00 39  53 73 69 63 6f 6e 3d a4  |onBar..9Ssicon=.|
00000690  73 68 65 6c 6c 5f 49 63  6f 6e 62 61 72 28 2d 31  |shell_Iconbar(-1|
000006a0  2c 22 21 22 2b a4 73 68  65 6c 6c 5f 47 65 74 41  |,"!"+.shell_GetA|
000006b0  70 70 4e 61 6d 65 2c 22  22 2c 31 32 30 2c 4d 65  |ppName,"",120,Me|
000006c0  6e 75 48 61 6e 64 6c 65  5f 49 63 6f 6e 42 61 72  |nuHandle_IconBar|
000006d0  25 2c 30 2c 30 2c 30 29  0d 00 3a 2c f2 73 68 65  |%,0,0,0)..:,.she|
000006e0  6c 6c 5f 41 74 74 61 63  68 48 65 6c 70 54 61 67  |ll_AttachHelpTag|
000006f0  28 2d 31 2c 73 69 63 6f  6e 2c 22 69 63 6f 6e 62  |(-1,sicon,"iconb|
00000700  61 72 22 29 0d 00 3b 3b  f2 73 68 65 6c 6c 5f 41  |ar")..;;.shell_A|
00000710  74 74 61 63 68 44 61 74  61 4c 6f 61 64 28 2d 31  |ttachDataLoad(-1|
00000720  2c 73 69 63 6f 6e 2c 26  46 46 46 2c 22 5f 64 61  |,sicon,&FFF,"_da|
00000730  74 61 6c 6f 61 64 5f 46  46 46 22 2c 2d 31 29 0d  |taload_FFF",-1).|
00000740  00 3c 05 e1 0d 00 3d 05  3a 0d 00 3e 14 dd 20 f2  |.<....=.:..>.. .|
00000750  53 65 74 55 70 5f 57 69  6e 64 6f 77 73 0d 00 3f  |SetUp_Windows..?|
00000760  2d f2 73 68 65 6c 6c 5f  43 72 65 61 74 65 57 69  |-.shell_CreateWi|
00000770  6e 64 6f 77 53 74 61 74  69 63 28 22 6d 61 69 6e  |ndowStatic("main|
00000780  77 22 2c 6d 61 69 6e 77  25 29 0d 00 40 3e f2 73  |w",mainw%)..@>.s|
00000790  68 65 6c 6c 5f 41 74 74  61 63 68 44 61 74 61 53  |hell_AttachDataS|
000007a0  61 76 65 28 6d 61 69 6e  77 25 2c 32 2c 31 30 30  |ave(mainw%,2,100|
000007b0  2c 26 46 46 46 2c 31 2c  22 5f 64 61 74 61 73 61  |,&FFF,1,"_datasa|
000007c0  76 65 5f 46 46 46 22 29  0d 00 41 2b f2 73 68 65  |ve_FFF")..A+.she|
000007d0  6c 6c 5f 41 74 74 61 63  68 48 65 6c 70 54 61 67  |ll_AttachHelpTag|
000007e0  28 6d 61 69 6e 77 25 2c  2d 31 2c 22 6d 61 69 6e  |(mainw%,-1,"main|
000007f0  77 22 29 0d 00 42 05 e1  0d 00 43 05 3a 0d 00 44  |w")..B....C.:..D|
00000800  12 dd 20 f2 53 65 74 55  70 5f 4d 65 6e 75 73 0d  |.. .SetUp_Menus.|
00000810  00 45 0b ea 20 76 6f 69  64 25 0d 00 46 04 0d 00  |.E.. void%..F...|
00000820  47 48 4d 65 6e 75 48 61  6e 64 6c 65 5f 49 63 6f  |GHMenuHandle_Ico|
00000830  6e 42 61 72 25 3d a4 73  68 65 6c 6c 5f 4d 65 6e  |nBar%=.shell_Men|
00000840  75 4e 65 77 28 a4 73 68  65 6c 6c 5f 4d 65 73 73  |uNew(.shell_Mess|
00000850  61 67 65 4e 6f 41 72 67  73 28 22 54 65 78 74 2d  |ageNoArgs("Text-|
00000860  44 54 50 22 29 29 0d 00  48 49 4d 65 6e 75 49 74  |DTP"))..HIMenuIt|
00000870  65 6d 5f 49 6e 66 6f 25  20 20 20 20 20 3d a4 73  |em_Info%     =.s|
00000880  68 65 6c 6c 5f 4d 65 6e  75 41 64 64 28 30 2c a4  |hell_MenuAdd(0,.|
00000890  73 68 65 6c 6c 5f 4d 65  73 73 61 67 65 4e 6f 41  |shell_MessageNoA|
000008a0  72 67 73 28 22 49 6e 66  6f 22 29 2c 22 22 29 0d  |rgs("Info"),"").|
000008b0  00 49 59 4d 65 6e 75 49  74 65 6d 5f 48 65 6c 70  |.IYMenuItem_Help|
000008c0  25 20 20 20 20 20 3d a4  73 68 65 6c 6c 5f 4d 65  |%     =.shell_Me|
000008d0  6e 75 41 64 64 28 30 2c  a4 73 68 65 6c 6c 5f 4d  |nuAdd(0,.shell_M|
000008e0  65 73 73 61 67 65 4e 6f  41 72 67 73 28 22 48 65  |essageNoArgs("He|
000008f0  6c 70 22 29 2c 22 5f 4d  65 6e 75 53 65 6c 65 63  |lp"),"_MenuSelec|
00000900  74 5f 48 65 6c 70 22 29  0d 00 4a 59 76 6f 69 64  |t_Help")..JYvoid|
00000910  25 20 20 20 20 20 20 20  20 20 20 20 20 20 20 3d  |%              =|
00000920  a4 73 68 65 6c 6c 5f 4d  65 6e 75 41 64 64 28 30  |.shell_MenuAdd(0|
00000930  2c a4 73 68 65 6c 6c 5f  4d 65 73 73 61 67 65 4e  |,.shell_MessageN|
00000940  6f 41 72 67 73 28 22 51  75 69 74 22 29 2c 22 5f  |oArgs("Quit"),"_|
00000950  4d 65 6e 75 53 65 6c 65  63 74 5f 51 75 69 74 22  |MenuSelect_Quit"|
00000960  29 0d 00 4b 46 f2 73 68  65 6c 6c 5f 41 74 74 61  |)..KF.shell_Atta|
00000970  63 68 4d 65 6e 75 44 42  6f 78 28 4d 65 6e 75 49  |chMenuDBox(MenuI|
00000980  74 65 6d 5f 49 6e 66 6f  25 2c 22 70 72 6f 67 49  |tem_Info%,"progI|
00000990  6e 66 6f 22 2c 22 5f 50  72 65 4f 70 65 6e 49 6e  |nfo","_PreOpenIn|
000009a0  66 6f 22 2c 22 22 29 0d  00 4c 04 0d 00 4d 05 e1  |fo","")..L...M..|
000009b0  0d 00 4e 05 3a 0d 00 4f  04 0d 00 50 46 f4 20 3d  |..N.:..O...PF. =|
000009c0  3d 3d 3d 3d 20 44 69 61  6c 6f 67 5f 50 72 65 4f  |==== Dialog_PreO|
000009d0  70 65 6e 20 72 6f 75 74  69 6e 65 73 20 3d 3d 3d  |pen routines ===|
000009e0  3d 3d 3d 3d 3d 3d 3d 3d  3d 3d 3d 3d 3d 3d 3d 3d  |================|
000009f0  3d 3d 3d 3d 3d 3d 3d 3d  3d 3d 3d 3d 3d 3d 3d 0d  |===============.|
00000a00  00 51 04 0d 00 52 17 dd  20 a4 5f 50 72 65 4f 70  |.Q...R.. ._PreOp|
00000a10  65 6e 49 6e 66 6f 28 68  25 29 0d 00 53 40 f2 73  |enInfo(h%)..S@.s|
00000a20  68 65 6c 6c 5f 49 63 6f  6e 50 75 74 44 61 74 61  |hell_IconPutData|
00000a30  28 68 25 2c 30 2c a4 73  68 65 6c 6c 5f 4d 65 73  |(h%,0,.shell_Mes|
00000a40  73 61 67 65 4e 6f 41 72  67 73 28 22 70 72 6f 67  |sageNoArgs("prog|
00000a50  49 6e 66 6f 30 22 29 2c  30 29 0d 00 54 40 f2 73  |Info0"),0)..T@.s|
00000a60  68 65 6c 6c 5f 49 63 6f  6e 50 75 74 44 61 74 61  |hell_IconPutData|
00000a70  28 68 25 2c 31 2c a4 73  68 65 6c 6c 5f 4d 65 73  |(h%,1,.shell_Mes|
00000a80  73 61 67 65 4e 6f 41 72  67 73 28 22 70 72 6f 67  |sageNoArgs("prog|
00000a90  49 6e 66 6f 31 22 29 2c  30 29 0d 00 55 40 f2 73  |Info1"),0)..U@.s|
00000aa0  68 65 6c 6c 5f 49 63 6f  6e 50 75 74 44 61 74 61  |hell_IconPutData|
00000ab0  28 68 25 2c 32 2c a4 73  68 65 6c 6c 5f 4d 65 73  |(h%,2,.shell_Mes|
00000ac0  73 61 67 65 4e 6f 41 72  67 73 28 22 70 72 6f 67  |sageNoArgs("prog|
00000ad0  49 6e 66 6f 32 22 29 2c  30 29 0d 00 56 40 f2 73  |Info2"),0)..V@.s|
00000ae0  68 65 6c 6c 5f 49 63 6f  6e 50 75 74 44 61 74 61  |hell_IconPutData|
00000af0  28 68 25 2c 33 2c a4 73  68 65 6c 6c 5f 4d 65 73  |(h%,3,.shell_Mes|
00000b00  73 61 67 65 4e 6f 41 72  67 73 28 22 70 72 6f 67  |sageNoArgs("prog|
00000b10  49 6e 66 6f 33 22 29 2c  30 29 0d 00 57 06 3d 30  |Info3"),0)..W.=0|
00000b20  0d 00 58 05 3a 0d 00 59  04 0d 00 5a 46 f4 20 3d  |..X.:..Y...ZF. =|
00000b30  3d 3d 3d 3d 20 44 61 74  61 5f 4c 6f 61 64 20 72  |==== Data_Load r|
00000b40  6f 75 74 69 6e 65 73 20  3d 3d 3d 3d 3d 3d 3d 3d  |outines ========|
00000b50  3d 3d 3d 3d 3d 3d 3d 3d  3d 3d 3d 3d 3d 3d 3d 3d  |================|
00000b60  3d 3d 3d 3d 3d 3d 3d 3d  3d 3d 3d 3d 3d 3d 3d 0d  |===============.|
00000b70  00 5b 04 0d 00 5c 35 dd  20 a4 5f 64 61 74 61 6c  |.[...\5. ._datal|
00000b80  6f 61 64 5f 46 46 46 28  6c 6f 63 25 2c 66 69 6c  |oad_FFF(loc%,fil|
00000b90  65 74 79 70 65 25 2c 66  69 6c 65 24 2c 66 69 6c  |etype%,file$,fil|
00000ba0  65 5f 73 69 7a 65 25 29  0d 00 5d 15 c8 99 20 22  |e_size%)..]... "|
00000bb0  48 6f 75 72 67 6c 61 73  73 5f 4f 6e 22 0d 00 5e  |Hourglass_On"..^|
00000bc0  30 f2 63 6f 6e 76 65 72  74 5f 66 69 6c 65 28 66  |0.convert_file(f|
00000bd0  69 6c 65 24 2c 22 3c 54  65 78 74 2d 44 54 50 24  |ile$,"<Text-DTP$|
00000be0  44 69 72 3e 2e 4f 75 74  70 75 74 22 29 0d 00 5f  |Dir>.Output").._|
00000bf0  33 f2 73 68 65 6c 6c 5f  57 69 6e 64 6f 77 4d 6f  |3.shell_WindowMo|
00000c00  76 65 54 6f 49 63 6f 6e  28 6d 61 69 6e 77 25 2c  |veToIcon(mainw%,|
00000c10  2d 31 2c 73 69 63 6f 6e  2c 2d 35 30 2c 33 30 29  |-1,sicon,-50,30)|
00000c20  0d 00 60 2d f2 73 68 65  6c 6c 5f 49 63 6f 6e 50  |..`-.shell_IconP|
00000c30  75 74 44 61 74 61 28 6d  61 69 6e 77 25 2c 31 2c  |utData(mainw%,1,|
00000c40  22 54 65 78 74 46 69 6c  65 22 2c 30 29 0d 00 61  |"TextFile",0)..a|
00000c50  56 f4 20 53 59 53 20 22  57 69 6d 70 5f 53 65 74  |V. SYS "Wimp_Set|
00000c60  43 61 72 65 74 50 6f 73  69 74 69 6f 6e 22 2c 6d  |CaretPosition",m|
00000c70  61 69 6e 77 25 2c 31 2c  2d 31 2c 2d 31 2c 2d 31  |ainw%,1,-1,-1,-1|
00000c80  2c 4c 45 4e 28 46 4e 73  68 65 6c 6c 5f 49 63 6f  |,LEN(FNshell_Ico|
00000c90  6e 47 65 74 44 61 74 61  28 6d 61 69 6e 77 25 2c  |nGetData(mainw%,|
00000ca0  31 29 29 0d 00 62 23 f2  73 68 65 6c 6c 5f 4f 70  |1))..b#.shell_Op|
00000cb0  65 6e 57 69 6e 64 6f 77  53 74 61 74 69 63 28 6d  |enWindowStatic(m|
00000cc0  61 69 6e 77 25 29 0d 00  63 16 c8 99 20 22 48 6f  |ainw%)..c... "Ho|
00000cd0  75 72 67 6c 61 73 73 5f  4f 66 66 22 0d 00 64 06  |urglass_Off"..d.|
00000ce0  3d 30 0d 00 65 05 3a 0d  00 66 04 0d 00 67 46 f4  |=0..e.:..f...gF.|
00000cf0  20 3d 3d 3d 3d 3d 20 44  61 74 61 5f 53 61 76 65  | ===== Data_Save|
00000d00  20 72 6f 75 74 69 6e 65  73 20 3d 3d 3d 3d 3d 3d  | routines ======|
00000d10  3d 3d 3d 3d 3d 3d 3d 3d  3d 3d 3d 3d 3d 3d 3d 3d  |================|
*
00000d30  3d 0d 00 68 04 0d 00 69  1d dd 20 a4 5f 64 61 74  |=..h...i.. ._dat|
00000d40  61 73 61 76 65 5f 46 46  46 28 66 5f 6e 61 6d 65  |asave_FFF(f_name|
00000d50  24 29 0d 00 6a 45 ff 22  43 6f 70 79 20 3c 54 65  |$)..jE."Copy <Te|
00000d60  78 74 2d 44 54 50 24 44  69 72 3e 2e 4f 75 74 70  |xt-DTP$Dir>.Outp|
00000d70  75 74 20 22 2b 66 5f 6e  61 6d 65 24 2b 22 20 7e  |ut "+f_name$+" ~|
00000d80  41 7e 43 7e 44 46 7e 4c  7e 4e 7e 50 7e 51 7e 52  |A~C~DF~L~N~P~Q~R|
00000d90  7e 53 7e 54 7e 56 22 0d  00 6b 23 ff 22 52 65 6d  |~S~T~V"..k#."Rem|
00000da0  6f 76 65 20 3c 54 65 78  74 2d 44 54 50 24 44 69  |ove <Text-DTP$Di|
00000db0  72 3e 2e 4f 75 74 70 75  74 22 0d 00 6c 22 ff 22  |r>.Output"..l"."|
00000dc0  52 65 6d 6f 76 65 20 3c  54 65 78 74 2d 44 54 50  |Remove <Text-DTP|
00000dd0  24 44 69 72 3e 2e 49 6e  70 75 74 22 0d 00 6d 1e  |$Dir>.Input"..m.|
00000de0  f2 73 68 65 6c 6c 5f 43  6c 6f 73 65 57 69 6e 64  |.shell_CloseWind|
00000df0  6f 77 28 6d 61 69 6e 77  25 29 0d 00 6e 06 3d 30  |ow(mainw%)..n.=0|
00000e00  0d 00 6f 05 3a 0d 00 70  04 0d 00 71 46 f4 20 3d  |..o.:..p...qF. =|
00000e10  3d 3d 3d 3d 20 4d 65 6e  75 5f 53 65 6c 65 63 74  |==== Menu_Select|
00000e20  20 72 6f 75 74 69 6e 65  73 20 3d 3d 3d 3d 3d 3d  | routines ======|
00000e30  3d 3d 3d 3d 3d 3d 3d 3d  3d 3d 3d 3d 3d 3d 3d 3d  |================|
00000e40  3d 3d 3d 3d 3d 3d 3d 3d  3d 3d 3d 3d 3d 3d 3d 0d  |===============.|
00000e50  00 72 04 0d 00 73 1d dd  20 a4 5f 4d 65 6e 75 53  |.r...s.. ._MenuS|
00000e60  65 6c 65 63 74 5f 48 65  6c 70 28 62 6c 6b 25 29  |elect_Help(blk%)|
00000e70  0d 00 74 23 e7 20 a4 73  68 65 6c 6c 5f 53 74 72  |..t#. .shell_Str|
00000e80  6f 6e 67 48 6c 70 49 73  41 76 61 69 6c 61 62 6c  |ongHlpIsAvailabl|
00000e90  65 20 8c 0d 00 75 2d 20  20 f2 73 68 65 6c 6c 5f  |e ...u-  .shell_|
00000ea0  48 65 6c 70 57 6f 72 64  28 a4 73 68 65 6c 6c 5f  |HelpWord(.shell_|
00000eb0  47 65 74 41 70 70 4e 61  6d 65 2b 22 2e 24 22 29  |GetAppName+".$")|
00000ec0  0d 00 76 05 cc 0d 00 77  28 20 20 ff 28 22 46 69  |..v....w(  .("Fi|
00000ed0  6c 65 72 5f 52 75 6e 20  3c 51 4c 65 74 74 65 72  |ler_Run <QLetter|
00000ee0  24 44 69 72 3e 2e 21 48  65 6c 70 22 29 0d 00 78  |$Dir>.!Help")..x|
00000ef0  05 cd 0d 00 79 06 3d 30  0d 00 7a 05 3a 0d 00 7b  |....y.=0..z.:..{|
00000f00  1d dd 20 a4 5f 4d 65 6e  75 53 65 6c 65 63 74 5f  |.. ._MenuSelect_|
00000f10  51 75 69 74 28 62 6c 6b  25 29 0d 00 7c 11 5f 63  |Quit(blk%)..|._c|
00000f20  6c 6f 73 65 64 6f 77 6e  25 3d b9 0d 00 7d 25 ff  |losedown%=...}%.|
00000f30  28 22 52 65 6d 6f 76 65  20 3c 54 65 78 74 2d 44  |("Remove <Text-D|
00000f40  54 50 24 44 69 72 3e 2e  4f 75 74 70 75 74 22 29  |TP$Dir>.Output")|
00000f50  0d 00 7e 06 3d 30 0d 00  7f 05 3a 0d 00 80 04 0d  |..~.=0....:.....|
00000f60  00 81 46 f4 20 3d 3d 3d  3d 3d 20 4d 69 73 63 5f  |..F. ===== Misc_|
00000f70  45 76 65 6e 74 20 72 6f  75 74 69 6e 65 73 20 3d  |Event routines =|
00000f80  3d 3d 3d 3d 3d 3d 3d 3d  3d 3d 3d 3d 3d 3d 3d 3d  |================|
*
00000fa0  3d 3d 3d 3d 3d 0d 00 82  04 0d 00 83 17 dd 20 a4  |=====......... .|
00000fb0  5f 50 72 65 51 75 69 74  5f 48 61 6e 64 6c 65 72  |_PreQuit_Handler|
00000fc0  0d 00 84 26 f4 20 72 65  74 75 72 6e 20 54 52 55  |...&. return TRU|
00000fd0  45 20 69 66 20 77 65 20  61 72 65 20 71 75 69 74  |E if we are quit|
00000fe0  74 69 6e 67 2e 2e 0d 00  85 3d 3d 28 a4 73 68 65  |ting.....==(.she|
00000ff0  6c 6c 5f 4d 65 73 73 61  67 65 57 69 6e 64 6f 77  |ll_MessageWindow|
00001000  28 22 52 65 61 6c 6c 79  20 71 75 69 74 3f 22 2c  |("Really quit?",|
00001010  b9 2c 22 54 65 78 74 2d  44 54 50 22 2c 22 22 29  |.,"Text-DTP","")|
00001020  3d 31 29 0d 00 86 05 3a  0d 00 87 18 dd 20 a4 5f  |=1)....:..... ._|
00001030  53 68 75 74 64 6f 77 6e  5f 48 61 6e 64 6c 65 72  |Shutdown_Handler|
00001040  0d 00 88 08 ea 20 78 25  0d 00 89 23 78 25 3d ae  |..... x%...#x%=.|
00001050  28 22 3c 54 65 78 74 2d  44 54 50 24 44 69 72 3e  |("<Text-DTP$Dir>|
00001060  2e 53 68 75 74 64 6f 77  6e 22 29 0d 00 8a 09 d9  |.Shutdown").....|
00001070  23 20 78 25 0d 00 8b 06  3d 30 0d 00 8c 05 3a 0d  |# x%....=0....:.|
00001080  00 8d 04 0d 00 8e 46 f4  20 3d 3d 3d 3d 3d 20 41  |......F. ===== A|
00001090  70 70 6c 69 63 61 74 69  6f 6e 20 72 6f 75 74 69  |pplication routi|
000010a0  6e 65 73 20 3d 3d 3d 3d  3d 3d 3d 3d 3d 3d 3d 3d  |nes ============|
000010b0  3d 3d 3d 3d 3d 3d 3d 3d  3d 3d 3d 3d 3d 3d 3d 3d  |================|
000010c0  3d 3d 3d 3d 3d 3d 3d 3d  3d 0d 00 8f 04 0d 00 90  |=========.......|
000010d0  19 dd f2 63 6f 6e 76 65  72 74 5f 66 69 6c 65 28  |...convert_file(|
000010e0  73 24 2c 64 24 29 0d 00  91 3e c8 99 20 22 57 69  |s$,d$)...>.. "Wi|
000010f0  6d 70 5f 53 74 61 72 74  54 61 73 6b 22 2c 22 3c  |mp_StartTask","<|
00001100  54 65 78 74 2d 44 54 50  24 44 69 72 3e 2e 46 69  |Text-DTP$Dir>.Fi|
00001110  6c 74 65 72 4c 46 20 22  2b 73 24 2b 22 20 3e 20  |lterLF "+s$+" > |
00001120  22 2b 64 24 0d 00 92 05  e1 0d 00 93 05 3a 0d 00  |"+d$.........:..|
00001130  94 4c f4 20 3d 3d 3d 3d  3d 3d 3d 3d 3d 3d 3d 3d  |.L. ============|
00001140  3d 3d 3d 3d 3d 20 45 6e  64 20 4f 66 20 55 73 65  |===== End Of Use|
00001150  72 20 41 70 70 6c 69 63  61 74 69 6f 6e 20 3d 3d  |r Application ==|
00001160  3d 3d 3d 3d 3d 3d 3d 3d  3d 3d 3d 3d 3d 3d 3d 3d  |================|
00001170  3d 3d 3d 3d 3d 3d 3d 3d  3d 3d 0d 00 95 05 3a 0d  |==========....:.|
00001180  00 96 04 0d ff                                    |.....|
00001185